Skip to content

Commit

Permalink
fix: avoid public storage env variables when not needed (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
rangoo94 authored Nov 5, 2024
1 parent a108c1e commit b8db995
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion charts/testkube-cloud-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,12 @@ spec:
value: "{{ .Values.api.minio.signing.hostname }}"
- name: "AGENT_STORAGE_SSL"
value: "{{ .Values.api.minio.signing.secure }}"
{{- if .Values.global.storage.public.endpoint }}
- name: "PUBLIC_STORAGE_HOSTNAME"
value: "{{ .Values.global.storage.public.endpoint }}"
- name: "PUBLIC_STORAGE_SSL"
value: "{{ .Values.global.storage.public.secure }}"
value: "{{ .Values.global.storage.public.secure | default "false" }}"
{{- end }}
{{- if .Values.api.minio.certSecret.enabled }}
- name: "MINIO_CERT_FILE"
value: "{{ .Values.api.minio.certSecret.baseMountPath }}/{{ .Values.api.minio.certSecret.certFile }}"
Expand Down

0 comments on commit b8db995

Please sign in to comment.