fix: move range
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{{- $processName, $config := range .Values.processes }}
|
{{- range $processName, $config := .Values.processes }}
|
||||||
# Only process cron jobs
|
# Only process cron jobs
|
||||||
{{- if not (and (hasKey $config "cron") (hasKey $config.cron "id")) }}
|
{{- if not (and (hasKey $config "cron") (hasKey $config.cron "id")) }}
|
||||||
{{- continue }}
|
{{- continue }}
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{{- $processName := "PROCESS_NAME" }}
|
{{- range $processName, $config := .Values.processes }}
|
||||||
{{- $config := index .Values.processes "PROCESS_NAME" }}
|
# Skip cron jobs
|
||||||
|
{{- if and (hasKey $config "cron") (hasKey $config.cron "id") }}
|
||||||
|
{{- continue }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- $mappings := dict }}
|
{{- $mappings := dict }}
|
||||||
{{- if eq $processName "web" }}
|
{{- if eq $processName "web" }}
|
||||||
{{- range $pdx, $port_map := $config.web.port_maps }}
|
{{- range $pdx, $port_map := $config.web.port_maps }}
|
||||||
@@ -143,3 +147,4 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}}
|
{{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}}
|
||||||
{{- $authName, $config := range .Values.global.keda.authentications }}
|
{{- range $authName, $config := .Values.global.keda.authentications }}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}}
|
{{- 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
|
apiVersion: keda.sh/v1alpha1
|
||||||
kind: TriggerAuthentication
|
kind: TriggerAuthentication
|
||||||
|
|||||||
Reference in New Issue
Block a user