Allow enabling/disabling of each daemonset

Change-Id: I5520c0a86fd53160fd9c8a071f9ee1547dce41f4
This commit is contained in:
Craig Anderson 2018-08-30 18:33:48 +00:00
parent 0ac90c40a0
commit 7755b665b1
5 changed files with 14 additions and 0 deletions

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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 }}

View File

@ -76,3 +76,9 @@ pod:
requests:
memory: "128Mi"
cpu: "100m"
manifests:
daemonset_ethtool: true
daemonset_mounts: true
daemonset_uamlite: true
daemonset_sysctl: true