-
Notifications
You must be signed in to change notification settings - Fork 21
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
fix: dont always override namespace #264
fix: dont always override namespace #264
Conversation
allows multiple namespaces to be used by leaving OverrideNamespace blank and specifying a namespace per release. Keeps old behaviour by setting OverrideNamespace when adding the first release and then leaving the release namespace blank for any further additions
Hi @cameronbraid. Thanks for your PR. I'm waiting for a jenkins-x or todo member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. |
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
I am also thinking about how to define the namespace (and possibly other fields) for a release before the first release happens. One idea could be to enhance the per env promote.yaml file introduced in #263 given the following nested helmfile
the following config could be used to define the release template for dev/foo : helmfiles/jx/promote.yaml
so that when promotion happens the helmfile is rewritten by first applying the releaseTemplate, then applying the promotion change which results in : helmfiles/jx/helmfile.yaml
|
/ok-to-test |
BTW I really like the idea of being able to define inside an app's repo, more configuration for how a promotion looks in an arbitrary namespace/environment git repository |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jstrachan 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 |
The current promote process always sets OverrideNamespace, making it impossible to make it blank.
This PR allows multiple namespaces to be used by leaving OverrideNamespace blank and specifying a namespace per release.
It keeps old behaviour by initially setting OverrideNamespace when adding the first release and then leaving the release.namespace blank for any further additions
For example after first release in ns 'jx'
The user then can edit the file to move the toplevel namespace into the release as per :
Then a new release can be added for another namespace
Without this change, each time the helmfile is re-written to have the toplevel namespace set to 'jx'