helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

It would be interesting to be able to introduce additional metadata labels in the deployments and statefulsets

Open gustavoborragan opened this issue 1 year ago • 4 comments

It would be interesting to be able to introduce additional metadata labels in the deployments and statefulsets.

Current deployment:

apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    ...
  labels:
    app.kubernetes.io/instance: haproxy
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: haproxy
    app.kubernetes.io/version: 2.8.1
    helm.sh/chart: haproxy-1.19.2

With deploymentLabels key into values:

deploymentLabels:
  foo: bar
  bar: foo

Desired deployments:

apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    ...
  labels:
    app.kubernetes.io/instance: haproxy
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: haproxy
    app.kubernetes.io/version: 2.8.1
    bar: foo
    foo: bar
    helm.sh/chart: haproxy-1.19.2

gustavoborragan avatar Jul 12 '24 10:07 gustavoborragan

Hi @gustavoborragan , any specific use-case that you had in mind for this?

dkorunic avatar Jul 12 '24 10:07 dkorunic

Hi @dkorunic, yes, for example, adding metadata for observation applications.

gustavoborragan avatar Jul 15 '24 08:07 gustavoborragan

Hello dear ones. Any news on this? Thanks!!!

gustavoborragan avatar Sep 02 '24 08:09 gustavoborragan

Hi @gustavoborragan, no progress on this yet, but it's in the pipeline to be added.

dkorunic avatar Sep 02 '24 08:09 dkorunic

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Feb 23 '25 02:02 github-actions[bot]

This issue was closed because it has been inactive for 30 days since being marked as stale.

github-actions[bot] avatar Mar 25 '25 02:03 github-actions[bot]