Skip to content

feat(helm): add podLabels attribute#144

Open
jperville wants to merge 1 commit into
tweedegolf:mainfrom
jperville:feat/helm-additional-pod-labels
Open

feat(helm): add podLabels attribute#144
jperville wants to merge 1 commit into
tweedegolf:mainfrom
jperville:feat/helm-additional-pod-labels

Conversation

@jperville

Copy link
Copy Markdown

This PR adds an optional podLabels attribute to the helm chart values.yml
The default value is an empty object to be compatible with the existing behavior.

Tests:

# if `yq` is not present, install from https://github.com/mikefarah/yq

# with the default/empty podLabels
helm template my-mailcrab . \
  | yq 'select(.kind == "Deployment").spec.template.metadata' 

# with a custom podLabels
helm template my-mailcrab . --set-json podLabels='{"my":"label"}' \
  | yq 'select(.kind == "Deployment").spec.template.metadata'

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.

1 participant