Commit 7ff22407 authored by gaoshiyao's avatar gaoshiyao

registrySecrets

parent 3737395a
Pipeline #96692 failed with stage
...@@ -35,6 +35,10 @@ spec: ...@@ -35,6 +35,10 @@ spec:
{{ toYaml .Values.chartmuseum.podAnnotations | indent 8 }} {{ toYaml .Values.chartmuseum.podAnnotations | indent 8 }}
{{- end }} {{- end }}
spec: spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext: securityContext:
fsGroup: 10000 fsGroup: 10000
{{- if .Values.chartmuseum.serviceAccountName }} {{- if .Values.chartmuseum.serviceAccountName }}
......
...@@ -28,6 +28,10 @@ spec: ...@@ -28,6 +28,10 @@ spec:
{{ toYaml .Values.clair.podAnnotations | indent 8 }} {{ toYaml .Values.clair.podAnnotations | indent 8 }}
{{- end }} {{- end }}
spec: spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext: securityContext:
fsGroup: 10000 fsGroup: 10000
{{- if .Values.clair.serviceAccountName }} {{- if .Values.clair.serviceAccountName }}
......
...@@ -29,6 +29,10 @@ spec: ...@@ -29,6 +29,10 @@ spec:
{{ toYaml .Values.core.podAnnotations | indent 8 }} {{ toYaml .Values.core.podAnnotations | indent 8 }}
{{- end }} {{- end }}
spec: spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext: securityContext:
fsGroup: 10000 fsGroup: 10000
{{- if .Values.core.serviceAccountName }} {{- if .Values.core.serviceAccountName }}
......
...@@ -25,6 +25,10 @@ spec: ...@@ -25,6 +25,10 @@ spec:
{{ toYaml .Values.database.podAnnotations | indent 8 }} {{ toYaml .Values.database.podAnnotations | indent 8 }}
{{- end }} {{- end }}
spec: spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.database.internal.serviceAccountName }} {{- if .Values.database.internal.serviceAccountName }}
serviceAccountName: {{ .Values.database.internal.serviceAccountName }} serviceAccountName: {{ .Values.database.internal.serviceAccountName }}
{{- end -}} {{- end -}}
......
{{- if .Values.registrySecrets -}}
kind: Secret
apiVersion: v1
metadata:
name: beagle-registry
namespace: {{ .Release.Namespace}}
data:
.dockerconfigjson: ewoJImF1dGhzIjogewoJCSJyZWdpc3RyeS5iZWFnbGUuZGVmYXVsdDo2NDQ0IjogewoJCQkiYXV0aCI6ICJZbVZoWjJ4bE9tSmxZV2RzWlE9PSIKCQl9Cgl9Cn0=
type: kubernetes.io/dockerconfigjson
{{- end -}}
\ No newline at end of file
...@@ -35,6 +35,10 @@ spec: ...@@ -35,6 +35,10 @@ spec:
{{ toYaml .Values.jobservice.podAnnotations | indent 8 }} {{ toYaml .Values.jobservice.podAnnotations | indent 8 }}
{{- end }} {{- end }}
spec: spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext: securityContext:
fsGroup: 10000 fsGroup: 10000
{{- if .Values.jobservice.serviceAccountName }} {{- if .Values.jobservice.serviceAccountName }}
......
...@@ -30,6 +30,10 @@ spec: ...@@ -30,6 +30,10 @@ spec:
{{ toYaml .Values.nginx.podAnnotations | indent 8 }} {{ toYaml .Values.nginx.podAnnotations | indent 8 }}
{{- end }} {{- end }}
spec: spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.nginx.serviceAccountName }} {{- if .Values.nginx.serviceAccountName }}
serviceAccountName: {{ .Values.nginx.serviceAccountName }} serviceAccountName: {{ .Values.nginx.serviceAccountName }}
{{- end }} {{- end }}
......
...@@ -24,6 +24,10 @@ spec: ...@@ -24,6 +24,10 @@ spec:
{{ toYaml .Values.notary.podAnnotations | indent 8 }} {{ toYaml .Values.notary.podAnnotations | indent 8 }}
{{- end }} {{- end }}
spec: spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext: securityContext:
fsGroup: 10000 fsGroup: 10000
{{- if .Values.notary.server.serviceAccountName }} {{- if .Values.notary.server.serviceAccountName }}
......
...@@ -26,6 +26,10 @@ spec: ...@@ -26,6 +26,10 @@ spec:
{{ toYaml .Values.portal.podAnnotations | indent 8 }} {{ toYaml .Values.portal.podAnnotations | indent 8 }}
{{- end }} {{- end }}
spec: spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.imagePullSecrets }} {{- with .Values.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
......
...@@ -24,6 +24,10 @@ spec: ...@@ -24,6 +24,10 @@ spec:
{{ toYaml .Values.redis.podAnnotations | indent 8 }} {{ toYaml .Values.redis.podAnnotations | indent 8 }}
{{- end }} {{- end }}
spec: spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext: securityContext:
fsGroup: 999 fsGroup: 999
{{- if .Values.redis.internal.serviceAccountName }} {{- if .Values.redis.internal.serviceAccountName }}
......
...@@ -35,6 +35,10 @@ spec: ...@@ -35,6 +35,10 @@ spec:
{{ toYaml .Values.registry.podAnnotations | indent 8 }} {{ toYaml .Values.registry.podAnnotations | indent 8 }}
{{- end }} {{- end }}
spec: spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext: securityContext:
fsGroup: 10000 fsGroup: 10000
{{- if .Values.registry.serviceAccountName }} {{- if .Values.registry.serviceAccountName }}
......
...@@ -30,6 +30,10 @@ spec: ...@@ -30,6 +30,10 @@ spec:
{{ toYaml .Values.trivy.podAnnotations | indent 8 }} {{ toYaml .Values.trivy.podAnnotations | indent 8 }}
{{- end }} {{- end }}
spec: spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.imagePullSecrets }} {{- with .Values.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
......
...@@ -2,4 +2,8 @@ global: ...@@ -2,4 +2,8 @@ global:
hub: registry.cn-qingdao.aliyuncs.com/wod hub: registry.cn-qingdao.aliyuncs.com/wod
imagePullPolicy: "IfNotPresent" imagePullPolicy: "IfNotPresent"
imageArch: amd64 imageArch: amd64
host: wodcloud.local host: wodcloud.local
\ No newline at end of file imagePullSecrets:
- name: beagle-registry
registrySecrets: true
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment