fix: move range

This commit is contained in:
Jose Diaz-Gonzalez
2025-07-04 01:46:03 -04:00
parent 6da9be2d65
commit 1b95e01ea3
4 changed files with 10 additions and 5 deletions

View File

@@ -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 }}

View File

@@ -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 }}

View File

@@ -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

View File

@@ -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