mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-04-17 01:31:13 +00:00
Use existingClearmlConfigSecret (#283)
* use config as secret * update chart and readme * avoid creating secret if not needed * move string on values.yaml
This commit is contained in:
parent
5ded87ec92
commit
cfe62484af
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: clearml-agent
|
name: clearml-agent
|
||||||
description: MLOps platform Task running agent
|
description: MLOps platform Task running agent
|
||||||
type: application
|
type: application
|
||||||
version: "5.1.4"
|
version: "5.1.5"
|
||||||
appVersion: "1.24"
|
appVersion: "1.24"
|
||||||
kubeVersion: ">= 1.21.0-0 < 1.30.0-0"
|
kubeVersion: ">= 1.21.0-0 < 1.30.0-0"
|
||||||
home: https://clear.ml
|
home: https://clear.ml
|
||||||
@ -21,4 +21,4 @@ keywords:
|
|||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: fixed
|
- kind: fixed
|
||||||
description: honor existingAgentk8sglueSecret in deployment template
|
description: Use existingClearmlConfigSecret in deployment template
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# ClearML Kubernetes Agent
|
# ClearML Kubernetes Agent
|
||||||
|
|
||||||
  
|
  
|
||||||
|
|
||||||
MLOps platform Task running agent
|
MLOps platform Task running agent
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: {{ include "clearmlAgent.fullname" . }}-pt
|
- name: {{ include "clearmlAgent.fullname" . }}-pt
|
||||||
mountPath: /root/template
|
mountPath: /root/template
|
||||||
{{ if .Values.clearml.clearmlConfig }}
|
{{ if or (.Values.clearml.clearmlConfig) (.Values.clearml.existingClearmlConfigSecret) }}
|
||||||
- name: k8sagent-clearml-conf-volume
|
- name: k8sagent-clearml-conf-volume
|
||||||
mountPath: /root/clearml.conf
|
mountPath: /root/clearml.conf
|
||||||
subPath: clearml.conf
|
subPath: clearml.conf
|
||||||
@ -103,7 +103,7 @@ spec:
|
|||||||
- name: K8S_GLUE_EXTRA_ARGS
|
- name: K8S_GLUE_EXTRA_ARGS
|
||||||
value: "--namespace {{ .Release.Namespace }} --template-yaml /root/template/template.yaml"
|
value: "--namespace {{ .Release.Namespace }} --template-yaml /root/template/template.yaml"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.clearml.clearmlConfig }}
|
{{ if or (.Values.clearml.clearmlConfig) (.Values.clearml.existingClearmlConfigSecret) }}
|
||||||
- name: CLEARML_CONFIG_FILE
|
- name: CLEARML_CONFIG_FILE
|
||||||
value: /root/clearml.conf
|
value: /root/clearml.conf
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@ -160,7 +160,14 @@ spec:
|
|||||||
- name: {{ include "clearmlAgent.fullname" . }}-pt
|
- name: {{ include "clearmlAgent.fullname" . }}-pt
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ include "clearmlAgent.fullname" . }}-pt
|
name: {{ include "clearmlAgent.fullname" . }}-pt
|
||||||
{{ if .Values.clearml.clearmlConfig }}
|
{{ if .Values.clearml.existingClearmlConfigSecret }}
|
||||||
|
- name: k8sagent-clearml-conf-volume
|
||||||
|
secret:
|
||||||
|
secretName: {{ .Values.clearml.existingClearmlConfigSecret }}
|
||||||
|
items:
|
||||||
|
- key: clearml.conf
|
||||||
|
path: clearml.conf
|
||||||
|
{{ else if .Values.clearml.clearmlConfig }}
|
||||||
- name: k8sagent-clearml-conf-volume
|
- name: k8sagent-clearml-conf-volume
|
||||||
secret:
|
secret:
|
||||||
secretName: {{ include "clearmlAgent.fullname" . }}-ac
|
secretName: {{ include "clearmlAgent.fullname" . }}-ac
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{{- if or (not .Values.clearml.existingAgentk8sglueSecret) (not .Values.clearml.existingClearmlConfigSecret) }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
@ -6,6 +7,7 @@ data:
|
|||||||
agentk8sglue_key: {{ .Values.clearml.agentk8sglueKey | b64enc }}
|
agentk8sglue_key: {{ .Values.clearml.agentk8sglueKey | b64enc }}
|
||||||
agentk8sglue_secret: {{ .Values.clearml.agentk8sglueSecret | b64enc }}
|
agentk8sglue_secret: {{ .Values.clearml.agentk8sglueSecret | b64enc }}
|
||||||
clearml.conf: {{ .Values.clearml.clearmlConfig | b64enc }}
|
clearml.conf: {{ .Values.clearml.clearmlConfig | b64enc }}
|
||||||
|
{{- end }}
|
||||||
---
|
---
|
||||||
{{- if .Values.imageCredentials.enabled }}
|
{{- if .Values.imageCredentials.enabled }}
|
||||||
{{- if not .Values.imageCredentials.existingSecret }}
|
{{- if not .Values.imageCredentials.existingSecret }}
|
||||||
|
@ -29,6 +29,16 @@ clearml:
|
|||||||
|
|
||||||
# -- If this is set, chart will not generate a secret but will use what is defined here
|
# -- If this is set, chart will not generate a secret but will use what is defined here
|
||||||
existingClearmlConfigSecret: ""
|
existingClearmlConfigSecret: ""
|
||||||
|
# The secret should be defined as the following example
|
||||||
|
#
|
||||||
|
# apiVersion: v1
|
||||||
|
# kind: Secret
|
||||||
|
# metadata:
|
||||||
|
# name: secret-name
|
||||||
|
# stringData:
|
||||||
|
# clearml.conf: |-
|
||||||
|
# sdk {
|
||||||
|
# }
|
||||||
# -- ClearML configuration file
|
# -- ClearML configuration file
|
||||||
clearmlConfig: |-
|
clearmlConfig: |-
|
||||||
sdk {
|
sdk {
|
||||||
|
Loading…
Reference in New Issue
Block a user