Skip to content

Commit

Permalink
[stable/locust] Adding hostAliases to locust template (deliveryhero#485)
Browse files Browse the repository at this point in the history
* Adding hostAliases to master-deployment

* Adding hostaliases to worker-deployment

* version bump

* updated readme

* updated readme again

* Adding hostaliases to the values.yaml file

* Added explanation

* Rerun docs generation

---------

Co-authored-by: Max Williams <[email protected]>
  • Loading branch information
abdullazin and max-rocket-internet authored Jul 5, 2023
1 parent 7a0e9e8 commit 9cedcc2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/locust/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: locust
version: "0.31.4"
version: "0.31.5"
appVersion: 2.15.1
home: https://github.com/locustio/locust
icon: https://locust.io/static/img/logo.png
Expand Down
3 changes: 2 additions & 1 deletion stable/locust/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# locust

![Version: 0.31.4](https://img.shields.io/badge/Version-0.31.4-informational?style=flat-square) ![AppVersion: 2.15.1](https://img.shields.io/badge/AppVersion-2.15.1-informational?style=flat-square)
![Version: 0.31.5](https://img.shields.io/badge/Version-0.31.5-informational?style=flat-square) ![AppVersion: 2.15.1](https://img.shields.io/badge/AppVersion-2.15.1-informational?style=flat-square)

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

Expand Down Expand Up @@ -66,6 +66,7 @@ helm install my-release deliveryhero/locust -f values.yaml
| extraConfigMaps | object | `{}` | Any extra configmaps to mount for the master and worker. Can be used for extra python packages |
| extraLabels | object | `{}` | Any extra labels to apply to all resources |
| fullnameOverride | string | `""` | |
| 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"` | |
Expand Down
3 changes: 3 additions & 0 deletions stable/locust/templates/master-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
serviceAccountName: {{ template "locust.fullname" . }}-master
{{- if .Values.hostAliases }}
hostAliases: {{- .Values.hostAliases | toYaml | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down
3 changes: 3 additions & 0 deletions stable/locust/templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
serviceAccountName: {{ template "locust.fullname" . }}-worker
{{- if .Values.hostAliases }}
hostAliases: {{- .Values.hostAliases | toYaml | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down
6 changes: 6 additions & 0 deletions stable/locust/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ nameOverride: ""
fullnameOverride: ""
imagePullSecrets: []

# hostAliases -- List of entries added to the /etc/hosts file on the pod to resolve custom hosts
hostAliases: []
# - ip: "10.0.0.1"
# hostnames:
# - "example-host.com"

podSecurityContext: {}
# fsGroup: 2000

Expand Down

0 comments on commit 9cedcc2

Please sign in to comment.