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
Copy file name to clipboardExpand all lines: charts/eoapi/templates/_helpers/validation.tpl
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,9 +30,13 @@ so we use this helper function to check autoscaling rules
30
30
{{/*
31
31
Validate stac-auth-proxy configuration
32
32
Ensures OIDC_DISCOVERY_URL is set when stac-auth-proxy is enabled
33
+
Ensures stac-auth-proxy cannot be enabled when stac is disabled
33
34
*/}}
34
35
{{- define "eoapi.validateStacAuthProxy" -}}
35
36
{{- if index .Values "stac-auth-proxy""enabled" }}
37
+
{{- if not .Values.stac.enabled }}
38
+
{{- fail "stac-auth-proxy cannot be enabled when stac.enabled is false. Enable stac first or disable stac-auth-proxy." }}
39
+
{{- end }}
36
40
{{- if not (index .Values "stac-auth-proxy""env""OIDC_DISCOVERY_URL") }}
37
41
{{- fail "stac-auth-proxy.env.OIDC_DISCOVERY_URL is required when stac-auth-proxy is enabled. Set it to your OpenID Connect discovery URL (e.g., https://your-auth-server/.well-known/openid-configuration)" }}
0 commit comments