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