-
Notifications
You must be signed in to change notification settings - Fork 5k
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
[prometheus-stackdriver-exporter] fix deployment annotations #4767
Conversation
Signed-off-by: Wojciech Smołkowski <wojciech.smolkowski@gmail.com>
Signed-off-by: Wojciech Smołkowski <wojciech.smolkowski@gmail.com>
@rpahli when could you merge it? |
@wsmolkowski there are still build error. Can you pls fix the build, then we can merge your PR. |
@wsmolkowski any update on this? can you pls fix the lint error? |
charts/prometheus-stackdriver-exporter/templates/deployment.yaml
Outdated
Show resolved
Hide resolved
Signed-off-by: MH <zanhsieh@gmail.com> Signed-off-by: MH <zanhsieh@gmail.com>
Seems chart version 4.6.1 is broken, b/c:
|
This is causing errors, with default values file:
|
@@ -4,6 +4,10 @@ metadata: | |||
name: {{ template "stackdriver-exporter.fullname" . }} | |||
labels: | |||
{{- include "stackdriver-exporter.labels" . | indent 4 }} | |||
{{- with .Values.annotations }} |
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.
I'm not sure, but looks like you should use "{{- if .Values.annotations }}" to exclude error
Error: template: prometheus-stackdriver-exporter/templates/deployment.yaml:9:24: executing "prometheus-stackdriver-exporter/templates/deployment.yaml" at <.Values.annotations>: nil pointer evaluating interface {}.annotations
What this PR does / why we need it
fix #4768
Which issue this PR fixes
Special notes for your reviewer
Checklist
[prometheus-couchdb-exporter]
)