Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/nginx-ingress] update to use the correct argument name, fixes #730 #770

Merged
merged 4 commits into from
Apr 3, 2017

Conversation

egeland
Copy link
Collaborator

@egeland egeland commented Mar 9, 2017

Note that this is for the beta version of the nginx-ingress controller

@k8s-ci-robot
Copy link
Contributor

Hi @egeland. 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 @k8s-bot ok to test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

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. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 9, 2017
@chancez
Copy link
Contributor

chancez commented Mar 9, 2017

Do you think this could be done in a more backwards compatible way? Perhaps you can not update the image tag since it's still beta, and instead add a condition in the template like:

{{- if (contains "0.9." .Values.controller.image.tag) }}
            - --configmap={{ .Release.Namespace }}/{{ template "controller.fullname" . }}
{{- else }}
            - --nginx-configmap={{ .Release.Namespace }}/{{ template "controller.fullname" . }}
{{- end }}

I think it might be worth it since nginx-ingress is so heavily used, and some users might be running an older version but want the latest version of the chart. Not sure if its worth it, but just a potential option to break less people, and still allow them to upgrade their nginx-ingress chart.

@egeland
Copy link
Collaborator Author

egeland commented Mar 10, 2017 via email

@mgoodness
Copy link
Contributor

mgoodness commented Mar 10, 2017

@chancez That's an interesting solution. There's an open issue for Helm 2.3 that would add an app_version field to Chart.yaml. The assumption until now has been that a chart version is (loosely) tied to an application version. I think it's worth considering how an approach like this might impact that relationship.

@chancez
Copy link
Contributor

chancez commented Mar 10, 2017

@mgoodness Yeah, I think app_version will be nice, but likely not enough to handle all cases. As intentionally proposed. I chimed in on that issue making my point.

Sometimes an app may be composed of multiple containers, and they each have different versions and thus different compatibility needs. If the chart author wants to maintain compatibility, you would need a version per chart, which I think at this point is fairly introspectable via app.image.tag or something of the sort.

@egeland
Copy link
Collaborator Author

egeland commented Mar 12, 2017

Maybe I'll hold off on this change until we have app_version (or some other semver implementation) in the charts..?

@chancez
Copy link
Contributor

chancez commented Mar 13, 2017

Well, I don't think we necessarily should wait for that (I think it'll be a while). The chart is still pre 1.0, so I think we could either go with what you have, or take a best effort approach to handle 0.8.x and 0.9.x. I don't think its a huge deal either way, but I just wanted to make the suggestion.

@egeland
Copy link
Collaborator Author

egeland commented Mar 14, 2017

I'll make the change you suggested, then - and we can always fine-tune it later, as SemVer becomes available in the templating..

@mgoodness mgoodness self-assigned this Mar 16, 2017
@mgoodness mgoodness changed the title update to use the correct argument name, fixes #730 [stable/nginx-ingress] update to use the correct argument name, fixes #730 Mar 22, 2017
@mgoodness
Copy link
Contributor

@egeland

I took the liberty of adding the conditional that @chancez suggested. Also added conditionals around the tcp & udp arguments to (hopefully - I haven't tested it yet) address kubernetes/ingress-nginx#443. Finally, I'd like to keep the default image tag 0.8.3.

@mgoodness
Copy link
Contributor

@k8s-bot ok to test

@mgoodness
Copy link
Contributor

mgoodness commented Mar 28, 2017

Can finally confirm this works as expected with 0.8.3 and 0.9.0-beta.3.

@mgoodness mgoodness added code reviewed UX reviewed lgtm Indicates that a PR is ready to be merged. labels Mar 28, 2017
@mgoodness mgoodness removed their assignment Mar 28, 2017
@egeland
Copy link
Collaborator Author

egeland commented Mar 28, 2017

Thanks for jumping in - I didn't get around to looking at this (obviously).. 😄

@lachie83 lachie83 merged commit e4b2d1e into helm:master Apr 3, 2017
yanns pushed a commit to yanns/charts that referenced this pull request Jul 28, 2017
…elm#730 (helm#770)

* update to use the correct argument name, fixes helm#730

Note that this is for the beta version of the nginx-ingress controller

* Added conditional for renamed argument in image v0.9.0

* Removed duplicate conditionals

* Retain image v0.8.3 as default
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. code reviewed lgtm Indicates that a PR is ready to be merged. size/small UX reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants