-
Notifications
You must be signed in to change notification settings - Fork 29
Robot Upgrade: ingress-nginx chart upgrade from 4.13.2 to 4.14.0 #3715
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
base: main
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @weizhoublue, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request automates the upgrade of the ingress-nginx Helm chart from version 4.13.2 to 4.14.0. This routine update includes bumping the chart and controller image versions, introducing new configuration parameters for resource management and monitoring, and enhancing Helm templating capabilities for init containers and extra volumes. The changes also involve updating documentation and adding new changelog entries to reflect the version progression. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request upgrades the ingress-nginx Helm chart from version 4.13.2 to 4.14.0. The update includes new image versions for the controller and webhook cert generator, introduces new features like resizePolicy for containers and scrapeTimeout for ServiceMonitors, and enhances flexibility by enabling Helm templating in more values. While most changes are correct, I've identified a significant issue with the implementation of the new resizePolicy feature, where an incorrect Kubernetes version check will prevent it from functioning as expected. I've also noted a minor issue in a newly added changelog file.
| {{- if semverCompare ">=1.33.0-0" .Capabilities.KubeVersion.Version }} | ||
| {{- if .Values.controller.resizePolicy }} | ||
| resizePolicy: {{ toYaml .Values.controller.resizePolicy | nindent 12 }} | ||
| {{- end }} | ||
| {{- end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The semverCompare check for resizePolicy is set to >=1.33.0-0. The "In-place Pod Resources Resize" feature, which introduces resizePolicy, graduated to Beta in Kubernetes v1.27. This check will prevent the feature from being used on supported Kubernetes versions (1.27+). It should be >=1.27.0-0.
{{- if semverCompare ">=1.27.0-0" .Capabilities.KubeVersion.Version }}
{{- if .Values.controller.resizePolicy }}
resizePolicy: {{ toYaml .Values.controller.resizePolicy | nindent 12 }}
{{- end }}
{{- end }}| {{- if semverCompare ">=1.33.0-0" .Capabilities.KubeVersion.Version }} | ||
| {{- if .Values.controller.resizePolicy }} | ||
| resizePolicy: {{ toYaml .Values.controller.resizePolicy | nindent 12 }} | ||
| {{- end }} | ||
| {{- end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The semverCompare check for resizePolicy is set to >=1.33.0-0. The "In-place Pod Resources Resize" feature, which introduces resizePolicy, graduated to Beta in Kubernetes v1.27. This check will prevent the feature from being used on supported Kubernetes versions (1.27+). It should be >=1.27.0-0.
{{- if semverCompare ">=1.27.0-0" .Capabilities.KubeVersion.Version }}
{{- if .Values.controller.resizePolicy }}
resizePolicy: {{ toYaml .Values.controller.resizePolicy | nindent 12 }}
{{- end }}
{{- end }}| capabilities: | ||
| majorVersion: 1 | ||
| minorVersion: 33 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| capabilities: | ||
| majorVersion: 1 | ||
| minorVersion: 33 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| * Update Ingress-Nginx version controller-v1.12.7 | ||
|
|
||
| **Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.12.7...helm-chart-4.12.7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "Full Changelog" link points to a comparison of the same tag, which will always result in an empty diff. It should likely compare helm-chart-4.12.6 with helm-chart-4.12.7 to show the actual changes for this version.
| **Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.12.7...helm-chart-4.12.7 | |
| **Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.12.6...helm-chart-4.12.7 |
ac592bc to
87e7a7e
Compare
9267ebf to
7c32ace
Compare
692a7b0 to
738069d
Compare
0b59704 to
0f7fb5f
Compare
Signed-off-by: robot <[email protected]>
0f7fb5f to
84c83b9
Compare
I am robot, upgrade: project ingress-nginx chart upgrade from 4.13.2 to 4.14.0