mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-01-31 17:16:47 +00:00
19a6785a03
* Allowing auth secrets to be optional * Add value secret.existingSecret for clearml chart. * Add value clearml.existingAgentk8sglueSecret for clearml-agent chart. * Add value clearml.existingClearmlConfigSecret for clearml-agent chart. * Split Secret clearml-agent-conf in clearml-agent chart into two Secrets: clearml-agent-conf (agent.conf file) and clearml-agent-k8sglue (environment variables). * Update helm-docs
31 lines
917 B
YAML
31 lines
917 B
YAML
{{- if not .Values.clearml.existingAgentk8sglueSecret }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "agentk8sglue.referenceName" . }}-clearml-agent-k8sglue
|
|
data:
|
|
agentk8sglue_key: {{ .Values.clearml.agentk8sglueKey | b64enc }}
|
|
agentk8sglue_secret: {{ .Values.clearml.agentk8sglueSecret | b64enc }}
|
|
{{- end }}
|
|
---
|
|
{{- if not .Values.clearml.existingClearmlConfigSecret }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "agentk8sglue.referenceName" . }}-clearml-agent-conf
|
|
data:
|
|
clearml.conf: {{ .Values.clearml.clearmlConfig | b64enc }}
|
|
---
|
|
{{- end }}
|
|
{{- if .Values.imageCredentials.enabled }}
|
|
{{- if not .Values.imageCredentials.existingSecret }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "agentk8sglue.referenceName" . }}-clearml-agent-registry-key
|
|
type: kubernetes.io/dockerconfigjson
|
|
data:
|
|
.dockerconfigjson: {{ template "imagePullSecret" . }}
|
|
{{- end }}
|
|
{{- end }}
|