Skip to content

Commit

Permalink
[stable/kube-ops-view] Support affinity (helm#9789)
Browse files Browse the repository at this point in the history
* [stable/kube-ops-view] Support affinity

Signed-off-by: David J. M. Karlsen <[email protected]>

* bump version

Signed-off-by: David J. M. Karlsen <[email protected]>
  • Loading branch information
davidkarlsen authored and k8s-ci-robot committed Dec 12, 2018
1 parent 3763061 commit 2d348af
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stable/kube-ops-view/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 6 additions & 3 deletions stable/kube-ops-view/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions stable/kube-ops-view/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ rbac:
## Additional pod labels
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
podLabels: {}
affinity: {}

# Add securityContext
securityContext: {}
Expand Down

0 comments on commit 2d348af

Please sign in to comment.