Skip to content

Commit a0b6279

Browse files
authored
[stable/node-problem-detector] Add initContainers support (#787)
Signed-off-by: Zadkiel AHARONIAN <hello@zadkiel.fr>
1 parent 2cc9042 commit a0b6279

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

stable/node-problem-detector/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: node-problem-detector
3-
version: 2.4.0
3+
version: 2.4.1
44
appVersion: v1.35.1
55
home: https://github.com/kubernetes/node-problem-detector
66
description: |

stable/node-problem-detector/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# node-problem-detector
22

3-
![Version: 2.4.0](https://img.shields.io/badge/Version-2.4.0-informational?style=flat-square) ![AppVersion: v1.35.1](https://img.shields.io/badge/AppVersion-v1.35.1-informational?style=flat-square)
3+
![Version: 2.4.1](https://img.shields.io/badge/Version-2.4.1-informational?style=flat-square) ![AppVersion: v1.35.1](https://img.shields.io/badge/AppVersion-v1.35.1-informational?style=flat-square)
44

55
This chart installs a [node-problem-detector](https://github.com/kubernetes/node-problem-detector) daemonset. This tool aims to make various node problems visible to the upstream layers in cluster management stack. It is a daemon which runs on each node, detects node problems and reports them to apiserver.
66

@@ -17,7 +17,7 @@ helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/node-problem
1717
To install a specific version of this chart:
1818

1919
```console
20-
helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/node-problem-detector --version 2.4.0
20+
helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/node-problem-detector --version 2.4.1
2121
```
2222

2323
To install the chart with the release name `my-release`:
@@ -64,6 +64,7 @@ helm install my-release oci://ghcr.io/deliveryhero/helm-charts/node-problem-dete
6464
| image.repository | string | `"registry.k8s.io/node-problem-detector/node-problem-detector"` | |
6565
| image.tag | string | `"v1.35.1"` | |
6666
| imagePullSecrets | list | `[]` | |
67+
| initContainers | list | `[]` | |
6768
| labels | object | `{}` | |
6869
| logDir.host | string | `"/var/log/"` | log directory on k8s host |
6970
| logDir.pod | string | `""` | log directory in pod (volume mount), use logDir.host if empty |

stable/node-problem-detector/templates/daemonset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ spec:
5353
{{- if .Values.priorityClassName }}
5454
priorityClassName: {{ .Values.priorityClassName | quote }}
5555
{{- end }}
56+
{{- if .Values.initContainers }}
57+
initContainers:
58+
{{- toYaml .Values.initContainers | nindent 8 }}
59+
{{- end }}
5660
containers:
5761
- name: {{ .Chart.Name }}
5862
{{- if .Values.image.digest }}

stable/node-problem-detector/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ extraVolumes: []
165165

166166
extraVolumeMounts: []
167167

168+
initContainers: []
169+
168170
extraContainers: []
169171

170172
# updateStrategy -- Manage the daemonset update strategy

0 commit comments

Comments
 (0)