Skip to content

Commit

Permalink
[stable/locust]: Updates master.auth.enabled to fix newer login method (
Browse files Browse the repository at this point in the history
#627)

Updates master.auth.enabled to fix newer method
  • Loading branch information
byronmansfield authored Nov 11, 2024
1 parent 498555c commit 4773750
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions stable/locust/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: locust
version: "0.31.8"
appVersion: 2.32.1
version: "0.31.9"
appVersion: 2.32.2
home: https://github.com/locustio/locust
icon: https://locust.io/static/img/logo.png
maintainers:
Expand Down
8 changes: 4 additions & 4 deletions stable/locust/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# locust

![Version: 0.31.8](https://img.shields.io/badge/Version-0.31.8-informational?style=flat-square) ![AppVersion: 2.32.1](https://img.shields.io/badge/AppVersion-2.32.1-informational?style=flat-square)
![Version: 0.31.9](https://img.shields.io/badge/Version-0.31.9-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.31.8
helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/locust --version 0.31.9
```

To install the chart with the release name `my-release`:
Expand Down Expand Up @@ -70,7 +70,7 @@ helm install my-release oci://ghcr.io/deliveryhero/helm-charts/locust -f values.
| hostAliases | list | `[]` | List of entries added to the /etc/hosts file on the pod to resolve custom hosts |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"locustio/locust"` | |
| image.tag | string | `"2.32.1"` | |
| image.tag | string | `"2.32.2"` | |
| imagePullSecrets | list | `[]` | |
| ingress.annotations | object | `{}` | |
| ingress.className | string | `""` | |
Expand All @@ -96,7 +96,7 @@ helm install my-release oci://ghcr.io/deliveryhero/helm-charts/locust -f values.
| loadtest.tags | string | `""` | whether to run locust with `--tags [TAG [TAG ...]]` options, so only tasks with any matching tags will be executed |
| master.affinity | object | `{}` | Overwrites affinity from global |
| master.args | list | `[]` | Any extra command args for the master |
| master.auth.enabled | bool | `false` | When enabled, UI basic auth will be enforced with the given username and password |
| master.auth.enabled | bool | `false` | When enabled using image tag 2.21.0 or later you do not need username or pass word. Older image tags you are required to |
| master.auth.password | string | `""` | |
| master.auth.username | string | `""` | |
| master.command[0] | string | `"sh"` | |
Expand Down
2 changes: 1 addition & 1 deletion stable/locust/templates/master-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ spec:
{{- end }}
{{- if .Values.master.auth.enabled }}
{{- if or (semverCompare ">=2.21.0" .Values.image.tag) (semverCompare ">=2.21.0" .Values.master.image.tag) (semverCompare ">=2.21.0" .Values.worker.image.tag)}}
- --web-login={{ .Values.master.auth.username }}:{{ .Values.master.auth.password }}
- --web-login
{{ else }}
- --web-auth={{ .Values.master.auth.username }}:{{ .Values.master.auth.password }}
{{- end }}
Expand Down
5 changes: 3 additions & 2 deletions stable/locust/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ loadtest:

image:
repository: locustio/locust
tag: 2.32.1
tag: 2.32.2
pullPolicy: IfNotPresent

service:
Expand Down Expand Up @@ -79,7 +79,8 @@ master:
# master.pdb.enabled -- Whether to create a PodDisruptionBudget for the master pod
pdb:
enabled: false
# master.auth.enabled -- When enabled, UI basic auth will be enforced with the given username and password
# master.auth.enabled -- When enabled using image tag 2.21.0 or later you do
# not need username or pass word. Older image tags you are required to
auth:
enabled: false
username: ""
Expand Down

0 comments on commit 4773750

Please sign in to comment.