Feature/add extra labels and annotations locust (#5203)

* Added custom labels and annotations to locust service definition

* Bumped up the version and fixed docs

* Removing default value for annotations and labels from locust chart

* Fixing locust svc template

* Fixed annotations rendering on locust master-svc

* Fixes naming convention for values and bumped up the version

* Fixing Chart version
This commit is contained in:
Miguel Elias dos Santos
2018-05-12 01:07:26 -07:00
committed by k8s-ci-robot
parent 74392ea20c
commit b3c261cea1
4 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: locust
description: A modern load testing framework
version: 0.1.4
version: 0.2.0
appVersion: 0.7.5
maintainers:
- name: Vincent De Smet
+2
View File
@@ -31,6 +31,8 @@ helm install -n locust-nymph --set master.config.target-host=http://site.example
| `image.tag` | Locust Container image tag | `0.7.5` |
| `service.type` | k8s service type exposing master | `NodePort` |
| `service.nodePort` | Port on cluster to expose master | `0` |
| `service.annotations` | KV containing custom annotations | `{}` |
| `service.extraLabels` | KV containing extra labels | `{}` |
| `master.config.target-host` | locust target host | `http://site.example.com` |
| `worker.config.locust-script`| locust script to run | `/locust-tasks/tasks.py` |
| `worker.replicaCount` | Number of workers to run | `2` |
+9
View File
@@ -8,6 +8,15 @@ metadata:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
app: {{ template "locust.fullname" . }}
component: "master"
{{- range $key, $value := .Values.service.extraLabels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- if .Values.service.annotations }}
annotations:
{{- range $key, $value := .Values.service.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
+2
View File
@@ -11,6 +11,8 @@ service:
externalPort: 8089
internalPort: 8089
nodePort: 0
annotations: {}
extraLabels: {}
master:
config:
target-host: https://site.example.com