From 55c85fb6aa2657140fa65bbcd4fd98bdbc0989e6 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 25 Feb 2024 13:58:30 -0500 Subject: [PATCH] fix: ensure non-web processes do not attempt to perform web logic in k3s templates --- plugins/scheduler-k3s/templates/chart/deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/scheduler-k3s/templates/chart/deployment.yaml b/plugins/scheduler-k3s/templates/chart/deployment.yaml index 38d1eea83..b2688edc9 100644 --- a/plugins/scheduler-k3s/templates/chart/deployment.yaml +++ b/plugins/scheduler-k3s/templates/chart/deployment.yaml @@ -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