-
Notifications
You must be signed in to change notification settings - Fork 29
Robot Upgrade: prometheus-node-exporter chart upgrade from 4.6.0 to 4.49.2 #3770
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 performs a major version upgrade of the 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 prometheus-node-exporter Helm chart from version 4.6.0 to 4.49.2. The changes are extensive, reflecting the upstream chart's evolution with many new features, improvements, and bug fixes. Key updates include the introduction of kube-rbac-proxy for securing endpoints, support for PodMonitor, removal of deprecated PodSecurityPolicy resources, and numerous enhancements to configurability and templating. Overall, this is a significant and valuable upgrade. I've identified a critical issue in the daemonset.yaml template that would cause deployment to fail if sidecars are used, along with a few minor issues related to documentation and file formatting.
| {{- toYaml . | nindent 12 }} | ||
| {{- end }} | ||
| {{- range .Values.sidecars }} | ||
| {{- $overwrites := dict "volumeMounts" (concat (include "prometheus-node-exporter.sidecarVolumeMounts" $ | fromYamlArray) (.volumeMounts | default list) | default list) }} |
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 template function fromYamlArray is not a standard Helm or Sprig function. This will cause a template rendering error if a user tries to configure sidecars. The correct function to use for parsing a YAML string (including a list) is fromYaml.
{{- $overwrites := dict "volumeMounts" (concat (include "prometheus-node-exporter.sidecarVolumeMounts" $ | fromYaml) (.volumeMounts | default list) | default list) }}| - Helm Repository: `https://prometheus-community.github.io/helm-charts` with chart `prometheus-node-exporter` | ||
|
|
||
| _See [`helm repo`](https://helm.sh/docs/helm/helm_repo/) for command documentation._ | ||
| The installation instructions use the OCI registry. Refer to the [`helm repo`]([`helm repo`](https://helm.sh/docs/helm/helm_repo/)) command documentation for information on installing charts via the traditional repository. |
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.
There appears to be a formatting error in the markdown link. The link tag is nested within itself, which may cause rendering issues in some markdown viewers.
| The installation instructions use the OCI registry. Refer to the [`helm repo`]([`helm repo`](https://helm.sh/docs/helm/helm_repo/)) command documentation for information on installing charts via the traditional repository. | |
| The installation instructions use the OCI registry. Refer to the [`helm repo`](https://helm.sh/docs/helm/helm_repo/) command documentation for information on installing charts via the traditional repository. |
| - Helm Repository: `https://prometheus-community.github.io/helm-charts` with chart `prometheus-node-exporter` | ||
|
|
||
| _See [`helm repo`](https://helm.sh/docs/helm/helm_repo/) for command documentation._ | ||
| The installation instructions use the OCI registry. Refer to the [`helm repo`]([`helm repo`](https://helm.sh/docs/helm/helm_repo/)) command documentation for information on installing charts via the traditional repository. |
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.
There appears to be a formatting error in the markdown link. The link tag is nested within itself, which may cause rendering issues in some markdown viewers.
| The installation instructions use the OCI registry. Refer to the [`helm repo`]([`helm repo`](https://helm.sh/docs/helm/helm_repo/)) command documentation for information on installing charts via the traditional repository. | |
| The installation instructions use the OCI registry. Refer to the [`helm repo`](https://helm.sh/docs/helm/helm_repo/) command documentation for information on installing charts via the traditional repository. |
| verbs: | ||
| - get | ||
| ``` | ||
| {{- 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.
| {{- if .Values.kubeRBACProxy.image.sha }} | ||
| image: "{{ .Values.global.imageRegistry | default .Values.kubeRBACProxy.image.registry}}/{{ .Values.kubeRBACProxy.image.repository }}:{{ .Values.kubeRBACProxy.image.tag }}@sha256:{{ .Values.kubeRBACProxy.image.sha }}" | ||
| {{- else }} | ||
| image: "{{ .Values.global.imageRegistry | default .Values.kubeRBACProxy.image.registry}}/{{ .Values.kubeRBACProxy.image.repository }}:{{ .Values.kubeRBACProxy.image.tag }}" | ||
| {{- 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 image definition for kube-rbac-proxy uses image.sha, which has been deprecated in favor of image.digest for the main node-exporter image. For consistency, it would be better to use image.digest here as well. Consider creating a dedicated helper template for the kube-rbac-proxy image to improve maintainability and ensure consistency.
| resource: services | ||
| subresource: {{ template "prometheus-node-exporter.fullname" . }} | ||
| name: {{ template "prometheus-node-exporter.fullname" . }} | ||
| {{- end }} No newline at end of file |
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.
5cd7ce1 to
95f639c
Compare
…4.49.2 Signed-off-by: robot <[email protected]>
95f639c to
97d23f8
Compare
I am robot, upgrade: project prometheus-node-exporter chart upgrade from 4.6.0 to 4.49.2