From fa33a979b4d55278ca479c392d64d7d6f2a8d7bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rald=20Barr=C3=A9?= Date: Mon, 29 Apr 2024 16:15:18 -0400 Subject: [PATCH] [IDP-1249] Suffix container name (#53) * Suffix container name * Fix selector --- charts/aspnetcore/templates/deployment.yaml | 2 +- charts/aspnetcore/templates/poddisruptionbudget.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: 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 }}