Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
[stable/kubernetes-dashboard] Support pod annotations (#8890)
Browse files Browse the repository at this point in the history
Signed-off-by: Emily Karisch <[email protected]>
  • Loading branch information
QuingKhaos authored and k8s-ci-robot committed Jan 9, 2019
1 parent f841959 commit 76f08fe
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/kubernetes-dashboard/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: kubernetes-dashboard
version: 1.0.1
version: 1.1.0
appVersion: 1.10.1
description: General-purpose web UI for Kubernetes clusters
keywords:
Expand Down
1 change: 1 addition & 0 deletions stable/kubernetes-dashboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ The following table lists the configurable parameters of the kubernetes-dashboar
| `annotations` | Annotations for deployment | `{}` |
| `replicaCount` | Number of replicas | `1` |
| `extraArgs` | Additional container arguments | `[]` |
| `podAnnotations` | Annotations to be added to pods | {} |
| `nodeSelector` | node labels for pod assignment | `{}` |
| `tolerations` | List of node taints to tolerate (requires Kubernetes >= 1.6) | `[]` |
| `affinity` | Affinity for pod assignment | `[]` |
Expand Down
4 changes: 4 additions & 0 deletions stable/kubernetes-dashboard/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ spec:
type: RollingUpdate
template:
metadata:
{{- if .Values.podAnnotations }}
annotations:
{{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }}
labels:
app: {{ template "kubernetes-dashboard.name" . }}
release: {{ .Release.Name }}
Expand Down
3 changes: 3 additions & 0 deletions stable/kubernetes-dashboard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ enableInsecureLogin: false
# - --enable-insecure-login
# - --system-banner="Welcome to Kubernetes"

# Annotations to be added to kubernetes dashboard pods
podAnnotations: {}

## Node labels for pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
Expand Down

0 comments on commit 76f08fe

Please sign in to comment.