cloudnative-pg / charts

CloudNativePG Helm Charts
Apache License 2.0
174 stars 82 forks source link

feat(cluster): Add support for passing inheritedMetadata to Cluster spec #326

Open paraddise opened 3 months ago

paraddise commented 3 months ago

Operator supports passing metadata that will be inherited by all resources related to Cluster.

Spec - https://github.com/cloudnative-pg/cloudnative-pg/blob/main/api/v1/cluster_types.go#L254

paraddise commented 1 month ago

As workaround you can pass INHERITED_LABELS to configmap/secret of the operator my values.yaml

config:
  data:
    INHERITED_LABELS: finops

Definition from the doc

list of label names that, when defined in a Cluster metadata, will be inherited by all the generated resources, including pods