From a2ca9f021eb52cba84d08b7c194caa0513e060a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rald=20Barr=C3=A9?= Date: Mon, 29 Apr 2024 13:20:10 -0400 Subject: [PATCH 1/2] Suffix container name --- charts/aspnetcore/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/aspnetcore/templates/deployment.yaml b/charts/aspnetcore/templates/deployment.yaml index ade37c9..dddf5dd 100644 --- a/charts/aspnetcore/templates/deployment.yaml +++ b/charts/aspnetcore/templates/deployment.yaml @@ -36,7 +36,7 @@ spec: spec: serviceAccountName: {{ include "aspnetcore.serviceAccountName" . }} containers: - - name: {{ .Chart.Name }} + - name: {{ .Chart.Name }}-container image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: From 3e0f1eef649afab79df822dbc7c91698c4b91db7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rald=20Barr=C3=A9?= Date: Mon, 29 Apr 2024 16:00:56 -0400 Subject: [PATCH 2/2] Fix selector --- charts/aspnetcore/templates/poddisruptionbudget.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/aspnetcore/templates/poddisruptionbudget.yaml b/charts/aspnetcore/templates/poddisruptionbudget.yaml index d9d55a3..0fb7f3d 100644 --- a/charts/aspnetcore/templates/poddisruptionbudget.yaml +++ b/charts/aspnetcore/templates/poddisruptionbudget.yaml @@ -6,4 +6,4 @@ spec: minAvailable: {{ .Values.podDisruptionBudget.minAvailable }} selector: matchLabels: - app: {{ .Release.Name }} + {{- include "aspnetcore.selectorLabels" . | nindent 6 }}