Closed rmvangun closed 1 month ago
This block in the service monitor fails to correctly use the with context:
with
selector: matchLabels: {{- include "fluent-operator.selectorLabels" . | nindent 6 }} {{- with .Values.fluentbit.labels }} {{- toYaml .Values.fluentbit.labels | nindent 6}} {{- end }}
As a result, populating .Values.fluentbit.labels results in:
.Values.fluentbit.labels
Helm install failed for release monitoring/fluent-operator with chart fluent-operator@3.0.0: template: fluent-operator/templates/fluentbit-servicemonitor.yaml:34:24: executing "fluent-operator/templates/fluentbit-servicemonitor.yaml" at <.Values.fluentbit.labels>: nil pointer evaluating interface {}.fluentbit
None, can create an issue if necessary
Fixed the helm template where the service monitor incorrectly refers to variables in a "with" block
What this PR does / why we need it:
This block in the service monitor fails to correctly use the
with
context:As a result, populating
.Values.fluentbit.labels
results in:Helm install failed for release monitoring/fluent-operator with chart fluent-operator@3.0.0: template: fluent-operator/templates/fluentbit-servicemonitor.yaml:34:24: executing "fluent-operator/templates/fluentbit-servicemonitor.yaml" at <.Values.fluentbit.labels>: nil pointer evaluating interface {}.fluentbit
Which issue(s) this PR fixes:
None, can create an issue if necessary
Does this PR introduced a user-facing change?
Additional documentation, usage docs, etc.: