-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix incorrect indentation of the PodMonitor template in the Helm chart #7190
Fix incorrect indentation of the PodMonitor template in the Helm chart #7190
Conversation
Signed-off-by: Richard Wall <[email protected]>
@@ -45,6 +45,6 @@ spec: | |||
scrapeTimeout: {{ .Values.prometheus.podmonitor.scrapeTimeout }} | |||
honorLabels: {{ .Values.prometheus.podmonitor.honorLabels }} | |||
{{- with .Values.prometheus.podmonitor.endpointAdditionalProperties }} | |||
{{- toYaml . | nindent 4 }} | |||
{{- toYaml . | nindent 6 }} |
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.
Good catch.
We should create an "all options enabled" values.yaml file and apply some yaml linting on the result.
Helm tests could be another solution for this problem long-term.
/cherrypick release-1.15 |
@inteon: once the present PR merges, I will cherry-pick it on top of release-1.15 in a new PR and assign it to you. In response to this:
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-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: inteon 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 |
@inteon: #7190 failed to apply on top of branch "release-1.15":
In response to this:
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-sigs/prow repository. |
In #6459 @shlomitubul introduced a PodMonitor resource.
There was a bug in the PodMonitor template where the servicemonitor.endpointAdditionalProperties were being added instead of podmonitor.endpointAdditionalProperties and that bug has been recently fixed by @inteon in #7069 (review)
But there is an additional mistake in the indentation of those values which is only now apparent.
Here's how to recreate the issue:
/kind bug
Testing