Skip to content
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

Conversation

awgreene
Copy link
Member

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.

@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Aug 28, 2019
@@ -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 != "" {
Copy link

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.

Copy link

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).

@awgreene awgreene force-pushed the configure-global-catalog-ns branch 2 times, most recently from 89ab900 to 16e25e2 Compare August 28, 2019 20:04
@jpeeler
Copy link

jpeeler commented Aug 28, 2019

/lgtm
/retest

@openshift-ci-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 28, 2019
cmd/catalog/main.go Outdated Show resolved Hide resolved
@jpeeler
Copy link

jpeeler commented Aug 28, 2019

/hold based on Evan's #1014 (comment)

@jpeeler
Copy link

jpeeler commented Aug 28, 2019

/hold
guess it only works on a line by itself

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 28, 2019
@awgreene awgreene force-pushed the configure-global-catalog-ns branch from 16e25e2 to af4e8c3 Compare August 29, 2019 01:09
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Aug 29, 2019
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.
@awgreene awgreene force-pushed the configure-global-catalog-ns branch from af4e8c3 to c0b2c3c Compare August 29, 2019 01:12
@awgreene
Copy link
Member Author

@ecordell @jpeeler please let me know if you have any other change requests.

@jpeeler
Copy link

jpeeler commented Aug 29, 2019

/hold cancel
/lgtm

@openshift-ci-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Aug 29, 2019
@openshift-ci-robot
Copy link
Collaborator

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 5693e6d into operator-framework:master Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants