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

Provides an Override to the WATCH_NAMESPACE env variable. #923

Merged

Conversation

valenca
Copy link

@valenca valenca commented Oct 27, 2023

In case the Jenkins instance is disabled, this commit allows us to pick a different namespace for the deployment by configuring the operator object instead of the jenkins object.

Changes

Adds a new operator.watchNamespace value that should be used in case jenkins.enabled is set to false.
Updates and cleans up the documentation to reflect this change.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide for more details.

Reviewer Notes

If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS.

Release Notes

Describe any user facing changes here, or delete this block.

Examples of user facing changes:
- API changes: New operator.watchNamespace values.yaml configuration.
- Bug fixes #922 
- Any changes in behavior: None

@@ -57,6 +57,8 @@ spec:
- name: WATCH_NAMESPACE
{{- if .Values.jenkins.enabled }}
value: {{ .Values.jenkins.namespace }}
{{- else if .Values.operator.watchNamespace }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add this option in values.yaml but commented with a short explanation on how to use it. Thanks

@valenca valenca force-pushed the fix-922-watch-namespace-override branch from 863c217 to 06992a4 Compare November 13, 2023 08:29
@brokenpip3
Copy link
Collaborator

The test are failing for another reason, I will fix it so you can merge master in this branch e we can merge the PR.

@brokenpip3
Copy link
Collaborator

Can you merge/rebase master in this PR?

João Valença added 3 commits November 19, 2023 14:22
In case the Jenkins instance is disabled, this commit allows us to pick
a different namespace for the deployment by configuring the operator
object instead of the jenkins object.
@valenca valenca force-pushed the fix-922-watch-namespace-override branch from 06992a4 to 19d936d Compare November 19, 2023 14:22
@github-actions github-actions bot added the stale label Jan 19, 2024
@github-actions github-actions bot closed this Jan 26, 2024
@brokenpip3 brokenpip3 reopened this Jan 26, 2024
@github-actions github-actions bot removed the stale label Jan 27, 2024
@brokenpip3 brokenpip3 merged commit bfda3c8 into jenkinsci:master Feb 4, 2024
8 checks passed
@brokenpip3
Copy link
Collaborator

Thanks for your contribution

AniketNS pushed a commit to AniketNS/kubernetes-operator that referenced this pull request Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants