Skip to content

Conversation

@lovetoburnswhen
Copy link

@lovetoburnswhen lovetoburnswhen commented Aug 20, 2024

Adds the statefulSetAnnotations/statefulSetLabels properties to values.yaml to allow users to specify custom labels and annotations on the resulting StatefulSets.

This feature would be tremendously useful for environments that require certain labels to be set - the only alternative would be to fork the chart internally.


Tested with:

❯ helm template ./charts/influxdb -s templates/statefulset.yaml --set 'statefulSetLabels.foo=bar' --set 'statefulSetAnnotations.bar=baz'      
---
# Source: influxdb/templates/statefulset.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: release-name-influxdb
  labels:
    helm.sh/chart: influxdb-4.12.6
    app.kubernetes.io/name: influxdb
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/version: "1.8.10"
    app.kubernetes.io/managed-by: Helm
    foo: bar
  annotations:
    bar: baz

  • [ ] CHANGELOG.md updated None found
  • Rebased/mergable
  • Tests pass
  • Sign CLA (if not already signed)

Adds the `statefulSetAnnotations`/`statefulSetLabels` properties to
`values.yaml` to allow users to specify custom labels and annotations on
the resulting StatefulSets.

This feature would be tremendously useful for environments that require
certain labels to be set - the only alternative would be to fork the
chart internally.
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