From 908eb8f98e316341ce1233110bf6ceceafd69bd6 Mon Sep 17 00:00:00 2001 From: ainthapanya-sqc <164966349+ainthapanya-sqc@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:50:31 +1100 Subject: [PATCH 1/2] chore: modify label keys --- charts/opensearch-dashboards/templates/deployment.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/opensearch-dashboards/templates/deployment.yaml b/charts/opensearch-dashboards/templates/deployment.yaml index 256cf054..d6db79f1 100644 --- a/charts/opensearch-dashboards/templates/deployment.yaml +++ b/charts/opensearch-dashboards/templates/deployment.yaml @@ -13,13 +13,13 @@ spec: {{ toYaml .Values.updateStrategy | indent 4 }} selector: matchLabels: - app: {{ .Chart.Name }} - release: {{ .Release.Name | quote }} + app.kubernetes.io/name: {{ .Chart.Name }} + app.kubernetes.io/version: {{ .Release.Name | quote }} template: metadata: labels: - app: {{ .Chart.Name }} - release: {{ .Release.Name | quote }} + app.kubernetes.io/name: {{ .Chart.Name }} + app.kubernetes.io/version: {{ .Release.Name | quote }} {{- range $key, $value := .Values.labels }} {{ $key }}: {{ $value | quote }} {{- end }} From 3192fb2339c8d40a94a490a2c69c2548f793b540 Mon Sep 17 00:00:00 2001 From: ainthapanya-sqc <164966349+ainthapanya-sqc@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:51:27 +1100 Subject: [PATCH 2/2] chore: change app label with 'app.kubernetes.io/name' --- charts/opensearch-dashboards/templates/service.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/opensearch-dashboards/templates/service.yaml b/charts/opensearch-dashboards/templates/service.yaml index 16962f16..3cc8690c 100644 --- a/charts/opensearch-dashboards/templates/service.yaml +++ b/charts/opensearch-dashboards/templates/service.yaml @@ -40,5 +40,5 @@ spec: protocol: TCP port: {{ .Values.service.metricsPort }} selector: - app: {{ .Chart.Name }} - release: {{ .Release.Name | quote }} + app.kubernetes.io/name: {{ .Chart.Name }} + app.kubernetes.io/version: {{ .Release.Name | quote }}