From 7755b665b1632c314f24007d2e2f1b39e68e2137 Mon Sep 17 00:00:00 2001 From: Craig Anderson Date: Thu, 30 Aug 2018 18:33:48 +0000 Subject: [PATCH] Allow enabling/disabling of each daemonset Change-Id: I5520c0a86fd53160fd9c8a071f9ee1547dce41f4 --- divingbell/templates/daemonset-ethtool.yaml | 2 ++ divingbell/templates/daemonset-mounts.yaml | 2 ++ divingbell/templates/daemonset-sysctl.yaml | 2 ++ divingbell/templates/daemonset-uamlite.yaml | 2 ++ divingbell/values.yaml | 6 ++++++ 5 files changed, 14 insertions(+) diff --git a/divingbell/templates/daemonset-ethtool.yaml b/divingbell/templates/daemonset-ethtool.yaml index 06404bf..0f2e3d3 100644 --- a/divingbell/templates/daemonset-ethtool.yaml +++ b/divingbell/templates/daemonset-ethtool.yaml @@ -60,8 +60,10 @@ spec: defaultMode: 0555 {{- end }} {{- end }} +{{- if .Values.manifests.daemonset_ethtool }} {{- $daemonset := "ethtool" }} {{- $configMapName := "divingbell-ethtool" }} {{- $daemonset_yaml := list $daemonset $configMapName . | include "divingbell.daemonset.ethtool" | toString | fromYaml }} {{- $configmap_include := "divingbell.configmap.ethtool" }} {{- list $daemonset $daemonset_yaml $configmap_include $configMapName . | include "helm-toolkit.utils.daemonset_overrides" }} +{{- end }} diff --git a/divingbell/templates/daemonset-mounts.yaml b/divingbell/templates/daemonset-mounts.yaml index 0d4d106..e1665cc 100644 --- a/divingbell/templates/daemonset-mounts.yaml +++ b/divingbell/templates/daemonset-mounts.yaml @@ -60,8 +60,10 @@ spec: defaultMode: 0555 {{- end }} {{- end }} +{{- if .Values.manifests.daemonset_mounts }} {{- $daemonset := "mounts" }} {{- $configMapName := "divingbell-mounts" }} {{- $daemonset_yaml := list $daemonset $configMapName . | include "divingbell.daemonset.mounts" | toString | fromYaml }} {{- $configmap_include := "divingbell.configmap.mounts" }} {{- list $daemonset $daemonset_yaml $configmap_include $configMapName . | include "helm-toolkit.utils.daemonset_overrides" }} +{{- end }} diff --git a/divingbell/templates/daemonset-sysctl.yaml b/divingbell/templates/daemonset-sysctl.yaml index 4fca19a..a4e9d49 100644 --- a/divingbell/templates/daemonset-sysctl.yaml +++ b/divingbell/templates/daemonset-sysctl.yaml @@ -60,8 +60,10 @@ spec: defaultMode: 0555 {{- end }} {{- end }} +{{- if .Values.manifests.daemonset_sysctl }} {{- $daemonset := "sysctl" }} {{- $configMapName := "divingbell-sysctl" }} {{- $daemonset_yaml := list $daemonset $configMapName . | include "divingbell.daemonset.sysctl" | toString | fromYaml }} {{- $configmap_include := "divingbell.configmap.sysctl" }} {{- list $daemonset $daemonset_yaml $configmap_include $configMapName . | include "helm-toolkit.utils.daemonset_overrides" }} +{{- end }} diff --git a/divingbell/templates/daemonset-uamlite.yaml b/divingbell/templates/daemonset-uamlite.yaml index 85ef8bd..3b6953e 100644 --- a/divingbell/templates/daemonset-uamlite.yaml +++ b/divingbell/templates/daemonset-uamlite.yaml @@ -60,8 +60,10 @@ spec: defaultMode: 0555 {{- end }} {{- end }} +{{- if .Values.manifests.daemonset_uamlite }} {{- $daemonset := "uamlite" }} {{- $configMapName := "divingbell-uamlite" }} {{- $daemonset_yaml := list $daemonset $configMapName . | include "divingbell.daemonset.uamlite" | toString | fromYaml }} {{- $configmap_include := "divingbell.configmap.uamlite" }} {{- list $daemonset $daemonset_yaml $configmap_include $configMapName . | include "helm-toolkit.utils.daemonset_overrides" }} +{{- end }} diff --git a/divingbell/values.yaml b/divingbell/values.yaml index 2ee97ba..f29e8e4 100644 --- a/divingbell/values.yaml +++ b/divingbell/values.yaml @@ -76,3 +76,9 @@ pod: requests: memory: "128Mi" cpu: "100m" + +manifests: + daemonset_ethtool: true + daemonset_mounts: true + daemonset_uamlite: true + daemonset_sysctl: true