fix: index the process map to ensure the correct config is pulled

Without this change, certain generated process names - like those for a cron job - may be incorrectly handled when indexing the process map.
This commit is contained in:
Jose Diaz-Gonzalez
2024-02-06 04:41:14 -05:00
parent 4abd1f6b24
commit d7ff8552d1
6 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
{{- $processName := "PROCESS_NAME" }} {{- $processName := "PROCESS_NAME" }}
{{- $config := .Values.processes.PROCESS_NAME }} {{- $config := index .Values.processes "PROCESS_NAME" }}
{{- if and $config.web.tls.enabled $config.web.domains }} {{- if and $config.web.tls.enabled $config.web.domains }}
--- ---
apiVersion: cert-manager.io/v1 apiVersion: cert-manager.io/v1

View File

@@ -1,5 +1,5 @@
{{- $processName := "CRON_ID" }} {{- $processName := "CRON_ID" }}
{{- $config := .Values.processes.CRON_ID }} {{- $config := index .Values.processes "CRON_ID" }}
--- ---
apiVersion: batch/v1 apiVersion: batch/v1
kind: CronJob kind: CronJob

View File

@@ -1,5 +1,5 @@
{{- $processName := "PROCESS_NAME" }} {{- $processName := "PROCESS_NAME" }}
{{- $config := .Values.processes.PROCESS_NAME }} {{- $config := index .Values.processes "PROCESS_NAME" }}
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment

View File

@@ -1,5 +1,5 @@
{{- $processName := "PROCESS_NAME" }} {{- $processName := "PROCESS_NAME" }}
{{- $config := .Values.processes.PROCESS_NAME }} {{- $config := index .Values.processes "PROCESS_NAME" }}
{{- if and $config.web.domains (eq $.Values.global.network.ingress_class "traefik") }} {{- if and $config.web.domains (eq $.Values.global.network.ingress_class "traefik") }}
--- ---
apiVersion: traefik.io/v1alpha1 apiVersion: traefik.io/v1alpha1

View File

@@ -1,5 +1,5 @@
{{- $processName := "PROCESS_NAME" }} {{- $processName := "PROCESS_NAME" }}
{{- $config := .Values.processes.PROCESS_NAME }} {{- $config := index .Values.processes "PROCESS_NAME" }}
{{- if and $config.web.domains (eq $.Values.global.network.ingress_class "traefik") }} {{- if and $config.web.domains (eq $.Values.global.network.ingress_class "traefik") }}
{{- range $pdx, $port_map := $config.web.port_maps }} {{- range $pdx, $port_map := $config.web.port_maps }}
--- ---

View File

@@ -1,5 +1,5 @@
{{- $processName := "PROCESS_NAME" }} {{- $processName := "PROCESS_NAME" }}
{{- $config := .Values.processes.PROCESS_NAME }} {{- $config := index .Values.processes "PROCESS_NAME" }}
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service