fix: move range

This commit is contained in:
Jose Diaz-Gonzalez committed 2025-07-04 04:24:09 -04:00
1 parent 6da9be2d65
commit 1b95e01ea3
4 files changed
+10 -5

No files matched your search

@@ -1,4 +1,4 @@
{{- $processName, $config := range .Values.processes }}
{{- range $processName, $config := .Values.processes }}
# Only process cron jobs
{{- if not (and (hasKey $config "cron") (hasKey $config.cron "id")) }}
{{- continue }}
@@ -1,5 +1,9 @@
{{- $processName := "PROCESS_NAME" }}
{{- $config := index .Values.processes "PROCESS_NAME" }}
{{- range $processName, $config := .Values.processes }}
# Skip cron jobs
{{- if and (hasKey $config "cron") (hasKey $config.cron "id") }}
{{- continue }}
{{- end }}
{{- $mappings := dict }}
{{- if eq $processName "web" }}
{{- range $pdx, $port_map := $config.web.port_maps }}
@@ -143,3 +147,4 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
@@ -1,5 +1,5 @@
{{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}}
{{- $authName, $config := range .Values.global.keda.authentications }}
{{- range $authName, $config := .Values.global.keda.authentications }}
---
apiVersion: v1
kind: Secret
@@ -1,5 +1,5 @@
{{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}}
{{- $authName, $config := range .Values.global.keda.authentications }}
{{- range $authName, $config := .Values.global.keda.authentications }}
---
apiVersion: keda.sh/v1alpha1
kind: TriggerAuthentication