From 382ebe09b4d15c08376e1c5c7ef92b18ae148b75 Mon Sep 17 00:00:00 2001 From: udhos Date: Tue, 26 Nov 2024 00:51:44 -0300 Subject: [PATCH] Use default function for default containerName. --- charts/karpenter/templates/deployment.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/charts/karpenter/templates/deployment.yaml b/charts/karpenter/templates/deployment.yaml index 303151700298..7671f18daeda 100644 --- a/charts/karpenter/templates/deployment.yaml +++ b/charts/karpenter/templates/deployment.yaml @@ -57,11 +57,7 @@ spec: hostNetwork: true {{- end }} containers: - {{- if .Values.controller.containerName }} - - name: {{ .Values.controller.containerName }} - {{- else }} - - name: controller - {{- end }} + - name: {{ .Values.controller.containerName | default "controller" }} securityContext: runAsUser: 65532 runAsGroup: 65532