[stable/chaoskube] Fix labels (#13848)

Signed-off-by: Sébastien Prud'homme <sebastien.prudhomme@gmail.com>
This commit is contained in:
Sébastien Prud'homme
2019-05-16 16:16:29 -07:00
committed by Kubernetes Prow Robot
parent 891ca97c8b
commit bf0a444a8a
5 changed files with 9 additions and 15 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: chaoskube
version: 1.1.0
version: 2.0.0
appVersion: 0.13.0
description: Chaoskube periodically kills random pods in your Kubernetes cluster.
icon: https://raw.githubusercontent.com/linki/chaoskube/master/chaoskube.png
+1 -1
View File
@@ -2,7 +2,7 @@ chaoskube is running and will kill arbitrary pods every {{ .Values.interval }}.
You can follow the logs to see what chaoskube does:
POD=$(kubectl -n {{ .Release.Namespace }} get pods -l='release={{ template "chaoskube.fullname" . }}' --output=jsonpath='{.items[0].metadata.name}')
POD=$(kubectl -n {{ .Release.Namespace }} get pods -l='app.kubernetes.io/instance={{ template "chaoskube.fullname" . }}' --output=jsonpath='{.items[0].metadata.name}')
kubectl -n {{ .Release.Namespace }} logs -f $POD
{{ if .Values.dryRun }}
You are running in dry-run mode. No pod is actually terminated.
+4 -10
View File
@@ -31,15 +31,9 @@ Create chart name and version as used by the chart label.
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- /*
Credit: @technosophos
https://github.com/technosophos/common-chart/
labels.standard prints the standard Helm labels.
The standard labels are frequently used in metadata.
*/ -}}
{{- define "labels.standard" -}}
app: {{ include "chaoskube.name" . }}
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
chart: {{ include "chaoskube.chart" . }}
app.kubernetes.io/name: {{ include "chaoskube.name" . }}
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
helm.sh/chart: {{ include "chaoskube.chart" . }}
{{- end -}}
+2 -2
View File
@@ -12,8 +12,8 @@ spec:
replicas: {{ .Values.replicas }}
selector:
matchLabels:
app: {{ include "chaoskube.name" . }}
release: {{ .Release.Name }}
app.kubernetes.io/name: {{ include "chaoskube.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
+1 -1
View File
@@ -84,7 +84,7 @@ affinity: {}
# - topologyKey: "kubernetes.io/hostname"
# labelSelector:
# matchLabels:
# app: chaoskube
# app.kubernetes.io/name: chaoskube
podAnnotations: {}
## Annotations for the chaoskube pod.