From 9ca5c4ade79317b60389a8790d6abe775b735cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Larivi=C3=A8re?= Date: Wed, 3 Jun 2026 16:47:07 -0400 Subject: [PATCH] fix: add app.kubernetes.io/name and instance labels to helm workloads --- .../controller/helm/retina/templates/agent/daemonset.yaml | 4 ++++ .../helm/retina/templates/hubble-relay/deployment.yaml | 2 ++ .../helm/retina/templates/hubble-ui/deployment.yaml | 2 ++ .../controller/helm/retina/templates/operator/deployment.yaml | 2 ++ 4 files changed, 10 insertions(+) diff --git a/deploy/hubble/manifests/controller/helm/retina/templates/agent/daemonset.yaml b/deploy/hubble/manifests/controller/helm/retina/templates/agent/daemonset.yaml index e15bde9e73..b6a361f0e0 100644 --- a/deploy/hubble/manifests/controller/helm/retina/templates/agent/daemonset.yaml +++ b/deploy/hubble/manifests/controller/helm/retina/templates/agent/daemonset.yaml @@ -8,6 +8,8 @@ metadata: namespace: {{ .Values.namespace }} labels: k8s-app: {{ include "retina.name" . }} + app.kubernetes.io/name: {{ include "retina.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} spec: selector: matchLabels: @@ -17,6 +19,8 @@ spec: labels: app: {{ include "retina.name" . }} k8s-app: {{ include "retina.name" . }} + app.kubernetes.io/name: {{ include "retina.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} annotations: prometheus.io/port: "{{ .Values.retinaPort }}" prometheus.io/scrape: "true" diff --git a/deploy/hubble/manifests/controller/helm/retina/templates/hubble-relay/deployment.yaml b/deploy/hubble/manifests/controller/helm/retina/templates/hubble-relay/deployment.yaml index 71b06b6e76..c5939730c6 100644 --- a/deploy/hubble/manifests/controller/helm/retina/templates/hubble-relay/deployment.yaml +++ b/deploy/hubble/manifests/controller/helm/retina/templates/hubble-relay/deployment.yaml @@ -12,6 +12,7 @@ metadata: k8s-app: hubble-relay app.kubernetes.io/name: hubble-relay app.kubernetes.io/part-of: cilium + app.kubernetes.io/instance: {{ .Release.Name }} spec: replicas: {{ .Values.hubble.relay.replicas }} selector: @@ -35,6 +36,7 @@ spec: k8s-app: hubble-relay app.kubernetes.io/name: hubble-relay app.kubernetes.io/part-of: cilium + app.kubernetes.io/instance: {{ .Release.Name }} {{- with .Values.hubble.relay.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} diff --git a/deploy/hubble/manifests/controller/helm/retina/templates/hubble-ui/deployment.yaml b/deploy/hubble/manifests/controller/helm/retina/templates/hubble-ui/deployment.yaml index 51c1e47212..a89c5c9573 100644 --- a/deploy/hubble/manifests/controller/helm/retina/templates/hubble-ui/deployment.yaml +++ b/deploy/hubble/manifests/controller/helm/retina/templates/hubble-ui/deployment.yaml @@ -12,6 +12,7 @@ metadata: k8s-app: hubble-ui app.kubernetes.io/name: hubble-ui app.kubernetes.io/part-of: cilium + app.kubernetes.io/instance: {{ .Release.Name }} spec: replicas: {{ .Values.hubble.ui.replicas }} selector: @@ -35,6 +36,7 @@ spec: k8s-app: hubble-ui app.kubernetes.io/name: hubble-ui app.kubernetes.io/part-of: cilium + app.kubernetes.io/instance: {{ .Release.Name }} {{- with .Values.hubble.ui.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} diff --git a/deploy/hubble/manifests/controller/helm/retina/templates/operator/deployment.yaml b/deploy/hubble/manifests/controller/helm/retina/templates/operator/deployment.yaml index acea3cb711..899ca9f126 100644 --- a/deploy/hubble/manifests/controller/helm/retina/templates/operator/deployment.yaml +++ b/deploy/hubble/manifests/controller/helm/retina/templates/operator/deployment.yaml @@ -25,6 +25,8 @@ spec: labels: app: retina-operator control-plane: retina-operator + app.kubernetes.io/name: retina-operator + app.kubernetes.io/instance: {{ .Release.Name }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: