-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Make fullnameOverride override #4032
Conversation
@coolbry95 |
Updated the PR message. It is in similar vein to #3802. This is a blocker for us to upgrade to 3.x.x because of the resource name changes. I also believe the current behavior is a bug when considering the name |
Why is it preventing you from upgrading? |
Because it is changing the names of resources which is unacceptable for my team and application. We are unable to preserve previous behavior. We would like all resources to be nginx-ingress. There is also the option of introducing another override variable. Is that more acceptable than this? We could introduce an override variable that trumps all others. |
@coolbry95 is it that you want to be able to have |
Yes but that is still wrong. No matter what fullname or controller.name are set to you will always have '-' somewhere in the mix. We would like to just be able to control the names ourselves. |
hi @coolbry95 we're looking at the issue and noticed doesn't covers daemon-set so we need to check if there's something else in the need of similar change. |
Both the deployment and daemonset use the same variable for name. https://github.com/nginxinc/kubernetes-ingress/blob/v3.1.0/deployments/helm-chart/templates/controller-daemonset.yaml#L5 |
thanks for clarification @coolbry95 , we're also looking at #3976 as the issue seems related and just need to make sure changes don't conflict with each other. Thanks for your patience! |
I don't see an issue. Selector labels uses the
Selector label This change affects the |
I think this could be solved by doing instead of the if statement. This would match what
|
I tried changes from this PR and one below by editing
|
Your error is still unrelated to this PR. It looks like you are still hitting the issue in #3976. Not sure what the exact steps you are taking. If you change the name of the daemonset it will create a new one. The workflow here for us is to keep all the names of all resources the same. In #3976 they are trying to keep the selector labels the same so the daemonset doesn't need to be recreated. The only way to change the daemonset labels is to change the Before the labels change the daemonset would have the label
This is a breaking change. There is no way to not recreate the daemonset without an override to the selector labels used. |
Pointed that out because the changes in PR weren't working because of the other issue and it seems appropriate to fix these together, now that PR is updated with selector changes we can try both both overrides. |
I have tested this for my environment with the following values set. Basically we define the name for everything we can.
|
Hi @coolbry95, I think we should be able to fix the issue without the changes in this PR, we've accepted #3977 to fix the issue with selectorLabels. Can you please try:
|
This flow works. I would still prefer fullNameOverride to work how it does in this PR. I think it is confusing that overriding the name doesn't actually override it. |
Before 3.0.0 all resources were named
nginx-ingress
. We need to keep that functionality.The fullnameOverride currently will use the fullNameOverride plus nginx-ingress or whatever .Values.controller.name is set to. The final result looks like
nginx-ingress-something
. The fullNameOverride should be the final name set and should not be modified after.Since the deployment or daemonset matchLabels cannot be updated there needs to be a way to revert to the old labels. Adding selectorLabelsOverride allows a user to use the old labels and not force a recreation of the deployment/daemonset.
Proposed changes
Describe the use case and detail of the change. If this PR addresses an issue on GitHub, make sure to include a link to that issue here in this description (not in the title of the PR).
Checklist
Before creating a PR, run through this checklist and mark each as complete.