Skip to content

Commit

Permalink
[stable/metrics-server] Add podLabels support (helm#21068)
Browse files Browse the repository at this point in the history
Signed-off-by: Joffrey Janiec <jjaniec@student.42.fr>
  • Loading branch information
jjaniec authored Feb 26, 2020
1 parent 6a62fe5 commit 85251a8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/metrics-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 0.3.6
description: Metrics Server is a cluster-wide aggregator of resource usage data.
name: metrics-server
version: 2.9.0
version: 2.10.0
keywords:
- metrics-server
home: https://github.com/kubernetes-incubator/metrics-server
Expand Down
1 change: 1 addition & 0 deletions stable/metrics-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Parameter | Description | Default
`extraVolumeMounts` | Ability to provide volume mounts to the pod | `[]`
`extraVolumes` | Ability to provide volumes to the pod | `[]`
`livenessProbe` | Container liveness probe | See values.yaml
`podLabels` | Labels to be added to pods | `{}`
`podAnnotations` | Annotations to be added to pods | `{}`
`priorityClassName` | Pod priority class | `""`
`readinessProbe` | Container readiness probe | See values.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
labels:
app: {{ template "metrics-server.name" . }}
release: {{ .Release.Name }}
{{- if .Values.podLabels }}
{{ toYaml .Values.podLabels | indent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
annotations:
{{- range $key, $value := . }}
Expand Down
2 changes: 2 additions & 0 deletions stable/metrics-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ replicas: 1

extraContainers: []

podLabels: {}

podAnnotations: {}
# The following annotations guarantee scheduling for critical add-on pods.
# See more at: https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/
Expand Down

0 comments on commit 85251a8

Please sign in to comment.