Skip to content

Conversation

@lyoung-confluent
Copy link

Currently the labels value is added inconsistently to a few resources (DaemonSet, Deployment) but not any of the other resource types. This is annoying if you want to append/enforce a label on all of the resources for this chart, not just the workload resources.

This PR moves the labels to the fluent-bit.labels named template so they will be added to all resources in the chart. Additionally, it adds the include for fluent-bit.labels to the PodSecurityPolicy resource which was missing it.

Signed-off-by: Luke Young <lyoung@confluent.io>
Copy link
Collaborator

@stevehipwell stevehipwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @lyoung-confluent. I'm happy with this in principal, but could you update Chart.yaml to bump the version and update the change annotations.

Comment on lines +44 to +46
{{- if .Values.labels }}
{{- toYaml .Values.labels }}
{{- end }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{- if .Values.labels }}
{{- toYaml .Values.labels }}
{{- end }}
{{- with .Values.labels }}
{{- toYaml . }}
{{- end }}

IMHO this is slightly easier to read.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants