[stable/chaoskube] Implement filter by Kind feature for chaoskube deployment. (#23827)

* Implement filter by Kind feature for chaoskube deployment.

Signed-off-by: Anatoli Iariomenco <Anatoli.Iariomenco@qlik.com>

* Conditional kinds flag.

Signed-off-by: Anatoli Iariomenco <Anatoli.Iariomenco@qlik.com>

* Bump chart version.

Signed-off-by: Anatoli Iariomenco <Anatoli.Iariomenco@qlik.com>
This commit is contained in:
Anatoli Iariomenco
2020-10-29 17:46:05 -07:00
committed by GitHub
parent b9278fa98c
commit 93b2786e9b
4 changed files with 10 additions and 3 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: chaoskube
version: 3.2.1
appVersion: 0.14.0
version: 3.3.0
appVersion: 0.21.0
description: Chaoskube periodically kills random pods in your Kubernetes cluster.
icon: https://raw.githubusercontent.com/linki/chaoskube/master/chaoskube.png
home: https://github.com/linki/chaoskube
+1
View File
@@ -46,6 +46,7 @@ $ helm install stable/chaoskube --set dryRun=false
| `replicas` | number of replicas to run | 1 |
| `interval` | interval between pod terminations | 10m |
| `labels` | label selector to filter pods by | "" (matches everything) |
| `kinds` | OwnerReference's Kind selector to filter pods by | "" (matches everything) |
| `annotations` | annotation selector to filter pods by | "" (matches everything) |
| `namespaces` | namespace selector to filter pods by | "" (all namespaces) |
| `dryRun` | don't kill pods, only log what would have been done | true |
@@ -28,6 +28,9 @@ spec:
args:
- --interval={{ .Values.interval }}
- --labels={{ .Values.labels }}
{{- if .Values.kinds }}
- --kinds={{ .Values.kinds }}
{{- end }}
- --annotations={{ .Values.annotations }}
- --namespaces={{ .Values.namespaces }}
{{- if not .Values.dryRun }}
+4 -1
View File
@@ -5,7 +5,7 @@ name: chaoskube
image: quay.io/linki/chaoskube
# docker image tag
imageTag: v0.14.0
imageTag: v0.21.0
## secrets for pulling images from a private docker registry.
# imagePullSecrets:
@@ -20,6 +20,9 @@ interval: 10m
# label selector to filter pods by, e.g. app=foo,stage!=prod
labels:
# kinds selector to filter pods by, e.g. '!DaemonSet' (use quotes)
kinds:
# annotation selector to filter pods by, e.g. chaos.alpha.kubernetes.io/enabled=true
annotations: