From 4773750a7c154ad1ad39f2ae8cbf4d871317ed43 Mon Sep 17 00:00:00 2001 From: Byron Mansfield Date: Mon, 11 Nov 2024 08:25:31 +0000 Subject: [PATCH] [stable/locust]: Updates master.auth.enabled to fix newer login method (#627) Updates master.auth.enabled to fix newer method --- stable/locust/Chart.yaml | 4 ++-- stable/locust/README.md | 8 ++++---- stable/locust/templates/master-deployment.yaml | 2 +- stable/locust/values.yaml | 5 +++-- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/stable/locust/Chart.yaml b/stable/locust/Chart.yaml index 1074f7c0..8356b105 100644 --- a/stable/locust/Chart.yaml +++ b/stable/locust/Chart.yaml @@ -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: diff --git a/stable/locust/README.md b/stable/locust/README.md index b3c71df8..b05d9295 100644 --- a/stable/locust/README.md +++ b/stable/locust/README.md @@ -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. @@ -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`: @@ -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 | `""` | | @@ -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"` | | diff --git a/stable/locust/templates/master-deployment.yaml b/stable/locust/templates/master-deployment.yaml index e1093047..eafbe18b 100644 --- a/stable/locust/templates/master-deployment.yaml +++ b/stable/locust/templates/master-deployment.yaml @@ -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 }} diff --git a/stable/locust/values.yaml b/stable/locust/values.yaml index 638adaf6..55e03918 100644 --- a/stable/locust/values.yaml +++ b/stable/locust/values.yaml @@ -38,7 +38,7 @@ loadtest: image: repository: locustio/locust - tag: 2.32.1 + tag: 2.32.2 pullPolicy: IfNotPresent service: @@ -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: ""