allegroai / clearml-helm-charts

Helm chart repository for the new unified way to deploy ClearML on Kubernetes. ClearML - Auto-Magical CI/CD to streamline your AI workload. Experiment Management, Data Management, Pipeline, Orchestration, Scheduling & Serving in one MLOps/LLMOps solution
https://clear.ml/docs
36 stars 50 forks source link

[clearml-agent] existingAgentk8sglueSecret ignored by Deployment template #275

Closed savitha-qs closed 7 months ago

savitha-qs commented 7 months ago

The Deployment template (in agentk8sglue-deployment.yaml) in the clearml-agent chart ignores the clearml.existingAgentk8sglueSecret setting in the values.yaml file.

            - name: CLEARML_API_ACCESS_KEY
              valueFrom:
                secretKeyRef:
                  name: {{ include "clearmlAgent.fullname" . }}-ac
                  key: agentk8sglue_key
            - name: CLEARML_API_SECRET_KEY
              valueFrom:
                secretKeyRef:
                  name: {{ include "clearmlAgent.fullname" . }}-ac
                  key: agentk8sglue_secret

The name of the secretKeyRef should be conditional based on existingAgentk8sglueSecret similar to how the ConfigMap template (in agentk8sglue-configmap.yaml) does it as shown below.

            - name: CLEARML_API_ACCESS_KEY
              valueFrom:
                secretKeyRef:
                  {{- if .Values.clearml.existingAgentk8sglueSecret }}
                  name: {{ .Values.clearml.existingAgentk8sglueSecret }}
                  {{- else }}
                  name: {{ include "clearmlAgent.fullname" . }}-ac
                  {{- end }}
                  key: agentk8sglue_key
            - name: CLEARML_API_SECRET_KEY
              valueFrom:
                secretKeyRef:
                  {{- if .Values.clearml.existingAgentk8sglueSecret }}
                  name: {{ .Values.clearml.existingAgentk8sglueSecret }}
                  {{- else }}
                  name: {{ include "clearmlAgent.fullname" . }}-ac
                  {{- end }}
                  key: agentk8sglue_secret

What's your helm version?

3.11.1

What's your kubectl version?

1.27.1

What's the chart version?

5.1.3

Enter the changed values of values.yaml?

NONE

savitha-qs commented 7 months ago

I've created a PR for it here.

savitha-qs commented 7 months ago

Fixed in clearml-agent version 5.1.4.