Skip to content

Commit

Permalink
feat: Mount path /tmp as emptyDir volume (#3218)
Browse files Browse the repository at this point in the history
Co-authored-by: Kent Rancourt <[email protected]>
  • Loading branch information
ggogel and krancour authored Jan 8, 2025
1 parent 6dfa01e commit 85bba5a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions charts/kargo/templates/controller/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ spec:
{{- with (concat .Values.global.envFrom .Values.controller.envFrom) }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if or .Values.kubeconfigSecrets.kargo .Values.kubeconfigSecrets.argocd .Values.controller.gitClient.signingKeySecret.name .Values.controller.cabundle.configMapName .Values.controller.cabundle.secretName }}
volumeMounts:
- mountPath: /tmp
name: tmpData
{{- if or .Values.kubeconfigSecrets.kargo .Values.kubeconfigSecrets.argocd }}
- mountPath: /etc/kargo/kubeconfigs
name: kubeconfigs
Expand All @@ -95,13 +96,13 @@ spec:
- mountPath: /etc/ssl/certs
name: certs
{{- end }}
{{- end }}
{{- with .Values.controller.securityContext | default .Values.global.securityContext }}
securityContext:
{{- toYaml . | nindent 10 }}
{{- end }}
resources:
{{- toYaml .Values.controller.resources | nindent 10 }}

{{- if or .Values.controller.cabundle.configMapName .Values.controller.cabundle.secretName }}
initContainers:
- name: parse-cabundle
Expand All @@ -127,8 +128,9 @@ spec:
- name: certs
mountPath: /tmp/target
{{- end }}
{{- if or .Values.kubeconfigSecrets.kargo .Values.kubeconfigSecrets.argocd .Values.controller.gitClient.signingKeySecret.name .Values.controller.cabundle.configMapName .Values.controller.cabundle.secretName }}
volumes:
- name: tmpData
emptyDir: {}
{{- if or .Values.kubeconfigSecrets.kargo .Values.kubeconfigSecrets.argocd }}
- name: kubeconfigs
projected:
Expand Down Expand Up @@ -169,7 +171,6 @@ spec:
secretName: {{ .Values.controller.gitClient.signingKeySecret.name }}
defaultMode: 0644
{{- end }}
{{- end }}
{{- with .Values.controller.nodeSelector | default .Values.global.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down

0 comments on commit 85bba5a

Please sign in to comment.