Add error message to app if secret missing in quay
This commit is contained in:
parent
6afc00bf77
commit
d44aa8f566
5 changed files with 16 additions and 16 deletions
|
@ -48,6 +48,7 @@
|
|||
|
||||
|
||||
$scope.showMissingConfigDialog = function() {
|
||||
var title = "Missing configuration volume";
|
||||
var message = "It looks like Quay was not mounted with a configuration volume. The volume should be " +
|
||||
"mounted into the container at <code>/conf/stack</code>. " +
|
||||
"<br>If you have a tarball, please ensure you untar it into a directory and re-run this container with: " +
|
||||
|
@ -58,7 +59,14 @@
|
|||
"<a href='https://coreos.com/docs/enterprise-registry/initial-setup/'>" +
|
||||
"Read the Setup Guide</a>";
|
||||
|
||||
var title = "Missing configuration volume";
|
||||
if (window.__is_kubernetes) {
|
||||
title = "Configuration Secret Missing";
|
||||
message = "It looks like the Quay Enterprise secret is not present in this Kubernetes namespace." +
|
||||
"<br>Please double-check that the secret exists, or " +
|
||||
"<a href='https://coreos.com/docs/enterprise-registry/initial-setup/'>" +
|
||||
"refer to the Setup Guide</a>";
|
||||
}
|
||||
|
||||
CoreDialog.fatal(title, message);
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue