fix: ensure non-web processes do not attempt to perform web logic in k3s templates

This commit is contained in:
Jose Diaz-Gonzalez
2024-02-25 13:58:30 -05:00
parent ae092a9ef3
commit 55c85fb6aa

View File

@@ -1,9 +1,11 @@
{{- $processName := "PROCESS_NAME" }}
{{- $config := index .Values.processes "PROCESS_NAME" }}
{{- $mappings := dict }}
{{- if eq $processName "web" }}
{{- range $pdx, $port_map := $config.web.port_maps }}
{{- $mappings := set $mappings $port_map.name "true" }}
{{- end }}
{{- end }}
---
apiVersion: apps/v1
kind: Deployment