fix: ensure non-web processes do not attempt to perform web logic in k3s templates
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
{{- $processName := "PROCESS_NAME" }}
|
{{- $processName := "PROCESS_NAME" }}
|
||||||
{{- $config := index .Values.processes "PROCESS_NAME" }}
|
{{- $config := index .Values.processes "PROCESS_NAME" }}
|
||||||
{{- $mappings := dict }}
|
{{- $mappings := dict }}
|
||||||
|
{{- if eq $processName "web" }}
|
||||||
{{- range $pdx, $port_map := $config.web.port_maps }}
|
{{- range $pdx, $port_map := $config.web.port_maps }}
|
||||||
{{- $mappings := set $mappings $port_map.name "true" }}
|
{{- $mappings := set $mappings $port_map.name "true" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
|||||||
Reference in New Issue
Block a user