From b927908c90efcf92ac89f60d8f3b639bc3dd17a4 Mon Sep 17 00:00:00 2001 From: Michi Mutsuzaki Date: Mon, 23 Oct 2023 21:03:20 +0000 Subject: [PATCH] helm: Fix selector labels for the operator deployment Use tetragon-operator.selectorLabels instead of tetragon-operator.labels for selector labels. tetragon-operator.labels contains the helm.sh/chart label which differs among different versions (e.g. tetragon-1.0.0-rc.1). Helm upgrade fails because spec.selector field is immutable. Signed-off-by: Michi Mutsuzaki --- install/kubernetes/templates/operator_deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/kubernetes/templates/operator_deployment.yaml b/install/kubernetes/templates/operator_deployment.yaml index bfa3b0db995..c99485d303c 100644 --- a/install/kubernetes/templates/operator_deployment.yaml +++ b/install/kubernetes/templates/operator_deployment.yaml @@ -8,7 +8,7 @@ metadata: spec: selector: matchLabels: - {{- include "tetragon-operator.labels" . | nindent 6 }} + {{- include "tetragon-operator.selectorLabels" . | nindent 6 }} replicas: 1 template: metadata: