Skip to content

Commit

Permalink
Set podSecuriyContext to nil by default in favor of backward co… (#1079)
Browse files Browse the repository at this point in the history
Signed-off-by: Aylei <rayingecho@gmail.com>
  • Loading branch information
aylei authored and tennix committed Oct 31, 2019
1 parent a75ee1a commit 02e166e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/tidb-cluster/templates/tidb-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ spec:
{{ toYaml .Values.pd.annotations | indent 6 }}
{{- end }}
hostNetwork: {{ .Values.pd.hostNetwork }}

{{- if .Values.pd.podSecurityContext }}
podSecurityContext:
{{ toYaml .Values.pd.podSecurityContext | indent 6}}
{{- end }}
{{- if .Values.pd.priorityClassName }}
priorityClassName: {{ .Values.pd.priorityClassName }}
{{- end }}
Expand All @@ -76,8 +79,10 @@ spec:
{{ toYaml .Values.tikv.annotations | indent 6 }}
{{- end }}
hostNetwork: {{ .Values.tikv.hostNetwork }}
{{- if .Values.tikv.podSecurityContext }}
podSecurityContext:
{{ toYaml .Values.tikv.podSecurityContext | indent 6}}
{{- end }}
{{- if .Values.tikv.priorityClassName }}
priorityClassName: {{ .Values.tikv.priorityClassName }}
{{- end }}
Expand All @@ -102,8 +107,10 @@ spec:
{{ toYaml .Values.tidb.annotations | indent 6 }}
{{- end }}
hostNetwork: {{ .Values.tidb.hostNetwork }}
{{- if .Values.tidb.podSecurityContext }}
podSecurityContext:
{{ toYaml .Values.tidb.podSecurityContext | indent 6}}
{{- end }}
{{- if .Values.tidb.priorityClassName }}
priorityClassName: {{ .Values.tidb.priorityClassName }}
{{- end }}
Expand Down

0 comments on commit 02e166e

Please sign in to comment.