Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable/locust]: Updates locust version, adds fix for web-login, adds ability to pass reserved ip to load balancer service #625

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
7 changes: 4 additions & 3 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 @@ -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.15.1"` | |
| image.tag | string | `"2.32.1"` | |
| imagePullSecrets | list | `[]` | |
| ingress.annotations | object | `{}` | |
| ingress.className | string | `""` | |
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
Loading