From 995fb96f2469349a1b0156269b0bb8a6d5b7069c Mon Sep 17 00:00:00 2001 From: Luiz Oliveira Date: Tue, 15 Aug 2023 10:56:43 -0300 Subject: [PATCH] :art: Rename worker labels to the same pattern just like the other resources (#1410) * rename worker labels to the same pattern from others kubeshark components Signed-off-by: Luiz Oliveira * update matchLabels from daemonsets Signed-off-by: Luiz Oliveira --------- Signed-off-by: Luiz Oliveira --- helm-chart/templates/09-worker-daemon-set.yaml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/helm-chart/templates/09-worker-daemon-set.yaml b/helm-chart/templates/09-worker-daemon-set.yaml index 4bd160096..fa175e05e 100644 --- a/helm-chart/templates/09-worker-daemon-set.yaml +++ b/helm-chart/templates/09-worker-daemon-set.yaml @@ -3,7 +3,7 @@ apiVersion: apps/v1 kind: DaemonSet metadata: labels: - app: kubeshark-worker-daemon-set + app.kubeshark.co/app: worker sidecar.istio.io/inject: "false" {{- include "kubeshark.labels" . | nindent 4 }} annotations: @@ -15,17 +15,13 @@ metadata: spec: selector: matchLabels: - app: kubeshark-worker-daemon-set - {{- if .Values.tap.labels }} - {{- toYaml .Values.tap.labels | nindent 6 }} - {{- end }} + app.kubeshark.co/app: worker + {{- include "kubeshark.labels" . | nindent 6 }} template: metadata: labels: - app: kubeshark-worker-daemon-set - {{- if .Values.tap.labels }} - {{- toYaml .Values.tap.labels | nindent 8 }} - {{- end }} + app.kubeshark.co/app: worker + {{- include "kubeshark.labels" . | nindent 8 }} name: kubeshark-worker-daemon-set namespace: kubeshark spec: