Skip to content

Commit f23cb6b

Browse files
authored
Merge branch 'master' into fix/wiremock-secrets-handling
2 parents 486c21b + 44bb275 commit f23cb6b

File tree

6 files changed

+87
-25
lines changed

6 files changed

+87
-25
lines changed

stable/locust/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
22
name: locust
3-
version: "0.31.9"
3+
version: "0.32.0"
44
appVersion: 2.32.2
55
home: https://github.com/locustio/locust
66
icon: https://locust.io/static/img/logo.png

stable/locust/README.md

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# locust
22

3-
![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)
3+
![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)
44

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

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

3939
```console
40-
helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/locust --version 0.31.9
40+
helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/locust --version 0.32.0
4141
```
4242

4343
To install the chart with the release name `my-release`:
@@ -104,14 +104,25 @@ helm install my-release oci://ghcr.io/deliveryhero/helm-charts/locust -f values.
104104
| master.deploymentAnnotations | object | `{}` | Annotations on the deployment for master |
105105
| master.environment | object | `{}` | environment variables for the master |
106106
| master.envs_include_default | bool | `true` | Whether to include default environment variables |
107+
| master.extraPorts | string | `nil` | |
107108
| master.image | string | `""` | A custom docker image including tag |
109+
| master.livenessProbe | object | `{}` | |
108110
| master.logLevel | string | `"INFO"` | Log level. Can be INFO or DEBUG |
109111
| master.nodeSelector | object | `{}` | Overwrites nodeSelector from global |
110112
| master.pdb.enabled | bool | `false` | Whether to create a PodDisruptionBudget for the master pod |
113+
| master.readinessProbe.failureThreshold | int | `2` | |
114+
| master.readinessProbe.httpGet.path | string | `"/"` | |
115+
| master.readinessProbe.httpGet.port | int | `8089` | |
116+
| master.readinessProbe.httpGet.scheme | string | `"HTTP"` | |
117+
| master.readinessProbe.initialDelaySeconds | int | `5` | |
118+
| master.readinessProbe.periodSeconds | int | `30` | |
119+
| master.readinessProbe.successThreshold | int | `1` | |
120+
| master.readinessProbe.timeoutSeconds | int | `30` | |
111121
| master.replicas | int | `1` | Should be set to either 0 or 1. |
112122
| master.resources | object | `{}` | resources for the locust master |
113123
| master.restartPolicy | string | `"Always"` | master pod's restartPolicy. Can be Always, OnFailure, or Never. |
114124
| master.serviceAccountAnnotations | object | `{}` | |
125+
| master.startupProbe | object | `{}` | |
115126
| master.strategy.type | string | `"RollingUpdate"` | |
116127
| master.tolerations | list | `[]` | Overwrites tolerations from global |
117128
| nameOverride | string | `""` | |
@@ -121,6 +132,8 @@ helm install my-release oci://ghcr.io/deliveryhero/helm-charts/locust -f values.
121132
| service.annotations | object | `{}` | |
122133
| service.extraLabels | object | `{}` | |
123134
| service.loadBalancerIP | string | `""` | |
135+
| service.port | int | `8089` | |
136+
| service.targetPort | int | `8089` | |
124137
| service.type | string | `"ClusterIP"` | |
125138
| tolerations | list | `[]` | |
126139
| worker.affinity | object | `{}` | Overwrites affinity from global |

stable/locust/templates/master-deployment.yaml

+18-18
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ spec:
6060
{{- if .Values.loadtest.headless }}
6161
- --headless
6262
{{- end }}
63+
{{- if ne (.Values.service.targetPort | toString) "8089" }}
64+
- --web-port {{ .Values.service.targetPort }}
65+
{{- end }}
6366
{{- if .Values.master.auth.enabled }}
6467
{{- 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)}}
6568
- --web-login
@@ -132,7 +135,7 @@ spec:
132135
{{- end }}
133136
{{- end }}
134137
ports:
135-
- containerPort: 8089
138+
- containerPort: {{ .Values.service.targetPort }}
136139
name: loc-master-web
137140
protocol: TCP
138141
- containerPort: 5557
@@ -141,24 +144,21 @@ spec:
141144
- containerPort: 5558
142145
name: loc-master-p2
143146
protocol: TCP
147+
{{- if .Values.master.extraPorts -}}
148+
{{ toYaml .Values.master.extraPorts | nindent 10 }}
149+
{{- end }}
150+
{{- if .Values.master.readinessProbe }}
144151
readinessProbe:
145-
initialDelaySeconds: 5
146-
periodSeconds: 30
147-
timeoutSeconds: 30
148-
failureThreshold: 2
149-
{{- if .Values.loadtest.headless }}
150-
tcpSocket:
151-
port: 5557
152-
{{ else }}
153-
httpGet:
154-
path: /
155-
port: 8089
156-
{{- if .Values.master.auth.enabled }}
157-
httpHeaders:
158-
- name: Authorization
159-
value: Basic {{ printf "%s:%s" .Values.master.auth.username .Values.master.auth.password | b64enc }}
160-
{{- end }}
161-
{{- end }}
152+
{{- toYaml .Values.master.readinessProbe | nindent 12 }}
153+
{{- end }}
154+
{{- if .Values.master.livenessProbe }}
155+
livenessProbe:
156+
{{- toYaml .Values.master.livenessProbe | nindent 12 }}
157+
{{- end }}
158+
{{- if .Values.master.startupProbe }}
159+
startupProbe:
160+
{{- toYaml .Values.master.startupProbe | nindent 12 }}
161+
{{- end }}
162162
restartPolicy: {{ .Values.master.restartPolicy }}
163163
volumes:
164164
{{- if .Values.loadtest.locust_lib_configmap }}

stable/locust/templates/master-ingress.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ spec:
4949
service:
5050
name: {{ $fullName }}
5151
port:
52-
number: 8089
52+
number: {{ $.Values.service.port }}
5353
{{- else }}
5454
serviceName: {{ $fullName }}
55-
servicePort: 8089
55+
servicePort: {{ $.Values.service.port }}
5656
{{- end }}
5757
{{- end }}
5858
{{- end }}

stable/locust/templates/master-service.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ spec:
2424
protocol: TCP
2525
targetPort: 5558
2626
- name: master-p3
27-
port: 8089
27+
port: {{ .Values.service.port }}
2828
protocol: TCP
29-
targetPort: 8089
29+
targetPort: {{ .Values.service.targetPort }}
30+
{{- if and (.Values.service.nodePort) (eq (.Values.service.type | toString) "NodePort") }}
31+
nodePort: {{ .Values.service.nodePort }}
32+
{{- end }}
3033
selector:
3134
component: master
3235
{{- include "locust.selectorLabels" . | nindent 4 }}

stable/locust/values.yaml

+46
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ service:
4646
annotations: {}
4747
extraLabels: {}
4848
loadBalancerIP: ""
49+
port: 8089
50+
targetPort: 8089
51+
# nodePort: 8089
4952

5053
master:
5154
# master.image -- A custom docker image including tag
@@ -85,6 +88,49 @@ master:
8588
enabled: false
8689
username: ""
8790
password: ""
91+
92+
# extraPorts is a list of extra ports. Specified as a YAML list.
93+
# This is useful if you need to add additional ports for monitoring.
94+
extraPorts: null
95+
# - containerPort: 8080
96+
# name: http-monitoring
97+
98+
# Used to define readinessProbe for the pod
99+
readinessProbe:
100+
initialDelaySeconds: 5
101+
periodSeconds: 30
102+
timeoutSeconds: 30
103+
failureThreshold: 2
104+
successThreshold: 1
105+
httpGet:
106+
path: /
107+
port: 8089
108+
scheme: HTTP
109+
110+
# Used to define livenessProbe for the pod
111+
livenessProbe: {}
112+
# initialDelaySeconds: 60
113+
# periodSeconds: 30
114+
# timeoutSeconds: 30
115+
# failureThreshold: 2
116+
# successThreshold: 1
117+
# httpGet:
118+
# path: /
119+
# port: 8089
120+
# scheme: HTTP
121+
122+
# Used to define startupProbe for the pod
123+
startupProbe: {}
124+
# initialDelaySeconds: 60
125+
# periodSeconds: 30
126+
# timeoutSeconds: 30
127+
# failureThreshold: 2
128+
# successThreshold: 1
129+
# httpGet:
130+
# path: /
131+
# port: 8089
132+
# scheme: HTTP
133+
88134
# master.restartPolicy -- master pod's restartPolicy. Can be Always, OnFailure, or Never.
89135
restartPolicy: Always
90136
# master.nodeSelector -- Overwrites nodeSelector from global

0 commit comments

Comments
 (0)