You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: s3 integration and environment variable handling (#11)
* Refactor S3 integration and environment variable handling
Introduces helper templates for S3 configuration, refactors S3-related environment variables in deployments, and updates the S3 integration schema and values. Adds support for more flexible S3 configuration (endpoint, port, region, SSL, domain, pathStyle) and improves Traefik middleware for MinIO. Also standardizes image tag formatting in helper templates.
* Quote Helm template values in deployment YAMLs
Updated environment variable values in swanlab-house and swanlab-server deployment templates to consistently use Helm's | quote filter. This ensures correct YAML rendering and prevents type-related issues when values are rendered as booleans or numbers.
{{- required "If .Values.integrations.s3.enabled is true, you must specify the S3 endpoint via .Values.integrations.s3.endpoint.".Values.integrations.s3.endpoint -}}
80
+
{{- else -}}
81
+
{{- include "swanlab.s3.fullname". -}}
82
+
{{- end -}}
83
+
{{- end -}}
84
+
85
+
{{/*
86
+
S3 Port
87
+
*/}}
88
+
{{- define"swanlab.s3.port" }}
89
+
{{- if.Values.integrations.s3.enabled -}}
90
+
{{- required "If .Values.integrations.s3.enabled is true, you must specify the S3 port via .Values.integrations.s3.port.".Values.integrations.s3.port -}}
91
+
{{- else -}}
92
+
{{- 9000 -}}
93
+
{{- end -}}
94
+
{{- end -}}
95
+
96
+
{{/*
97
+
S3 Region
98
+
*/}}
99
+
{{- define"swanlab.s3.region" }}
100
+
{{- if.Values.integrations.s3.enabled -}}
101
+
{{- required "If .Values.integrations.s3.enabled is true, you must specify the S3 region via .Values.integrations.s3.region.".Values.integrations.s3.region -}}
102
+
{{- else -}}
103
+
{{- "local" -}}
104
+
{{- end -}}
105
+
{{- end -}}
106
+
107
+
{{/*
108
+
S3 Domain
109
+
*/}}
110
+
{{- define"swanlab.s3.domain" }}
111
+
{{- if.Values.integrations.s3.enabled -}}
112
+
{{- required "If .Values.integrations.s3.enabled is true, you must specify the S3 domain via .Values.integrations.s3.domain.".Values.integrations.s3.domain -}}
{{- $_ := required "You must provide a value for .Values.integrations.s3.existingSecret when .Values.integrations.s3.enabled is true" .Values.integrations.s3.existingSecret }}
0 commit comments