Skip to content

Commit

Permalink
[stable/chaoskube] Support adding pod labels. (helm#20914)
Browse files Browse the repository at this point in the history
Signed-off-by: Afolabi Badmos <afolabi@badmos.com>
Signed-off-by: Miguel Mingorance <miguel.mingorance@deliveryhero.com>
  • Loading branch information
badie authored and Miguel Mingorance committed Aug 28, 2020
1 parent 48c644b commit 7a99753
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/chaoskube/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: chaoskube
version: 3.1.3
version: 3.1.4
appVersion: 0.14.0
description: Chaoskube periodically kills random pods in your Kubernetes cluster.
icon: https://raw.githubusercontent.com/linki/chaoskube/master/chaoskube.png
Expand Down
1 change: 1 addition & 0 deletions stable/chaoskube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ $ helm install stable/chaoskube --set dryRun=false
| `affinity` | Affinity settings for pod assignment | `{}` |
| `minimumAge` | Set minimum pod age to filter pod by | `0s` |
| `podAnnotations` | Annotations for the chaoskube pod | `{}` |
| `podLabels` | Labels for the chaoskube pod | `{}` |
| `gracePeriod` | grace period to give pods when terminating them | `-1s` (pod decides) |
| `metrics.enabled` | Enable metrics handler | `false` |
| `metrics.port` | Listening port for metrics handler | `8080` |
Expand Down
3 changes: 3 additions & 0 deletions stable/chaoskube/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
metadata:
labels:
{{ include "labels.standard" . | indent 8 }}
{{- if .Values.podLabels }}
{{ toYaml .Values.podLabels | indent 8 }}
{{- end }}
{{- if .Values.podAnnotations }}
annotations:
{{ toYaml .Values.podAnnotations | indent 8 }}
Expand Down
6 changes: 6 additions & 0 deletions stable/chaoskube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,9 @@ podAnnotations: {}
# podAnnotations:
# prometheus.io/scrape: "true"
# prometheus.io/port: "8080"

podLabels: {}
## Labels for the chaoskube pod.
# podLabels:
# my.first.label: "value"
# my.other.label: "other-value"

0 comments on commit 7a99753

Please sign in to comment.