mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
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
|
||||
{{- 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
|
||||
|
||||
Reference in New Issue
Block a user