diff --git a/charts/tidb-drainer/templates/drainer-configmap.yaml b/charts/tidb-drainer/templates/drainer-configmap.yaml index f64ecf0a6b..4ba77b140c 100644 --- a/charts/tidb-drainer/templates/drainer-configmap.yaml +++ b/charts/tidb-drainer/templates/drainer-configmap.yaml @@ -5,7 +5,7 @@ metadata: labels: app.kubernetes.io/name: {{ include "drainer-configmap.name" . }} app.kubernetes.io/managed-by: {{ .Release.Service }} - app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/instance: {{ .Values.clusterName }} app.kubernetes.io/component: drainer helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} data: diff --git a/charts/tidb-drainer/templates/drainer-service.yaml b/charts/tidb-drainer/templates/drainer-service.yaml index 215d893d37..e273c10781 100644 --- a/charts/tidb-drainer/templates/drainer-service.yaml +++ b/charts/tidb-drainer/templates/drainer-service.yaml @@ -5,7 +5,7 @@ metadata: labels: app.kubernetes.io/name: {{ include "drainer.name" . }} app.kubernetes.io/managed-by: {{ .Release.Service }} - app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/instance: {{ .Values.clusterName }} app.kubernetes.io/component: drainer helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} spec: @@ -15,5 +15,5 @@ spec: port: 8249 selector: app.kubernetes.io/name: {{ include "drainer.name" . }} - app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/instance: {{ .Values.clusterName }} app.kubernetes.io/component: drainer diff --git a/charts/tidb-drainer/templates/drainer-statefulset.yaml b/charts/tidb-drainer/templates/drainer-statefulset.yaml index 0590373f7b..572d103ee8 100644 --- a/charts/tidb-drainer/templates/drainer-statefulset.yaml +++ b/charts/tidb-drainer/templates/drainer-statefulset.yaml @@ -5,14 +5,14 @@ metadata: labels: app.kubernetes.io/name: {{ include "drainer.name" . }} app.kubernetes.io/managed-by: {{ .Release.Service }} - app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/instance: {{ .Values.clusterName }} app.kubernetes.io/component: drainer helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} spec: selector: matchLabels: app.kubernetes.io/name: {{ include "drainer.name" . }} - app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/instance: {{ .Values.clusterName }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/component: drainer serviceName: {{ include "drainer.name" . }} @@ -25,7 +25,7 @@ spec: prometheus.io/port: "8249" labels: app.kubernetes.io/name: {{ include "drainer.name" . }} - app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/instance: {{ .Values.clusterName }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/component: drainer spec: