Skip to content

Commit 75c7091

Browse files
unreturnedduckhawk
andauthored
Change imagePullSecrets for webhooks (#15)
Signed-off-by: Dmitrii Kovalkov <[email protected]> Signed-off-by: v.oleynikov <[email protected]> Co-authored-by: v.oleynikov <[email protected]>
1 parent 33252a1 commit 75c7091

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

templates/registry-secret.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
---
22
apiVersion: v1
33
kind: Secret
4+
metadata:
5+
name: {{ .Chart.Name }}-module-registry
6+
namespace: d8-{{ .Chart.Name }}
7+
{{- include "helm_lib_module_labels" (list .) | nindent 2 }}
8+
type: kubernetes.io/dockerconfigjson
9+
data:
10+
{{- if dig "registry" "dockercfg" false .Values.snapshotController }}
11+
.dockerconfigjson: {{ .Values.snapshotController.registry.dockercfg }}
12+
{{- else }}
13+
.dockerconfigjson: "eyJhdXRocyI6IHsgInJlZ2lzdHJ5LmRlY2tob3VzZS5pbyI6IHt9fX0="
14+
{{- end }}
15+
---
16+
apiVersion: v1
17+
kind: Secret
418
metadata:
519
name: deckhouse-registry
620
namespace: d8-{{ .Chart.Name }}

templates/snapshot-controller/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ spec:
6060
app: snapshot-controller
6161
spec:
6262
imagePullSecrets:
63-
- name: deckhouse-registry
63+
- name: {{ .Chart.Name }}-module-registry
6464
{{- include "helm_lib_priority_class" (tuple . "cluster-low") | nindent 6 }}
6565
{{- include "helm_lib_node_selector" (tuple . "system") | nindent 6 }}
6666
{{- include "helm_lib_tolerations" (tuple . "system") | nindent 6 }}

templates/snapshot-validation-webhook/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ spec:
6161
checksum/config: {{ include (print $.Template.BasePath "/snapshot-validation-webhook/secret.yaml") . | sha256sum }}
6262
spec:
6363
imagePullSecrets:
64-
- name: deckhouse-registry
64+
- name: {{ .Chart.Name }}-module-registry
6565
{{- include "helm_lib_priority_class" (tuple . "system-cluster-critical") | nindent 6 }}
6666
{{- include "helm_lib_node_selector" (tuple . "master") | nindent 6 }}
6767
{{- include "helm_lib_tolerations" (tuple . "any-node" "with-uninitialized") | nindent 6 }}

0 commit comments

Comments
 (0)