From 4d164b38dddba636a4db7a9718b855fc5508a0c7 Mon Sep 17 00:00:00 2001 From: Byron Mansfield Date: Sat, 7 Dec 2024 15:38:52 -0800 Subject: [PATCH] Adds back the old configmap if statements for examples --- stable/locust/templates/configmap-locust-lib.yaml | 2 +- stable/locust/templates/configmap-locust-locustfile.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/stable/locust/templates/configmap-locust-lib.yaml b/stable/locust/templates/configmap-locust-lib.yaml index 9d9d4011..fc3286d7 100644 --- a/stable/locust/templates/configmap-locust-lib.yaml +++ b/stable/locust/templates/configmap-locust-lib.yaml @@ -1,4 +1,4 @@ -{{- if .Values.loadtest.locust_lib_configmap }} +{{- if eq .Values.loadtest.locust_lib_configmap "example-lib" }} apiVersion: v1 kind: ConfigMap metadata: diff --git a/stable/locust/templates/configmap-locust-locustfile.yaml b/stable/locust/templates/configmap-locust-locustfile.yaml index d30b7df4..f670b8f0 100644 --- a/stable/locust/templates/configmap-locust-locustfile.yaml +++ b/stable/locust/templates/configmap-locust-locustfile.yaml @@ -1,3 +1,4 @@ +{{- if eq .Values.loadtest.locust_locustfile_configmap "example-locustfile" }} apiVersion: v1 kind: ConfigMap metadata: @@ -6,3 +7,4 @@ metadata: {{ include "locust.labels" . | indent 4 }} data: {{ (.Files.Glob (printf "locustfiles/%s/%s" .Values.loadtest.name .Values.loadtest.locust_locustfile)).AsConfig | indent 2 }} +{{- end }}