From b364eb5e615671a4903c9e893070fcd2ba07be98 Mon Sep 17 00:00:00 2001 From: nishant221 Date: Tue, 29 Aug 2023 12:40:28 +0530 Subject: [PATCH] [stable/node-problem-detector]: Adding support for defining volumeType of localtime (#509) Adding support for defining volumeType of localtime --- stable/node-problem-detector/Chart.yaml | 2 +- stable/node-problem-detector/README.md | 3 ++- stable/node-problem-detector/templates/daemonset.yaml | 2 +- stable/node-problem-detector/values.yaml | 4 ++++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/stable/node-problem-detector/Chart.yaml b/stable/node-problem-detector/Chart.yaml index 9f8b7820..76fb12e5 100644 --- a/stable/node-problem-detector/Chart.yaml +++ b/stable/node-problem-detector/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: node-problem-detector -version: "2.3.5" +version: "2.3.6" appVersion: v0.8.13 home: https://github.com/kubernetes/node-problem-detector description: | diff --git a/stable/node-problem-detector/README.md b/stable/node-problem-detector/README.md index e55467ef..ab3add0d 100644 --- a/stable/node-problem-detector/README.md +++ b/stable/node-problem-detector/README.md @@ -1,6 +1,6 @@ # node-problem-detector -![Version: 2.3.5](https://img.shields.io/badge/Version-2.3.5-informational?style=flat-square) ![AppVersion: v0.8.13](https://img.shields.io/badge/AppVersion-v0.8.13-informational?style=flat-square) +![Version: 2.3.6](https://img.shields.io/badge/Version-2.3.6-informational?style=flat-square) ![AppVersion: v0.8.13](https://img.shields.io/badge/AppVersion-v0.8.13-informational?style=flat-square) 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. @@ -93,6 +93,7 @@ helm install my-release deliveryhero/node-problem-detector -f values.yaml | tolerations[0].effect | string | `"NoSchedule"` | | | tolerations[0].operator | string | `"Exists"` | | | updateStrategy | string | `"RollingUpdate"` | Manage the daemonset update strategy | +| volume.localtime.type | string | `"FileOrCreate"` | | ## Maintainers diff --git a/stable/node-problem-detector/templates/daemonset.yaml b/stable/node-problem-detector/templates/daemonset.yaml index f7248744..df13537b 100644 --- a/stable/node-problem-detector/templates/daemonset.yaml +++ b/stable/node-problem-detector/templates/daemonset.yaml @@ -112,7 +112,7 @@ spec: - name: localtime hostPath: path: /etc/localtime - type: "FileOrCreate" + type: {{ default "FileOrCreate" .Values.volume.localtime.type }} - name: custom-config configMap: name: {{ include "node-problem-detector.customConfig" . }} diff --git a/stable/node-problem-detector/values.yaml b/stable/node-problem-detector/values.yaml index cb037031..a1110614 100644 --- a/stable/node-problem-detector/values.yaml +++ b/stable/node-problem-detector/values.yaml @@ -76,6 +76,10 @@ rbac: hostNetwork: false hostPID: false +volume: + localtime: + type: "FileOrCreate" + priorityClassName: system-node-critical securityContext: