Skip to content

Commit

Permalink
[stable/locust]: Updates configmap for locustfile and lib to not be w…
Browse files Browse the repository at this point in the history
…rapped in explictstring "example" (#634)

* Updates configmap for locustfile and lib to not be wrapped in explicit naming string

* Adds in conditional to check if locust lib configmap is required or not

* Hopefully fixing the locust chart error
  • Loading branch information
byronmansfield authored Nov 22, 2024
1 parent 5b3e724 commit c349de1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion stable/locust/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: locust
version: "0.32.0"
version: "0.32.1"
appVersion: 2.32.2
home: https://github.com/locustio/locust
icon: https://locust.io/static/img/logo.png
Expand Down
4 changes: 2 additions & 2 deletions stable/locust/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# locust

![Version: 0.32.0](https://img.shields.io/badge/Version-0.32.0-informational?style=flat-square) ![AppVersion: 2.32.2](https://img.shields.io/badge/AppVersion-2.32.2-informational?style=flat-square)
![Version: 0.32.1](https://img.shields.io/badge/Version-0.32.1-informational?style=flat-square) ![AppVersion: 2.32.2](https://img.shields.io/badge/AppVersion-2.32.2-informational?style=flat-square)

A chart to install Locust, a scalable load testing tool written in Python.

Expand Down Expand Up @@ -37,7 +37,7 @@ helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/locust
To install a specific version of this chart:

```console
helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/locust --version 0.32.0
helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/locust --version 0.32.1
```

To install the chart with the release name `my-release`:
Expand Down
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 eq .Values.loadtest.locust_lib_configmap "example-lib" }}
{{- if .Values.loadtest.locust_lib_configmap }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand Down
2 changes: 0 additions & 2 deletions stable/locust/templates/configmap-locust-locustfile.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if eq .Values.loadtest.locust_locustfile_configmap "example-locustfile" }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -7,4 +6,3 @@ 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 c349de1

Please sign in to comment.