-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Use env expansion to provide namespace in container args #5951
Use env expansion to provide namespace in container args #5951
Conversation
When deploying the controller to a custom namespace, users have to overwrite the namespace attribute as well as the hardcoded namespace values in a number of args for the Deployment and the admission controller Jobs. Instead, this commit, uses the namespace name from the DownwardAPI, and allows users to simply change the namespace attribute without having to worry about the container args.
Welcome @pst! |
Hi @pst. Thanks for your PR. I'm waiting for a kubernetes 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 kubernetes/test-infra repository. |
/assign @aledbf |
/ok-to-test |
@pst please increase the version https://github.com/kubernetes/ingress-nginx/blob/master/charts/ingress-nginx/Chart.yaml#L3 |
@aledbf I bumped the patch, since it was only a small change in the Chart itself and did not affect the Nginx version. Let me know if you'd rather have me bump the minor version. |
No need |
/lgtm |
@pst thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aledbf, pst 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 |
What this PR does / why we need it:
Users using the provided static manifests have to change the namespace in various places when they want to deploy to a custom namespace.
This PR uses the namespace name from the DownwardAPI for the Deployment and Job container args that need the namesapce name.
Types of changes
Which issue/s this PR fixes
How Has This Been Tested?
Automated tests
use-proxy-protocol
test failedFOCUS="use-proxy-protocol"
passed this test as wellManual test
I used the generated
cloud/deploy.yaml
included in this PR and Kustomize to customise themetadata.namespace
attribute with a different namespace name:ingress-nginx-test
.kustomize.yaml
patch-namespace.yaml
kubectl get pod
Checklist: