[stable/kube-ops-view] Support affinity (#9789)

* [stable/kube-ops-view] Support affinity

Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>

* bump version

Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>
This commit is contained in:
David J. M. Karlsen
2018-12-12 05:16:39 -08:00
committed by Kubernetes Prow Robot
parent 3763061a79
commit 2d348afcdc
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: kube-ops-view
version: 0.6.0
version: 0.7.0
appVersion: 0.9
description: Kubernetes Operational View - read-only system dashboard for multiple
K8s clusters
@@ -10,15 +10,18 @@ spec:
metadata:
labels:
app: {{ template "kube-ops-view.fullname" . }}
{{- if .Values.podLabels }}
{{- if .Values.podLabels }}
{{ toYaml .Values.podLabels | indent 8 }}
{{- end }}
{{- end }}
spec:
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
{{- with .Values.securityContext }}
securityContext:
{{ toYaml . | indent 8 }}
{{- end }}
serviceAccountName: {{ if .Values.rbac.create }}{{ template "kube-ops-view.fullname" . }}{{ else }}"{{ .Values.rbac.serviceAccountName }}"{{ end }}
containers:
- name: {{ .Chart.Name }}
+1
View File
@@ -38,6 +38,7 @@ rbac:
## Additional pod labels
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
podLabels: {}
affinity: {}
# Add securityContext
securityContext: {}