Skip to content

Commit

Permalink
Updates locust version, adds fix for web-login, adds ability to pass …
Browse files Browse the repository at this point in the history
…reserved ip to load balancer service
  • Loading branch information
byronmansfield committed Nov 6, 2024
1 parent 0c612e8 commit 404b9fb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 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.6"
appVersion: 2.15.1
version: "0.31.7"
appVersion: 2.32.1
home: https://github.com/locustio/locust
icon: https://locust.io/static/img/logo.png
maintainers:
Expand Down
5 changes: 3 additions & 2 deletions stable/locust/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# locust

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

To install the chart with the release name `my-release`:
Expand Down Expand Up @@ -120,6 +120,7 @@ helm install my-release oci://ghcr.io/deliveryhero/helm-charts/locust -f values.
| securityContext | object | `{}` | |
| service.annotations | object | `{}` | |
| service.extraLabels | object | `{}` | |
| service.loadBalancerIP | string | `""` | |
| service.type | string | `"ClusterIP"` | |
| tolerations | list | `[]` | |
| worker.affinity | object | `{}` | Overwrites affinity from global |
Expand Down
4 changes: 4 additions & 0 deletions stable/locust/templates/master-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@ spec:
- --headless
{{- 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 }}
{{ else }}
- --web-auth={{ .Values.master.auth.username }}:{{ .Values.master.auth.password }}
{{- end }}
{{- end }}
{{- if .Values.loadtest.tags }}
- --tags {{ .Values.loadtest.tags }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions stable/locust/templates/master-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if and (eq .Values.service.type "LoadBalancer") (.Values.service.loadBalancerIP)}}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
ports:
- name: master-p1
port: 5557
Expand Down
3 changes: 2 additions & 1 deletion stable/locust/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,14 @@ loadtest:

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

service:
type: ClusterIP
annotations: {}
extraLabels: {}
loadBalancerIP: ""

master:
# master.image -- A custom docker image including tag
Expand Down

0 comments on commit 404b9fb

Please sign in to comment.