mirror of
https://github.com/jumpserver/helm-charts.git
synced 2025-08-30 21:50:38 +00:00
fix: 修正错误
This commit is contained in:
parent
85e22ece52
commit
71e0242705
@ -23,6 +23,10 @@ spec:
|
||||
app.kubernetes.io/instance: {{ $.Release.Name }}
|
||||
{{- toYaml .labels | nindent 8 }}
|
||||
spec:
|
||||
{{- if $.Values.global.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{ toYaml $.Values.global.imagePullSecrets }}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ template "jumpserver.serviceAccountName" $ }}
|
||||
securityContext:
|
||||
{{- toYaml .podSecurityContext | nindent 8 }}
|
||||
|
@ -11,10 +11,6 @@ metadata:
|
||||
{{- include "jumpserver.labels" $ | nindent 4 }}
|
||||
{{- toYaml .labels | nindent 4 }}
|
||||
spec:
|
||||
{{- if $.Values.global.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{ toYaml $.Values.global.imagePullSecrets }}
|
||||
{{- end }}
|
||||
replicas: {{ .replicaCount }}
|
||||
selector:
|
||||
matchLabels:
|
||||
@ -28,6 +24,10 @@ spec:
|
||||
app.kubernetes.io/instance: {{ $.Release.Name }}
|
||||
{{- toYaml .labels | nindent 8 }}
|
||||
spec:
|
||||
{{- if $.Values.global.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{ toYaml $.Values.global.imagePullSecrets }}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ template "jumpserver.serviceAccountName" $ }}
|
||||
securityContext:
|
||||
{{- toYaml .podSecurityContext | nindent 8 }}
|
||||
|
Loading…
Reference in New Issue
Block a user