fix: 修正错误

This commit is contained in:
wojiushixiaobai
2021-09-08 20:55:23 +08:00
parent 85e22ece52
commit 71e0242705
2 changed files with 8 additions and 4 deletions

View File

@@ -23,6 +23,10 @@ spec:
app.kubernetes.io/instance: {{ $.Release.Name }} app.kubernetes.io/instance: {{ $.Release.Name }}
{{- toYaml .labels | nindent 8 }} {{- toYaml .labels | nindent 8 }}
spec: spec:
{{- if $.Values.global.imagePullSecrets }}
imagePullSecrets:
{{ toYaml $.Values.global.imagePullSecrets }}
{{- end }}
serviceAccountName: {{ template "jumpserver.serviceAccountName" $ }} serviceAccountName: {{ template "jumpserver.serviceAccountName" $ }}
securityContext: securityContext:
{{- toYaml .podSecurityContext | nindent 8 }} {{- toYaml .podSecurityContext | nindent 8 }}

View File

@@ -11,10 +11,6 @@ metadata:
{{- include "jumpserver.labels" $ | nindent 4 }} {{- include "jumpserver.labels" $ | nindent 4 }}
{{- toYaml .labels | nindent 4 }} {{- toYaml .labels | nindent 4 }}
spec: spec:
{{- if $.Values.global.imagePullSecrets }}
imagePullSecrets:
{{ toYaml $.Values.global.imagePullSecrets }}
{{- end }}
replicas: {{ .replicaCount }} replicas: {{ .replicaCount }}
selector: selector:
matchLabels: matchLabels:
@@ -28,6 +24,10 @@ spec:
app.kubernetes.io/instance: {{ $.Release.Name }} app.kubernetes.io/instance: {{ $.Release.Name }}
{{- toYaml .labels | nindent 8 }} {{- toYaml .labels | nindent 8 }}
spec: spec:
{{- if $.Values.global.imagePullSecrets }}
imagePullSecrets:
{{ toYaml $.Values.global.imagePullSecrets }}
{{- end }}
serviceAccountName: {{ template "jumpserver.serviceAccountName" $ }} serviceAccountName: {{ template "jumpserver.serviceAccountName" $ }}
securityContext: securityContext:
{{- toYaml .podSecurityContext | nindent 8 }} {{- toYaml .podSecurityContext | nindent 8 }}