Skip to content

Commit 5671035

Browse files
committed
upd .pullPolicy and .pullSecrets
1 parent 26edea9 commit 5671035

File tree

8 files changed

+28
-28
lines changed

8 files changed

+28
-28
lines changed

deploy/helm/kubernetes/templates/admin-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ spec:
4343
affinity:
4444
{{- toYaml . | nindent 8 }}
4545
{{- end }}
46-
{{- with .Values.admin.image.PullSecrets }}
46+
{{- with .Values.admin.image.pullSecrets }}
4747
imagePullSecrets:
4848
{{- toYaml . | nindent 10 }}
4949
{{- end }}
@@ -53,8 +53,8 @@ spec:
5353
- command: [ 'sleep', 'infinity' ]
5454
{{- with .Values.admin.image }}
5555
image: "{{ .repository }}{{ if .digest }}@{{ .digest }}{{ else }}:{{ .tag }}{{ end }}"
56+
imagePullPolicy: {{ .pullPolicy }}
5657
{{- end }}
57-
imagePullPolicy: {{ .Values.admin.image.PullPolicy }}
5858
name: admin
5959
readinessProbe:
6060
exec:

deploy/helm/kubernetes/templates/apiserver-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ spec:
4545
affinity:
4646
{{- toYaml . | nindent 8 }}
4747
{{- end }}
48-
{{- with .Values.apiServer.image.PullSecrets }}
48+
{{- with .Values.apiServer.image.pullSecrets }}
4949
imagePullSecrets:
5050
{{- toYaml . | nindent 10 }}
5151
{{- end }}
@@ -98,8 +98,8 @@ spec:
9898
name: client
9999
{{- with .Values.apiServer.image }}
100100
image: "{{ .repository }}{{ if .digest }}@{{ .digest }}{{ else }}:{{ .tag }}{{ end }}"
101+
imagePullPolicy: {{ .pullPolicy }}
101102
{{- end }}
102-
imagePullPolicy: {{ .Values.apiServer.image.PullPolicy }}
103103
livenessProbe:
104104
failureThreshold: 8
105105
httpGet:

deploy/helm/kubernetes/templates/controller-manager-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ spec:
4343
affinity:
4444
{{- toYaml . | nindent 8 }}
4545
{{- end }}
46-
{{- with .Values.controllerManager.image.PullSecrets }}
46+
{{- with .Values.controllerManager.image.pullSecrets }}
4747
imagePullSecrets:
4848
{{- toYaml . | nindent 10 }}
4949
{{- end }}
@@ -73,8 +73,8 @@ spec:
7373
{{- end }}
7474
{{- with .Values.controllerManager.image }}
7575
image: "{{ .repository }}{{ if .digest }}@{{ .digest }}{{ else }}:{{ .tag }}{{ end }}"
76+
imagePullPolicy: {{ .pullPolicy }}
7677
{{- end }}
77-
imagePullPolicy: {{ .Values.controllerManager.image.PullPolicy }}
7878
livenessProbe:
7979
failureThreshold: 8
8080
httpGet:

deploy/helm/kubernetes/templates/etcd-statefulset.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ spec:
4747
{{- toYaml . | nindent 8 }}
4848
{{- end }}
4949

50-
{{- with .Values.etcd.image.PullSecrets }}
50+
{{- with .Values.etcd.image.pullSecrets }}
5151
imagePullSecrets:
5252
{{- toYaml . | nindent 10 }}
5353
{{- end }}
@@ -97,6 +97,7 @@ spec:
9797
{{- end }}
9898
{{- with .Values.etcd.image }}
9999
image: "{{ .repository }}{{ if .digest }}@{{ .digest }}{{ else }}:{{ .tag }}{{ end }}"
100+
imagePullPolicy: {{ .pullPolicy }}
100101
{{- end }}
101102
ports:
102103
- containerPort: {{ .Values.etcd.ports.client }}
@@ -105,7 +106,6 @@ spec:
105106
name: peer
106107
- containerPort: {{ .Values.etcd.ports.metrics }}
107108
name: metrics
108-
imagePullPolicy: {{ .Values.etcd.image.PullPolicy }}
109109
livenessProbe:
110110
failureThreshold: 8
111111
httpGet:

deploy/helm/kubernetes/templates/konnectivity-server-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ spec:
4343
affinity:
4444
{{- toYaml . | nindent 8 }}
4545
{{- end }}
46-
{{- with .Values.konnectivityServer.image.PullSecrets }}
46+
{{- with .Values.konnectivityServer.image.pullSecrets }}
4747
imagePullSecrets:
4848
{{- toYaml . | nindent 10 }}
4949
{{- end }}
@@ -82,7 +82,7 @@ spec:
8282
name: health
8383
{{- with .Values.konnectivityServer.image }}
8484
image: "{{ .repository }}{{ if .digest }}@{{ .digest }}{{ else }}:{{ .tag }}{{ end }}"
85-
imagePullPolicy: {{ .PullPolicy }}
85+
imagePullPolicy: {{ .pullPolicy }}
8686
{{- end }}
8787
livenessProbe:
8888
failureThreshold: 8

deploy/helm/kubernetes/templates/kubeadm-job.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ spec:
4343
affinity:
4444
{{- toYaml . | nindent 8 }}
4545
{{- end }}
46-
{{- with .Values.admin.image.PullSecrets }}
46+
{{- with .Values.admin.image.pullSecrets }}
4747
imagePullSecrets:
4848
{{- toYaml . | nindent 10 }}
4949
{{- end }}
@@ -53,8 +53,8 @@ spec:
5353
- name: kubeadm
5454
{{- with .Values.admin.image }}
5555
image: "{{ .repository }}{{ if .digest }}@{{ .digest }}{{ else }}:{{ .tag }}{{ end }}"
56+
imagePullPolicy: {{ .pullPolicy }}
5657
{{- end }}
57-
imagePullPolicy: {{ .Values.admin.image.PullPolicy }}
5858
command: [ '/scripts/configure-cluster.sh' ]
5959
env:
6060
- name: KUBECONFIG

deploy/helm/kubernetes/templates/scheduler-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ spec:
4343
affinity:
4444
{{- toYaml . | nindent 8 }}
4545
{{- end }}
46-
{{- with .Values.scheduler.image.PullSecrets }}
46+
{{- with .Values.scheduler.image.pullSecrets }}
4747
imagePullSecrets:
4848
{{- toYaml . | nindent 10 }}
4949
{{- end }}
@@ -64,8 +64,8 @@ spec:
6464
{{- end }}
6565
{{- with .Values.scheduler.image }}
6666
image: "{{ .repository }}{{ if .digest }}@{{ .digest }}{{ else }}:{{ .tag }}{{ end }}"
67+
imagePullPolicy: {{ .pullPolicy }}
6768
{{- end }}
68-
imagePullPolicy: {{ .Values.scheduler.image.PullPolicy }}
6969
livenessProbe:
7070
failureThreshold: 8
7171
httpGet:

deploy/helm/kubernetes/values.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ etcd:
1515
image:
1616
repository: k8s.gcr.io/etcd
1717
tag: 3.4.9-1
18-
PullPolicy: IfNotPresent
19-
PullSecrets: []
18+
pullPolicy: IfNotPresent
19+
pullSecrets: []
2020
replicaCount: 3
2121
resources:
2222
requests:
@@ -65,8 +65,8 @@ apiServer:
6565
image:
6666
repository: k8s.gcr.io/kube-apiserver
6767
tag: v1.20.2
68-
PullPolicy: IfNotPresent
69-
PullSecrets: []
68+
pullPolicy: IfNotPresent
69+
pullSecrets: []
7070
replicaCount: 2
7171
resources:
7272
requests:
@@ -112,8 +112,8 @@ controllerManager:
112112
image:
113113
repository: k8s.gcr.io/kube-controller-manager
114114
tag: v1.20.2
115-
PullPolicy: IfNotPresent
116-
PullSecrets: []
115+
pullPolicy: IfNotPresent
116+
pullSecrets: []
117117
replicaCount: 2
118118
resources:
119119
requests:
@@ -150,8 +150,8 @@ scheduler:
150150
image:
151151
repository: k8s.gcr.io/kube-scheduler
152152
tag: v1.20.2
153-
PullPolicy: IfNotPresent
154-
PullSecrets: []
153+
pullPolicy: IfNotPresent
154+
pullSecrets: []
155155
replicaCount: 2
156156
resources:
157157
requests:
@@ -188,8 +188,8 @@ admin:
188188
image:
189189
repository: docker.io/kvaps/kubernetes-tools
190190
tag: v1.20.2
191-
PullPolicy: IfNotPresent
192-
PullSecrets: []
191+
pullPolicy: IfNotPresent
192+
pullSecrets: []
193193
replicaCount: 1
194194
resources:
195195
requests:
@@ -228,8 +228,8 @@ konnectivityServer:
228228
image:
229229
repository: us.gcr.io/k8s-artifacts-prod/kas-network-proxy/proxy-server
230230
tag: v0.0.12
231-
PullPolicy: IfNotPresent
232-
PullSecrets: []
231+
pullPolicy: IfNotPresent
232+
pullSecrets: []
233233
replicaCount: 2
234234
resources:
235235
requests:
@@ -277,8 +277,8 @@ konnectivityAgent:
277277
image:
278278
repository: us.gcr.io/k8s-artifacts-prod/kas-network-proxy/proxy-agent
279279
tag: v0.0.12
280-
PullPolicy: IfNotPresent
281-
PullSecrets: []
280+
pullPolicy: IfNotPresent
281+
pullSecrets: []
282282
replicaCount: 2
283283
hostNetwork: true
284284

0 commit comments

Comments
 (0)