-
Notifications
You must be signed in to change notification settings - Fork 544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CatalogSource] Set Global Catalog NS with EnvVar #1014
[CatalogSource] Set Global Catalog NS with EnvVar #1014
Conversation
cmd/catalog/main.go
Outdated
@@ -79,6 +80,11 @@ func main() { | |||
// Parse the command-line flags. | |||
flag.Parse() | |||
|
|||
// If the catalogNamespaceEnvVarName environment variable is set update the value of catalogNamespace. | |||
if catalogNamespaceEnvVarValue := os.Getenv(catalogNamespaceEnvVarName); catalogNamespaceEnvVarValue != "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be nice to add some logging that the namespace is being set via env var, just to make it super clear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And perhaps a commented out example in one of the helm deploy templates too (maybe).
89ab900
to
16e25e2
Compare
/lgtm |
/hold based on Evan's #1014 (comment) |
/hold |
16e25e2
to
af4e8c3
Compare
This commit introduces a change that makes it possible to configure the Global Catalog Namespace by adding the CATALOG_NAMESPACE environment variable to the catalog-operator deployment.
af4e8c3
to
c0b2c3c
Compare
/hold cancel |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: awgreene, jpeeler The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This commit introduces a change that makes it possible to configure the
Global Catalog Namespace by adding the CATALOG_NAMESPACE environment
variable to the catalog-operator deployment.