Skip to content

Commit

Permalink
Adds back the old configmap if statements for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
byronmansfield committed Dec 7, 2024
1 parent 9fcd7df commit 4d164b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/locust/templates/configmap-locust-lib.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.loadtest.locust_lib_configmap }}
{{- if eq .Values.loadtest.locust_lib_configmap "example-lib" }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand Down
2 changes: 2 additions & 0 deletions stable/locust/templates/configmap-locust-locustfile.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if eq .Values.loadtest.locust_locustfile_configmap "example-locustfile" }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -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 }}

0 comments on commit 4d164b3

Please sign in to comment.