Skip to content

Commit

Permalink
[stable/node-problem-detector] Add custom labels to daemonset (helm#2…
Browse files Browse the repository at this point in the history
…1334)

Add the ability to use custom labels to daemonset.

Signed-off-by: Markos Chandras <[email protected]>
Signed-off-by: Miguel Mingorance <[email protected]>
  • Loading branch information
hwoarang authored and Miguel Mingorance committed Aug 28, 2020
1 parent 88ae0e5 commit ec431cf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/node-problem-detector/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: node-problem-detector
version: "1.6.3"
version: "1.6.4"
appVersion: v0.7.0
home: https://github.com/kubernetes/node-problem-detector
description: Installs the node-problem-detector daemonset for monitoring extra attributes on nodes
Expand Down
1 change: 1 addition & 0 deletions stable/node-problem-detector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ The following table lists the configurable parameters for this chart and their d
| `tolerations` | Optional daemonset tolerations | `["effect: NoSchedule,operator: Exists"]` |
| `nodeSelector` | Optional daemonset nodeSelector | `{}` |
| `env` | Optional daemonset environment variables | `[]` |
| `labels` | Optional daemonset labels | `{}` |

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install` or provide a YAML file containing the values for the above parameters:

Expand Down
3 changes: 3 additions & 0 deletions stable/node-problem-detector/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ metadata:
helm.sh/chart: {{ include "node-problem-detector.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- range $key, $val := .Values.labels }}
{{ $key }}: {{ $val | quote }}
{{- end}}
spec:
selector:
matchLabels:
Expand Down
2 changes: 2 additions & 0 deletions stable/node-problem-detector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ resources: {}

annotations: {}

labels: {}

tolerations:
- effect: NoSchedule
operator: Exists
Expand Down

0 comments on commit ec431cf

Please sign in to comment.