Skip to content

Commit

Permalink
add extraLabels variable in tidb-cluster chart (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxGit authored Apr 9, 2019
1 parent 53e50d5 commit 6378a2d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/tidb-cluster/templates/tidb-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: tidb-cluster
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
{{- if .Values.extraLabels }}
{{ toYaml .Values.extraLabels | indent 4 }}
{{- end }}
spec:
pvReclaimPolicy: {{ .Values.pvReclaimPolicy }}
timezone: {{ .Values.timezone | default "UTC" }}
Expand Down
4 changes: 4 additions & 0 deletions charts/tidb-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ rbac:
# if multiple clusters are deployed in the same namespace.
clusterName: demo

# Add additional TidbCluster labels
# ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
extraLabels: {}

# schedulerName must be same with charts/tidb-operator/values#scheduler.schedulerName
schedulerName: tidb-scheduler

Expand Down
4 changes: 4 additions & 0 deletions images/tidb-operator-e2e/tidb-cluster-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ rbac:
# if multiple clusters are deployed in the same namespace.
clusterName: demo-cluster

# Add additional TidbCluster labels
# ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
extraLabels: {}

# schedulerName must be same with charts/tidb-operator/values#scheduler.schedulerName
schedulerName: tidb-scheduler

Expand Down

0 comments on commit 6378a2d

Please sign in to comment.