mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-04-17 01:31:13 +00:00
Fix imagepullsecret error (#89)
* adapt ingress * update docs * remove idea * fix imagepullsecret error
This commit is contained in:
parent
dc30518c26
commit
e28a2f991b
@ -144,13 +144,6 @@ Create the name of the Files service to use
|
|||||||
{{/*
|
{{/*
|
||||||
Return the proper Docker Image Registry Secret Names
|
Return the proper Docker Image Registry Secret Names
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "clearml.imagePullSecrets" -}}
|
{{- define "imagePullSecret" }}
|
||||||
{{- if .Values.global }}
|
{{- printf "{\"auths\": {\"%s\": {\"auth\": \"%s\"}}}" .Values.imageCredentials.registry (printf "%s:%s" .Values.imageCredentials.username .Values.imageCredentials.password | b64enc) | b64enc }}
|
||||||
{{- if .Values.global.imagePullSecrets }}
|
|
||||||
imagePullSecrets:
|
|
||||||
{{- range .Values.global.imagePullSecrets }}
|
|
||||||
- name: {{ . }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
@ -22,7 +22,7 @@ spec:
|
|||||||
{{- if .Values.imageCredentials.enabled }}
|
{{- if .Values.imageCredentials.enabled }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{- if .Values.imageCredentials.existingSecret }}
|
{{- if .Values.imageCredentials.existingSecret }}
|
||||||
- name: .Values.imageCredentials.existingSecret
|
- name: {{ .Values.imageCredentials.existingSecret }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
- name: clearml-agent-registry-key
|
- name: clearml-agent-registry-key
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -25,7 +25,7 @@ spec:
|
|||||||
{{- if .Values.imageCredentials.enabled }}
|
{{- if .Values.imageCredentials.enabled }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{- if .Values.imageCredentials.existingSecret }}
|
{{- if .Values.imageCredentials.existingSecret }}
|
||||||
- name: .Values.imageCredentials.existingSecret
|
- name: {{ .Values.imageCredentials.existingSecret }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
- name: clearml-agent-registry-key
|
- name: clearml-agent-registry-key
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -21,7 +21,7 @@ spec:
|
|||||||
{{- if .Values.imageCredentials.enabled }}
|
{{- if .Values.imageCredentials.enabled }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{- if .Values.imageCredentials.existingSecret }}
|
{{- if .Values.imageCredentials.existingSecret }}
|
||||||
- name: .Values.imageCredentials.existingSecret
|
- name: {{ .Values.imageCredentials.existingSecret }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
- name: clearml-agent-registry-key
|
- name: clearml-agent-registry-key
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
9
charts/clearml/templates/imagePullSecret.yaml
Executable file
9
charts/clearml/templates/imagePullSecret.yaml
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
{{- if .Values.imageCredentials.enabled -}}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: clearml-agent-registry-key
|
||||||
|
type: kubernetes.io/dockerconfigjson
|
||||||
|
data:
|
||||||
|
.dockerconfigjson: {{ template "imagePullSecret" . }}
|
||||||
|
{{- end }}
|
Loading…
Reference in New Issue
Block a user