Allow enabling/disabling of each daemonset
Change-Id: I5520c0a86fd53160fd9c8a071f9ee1547dce41f4
This commit is contained in:
parent
0ac90c40a0
commit
7755b665b1
|
@ -60,8 +60,10 @@ spec:
|
||||||
defaultMode: 0555
|
defaultMode: 0555
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.manifests.daemonset_ethtool }}
|
||||||
{{- $daemonset := "ethtool" }}
|
{{- $daemonset := "ethtool" }}
|
||||||
{{- $configMapName := "divingbell-ethtool" }}
|
{{- $configMapName := "divingbell-ethtool" }}
|
||||||
{{- $daemonset_yaml := list $daemonset $configMapName . | include "divingbell.daemonset.ethtool" | toString | fromYaml }}
|
{{- $daemonset_yaml := list $daemonset $configMapName . | include "divingbell.daemonset.ethtool" | toString | fromYaml }}
|
||||||
{{- $configmap_include := "divingbell.configmap.ethtool" }}
|
{{- $configmap_include := "divingbell.configmap.ethtool" }}
|
||||||
{{- list $daemonset $daemonset_yaml $configmap_include $configMapName . | include "helm-toolkit.utils.daemonset_overrides" }}
|
{{- list $daemonset $daemonset_yaml $configmap_include $configMapName . | include "helm-toolkit.utils.daemonset_overrides" }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -60,8 +60,10 @@ spec:
|
||||||
defaultMode: 0555
|
defaultMode: 0555
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.manifests.daemonset_mounts }}
|
||||||
{{- $daemonset := "mounts" }}
|
{{- $daemonset := "mounts" }}
|
||||||
{{- $configMapName := "divingbell-mounts" }}
|
{{- $configMapName := "divingbell-mounts" }}
|
||||||
{{- $daemonset_yaml := list $daemonset $configMapName . | include "divingbell.daemonset.mounts" | toString | fromYaml }}
|
{{- $daemonset_yaml := list $daemonset $configMapName . | include "divingbell.daemonset.mounts" | toString | fromYaml }}
|
||||||
{{- $configmap_include := "divingbell.configmap.mounts" }}
|
{{- $configmap_include := "divingbell.configmap.mounts" }}
|
||||||
{{- list $daemonset $daemonset_yaml $configmap_include $configMapName . | include "helm-toolkit.utils.daemonset_overrides" }}
|
{{- list $daemonset $daemonset_yaml $configmap_include $configMapName . | include "helm-toolkit.utils.daemonset_overrides" }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -60,8 +60,10 @@ spec:
|
||||||
defaultMode: 0555
|
defaultMode: 0555
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.manifests.daemonset_sysctl }}
|
||||||
{{- $daemonset := "sysctl" }}
|
{{- $daemonset := "sysctl" }}
|
||||||
{{- $configMapName := "divingbell-sysctl" }}
|
{{- $configMapName := "divingbell-sysctl" }}
|
||||||
{{- $daemonset_yaml := list $daemonset $configMapName . | include "divingbell.daemonset.sysctl" | toString | fromYaml }}
|
{{- $daemonset_yaml := list $daemonset $configMapName . | include "divingbell.daemonset.sysctl" | toString | fromYaml }}
|
||||||
{{- $configmap_include := "divingbell.configmap.sysctl" }}
|
{{- $configmap_include := "divingbell.configmap.sysctl" }}
|
||||||
{{- list $daemonset $daemonset_yaml $configmap_include $configMapName . | include "helm-toolkit.utils.daemonset_overrides" }}
|
{{- list $daemonset $daemonset_yaml $configmap_include $configMapName . | include "helm-toolkit.utils.daemonset_overrides" }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -60,8 +60,10 @@ spec:
|
||||||
defaultMode: 0555
|
defaultMode: 0555
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.manifests.daemonset_uamlite }}
|
||||||
{{- $daemonset := "uamlite" }}
|
{{- $daemonset := "uamlite" }}
|
||||||
{{- $configMapName := "divingbell-uamlite" }}
|
{{- $configMapName := "divingbell-uamlite" }}
|
||||||
{{- $daemonset_yaml := list $daemonset $configMapName . | include "divingbell.daemonset.uamlite" | toString | fromYaml }}
|
{{- $daemonset_yaml := list $daemonset $configMapName . | include "divingbell.daemonset.uamlite" | toString | fromYaml }}
|
||||||
{{- $configmap_include := "divingbell.configmap.uamlite" }}
|
{{- $configmap_include := "divingbell.configmap.uamlite" }}
|
||||||
{{- list $daemonset $daemonset_yaml $configmap_include $configMapName . | include "helm-toolkit.utils.daemonset_overrides" }}
|
{{- list $daemonset $daemonset_yaml $configmap_include $configMapName . | include "helm-toolkit.utils.daemonset_overrides" }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -76,3 +76,9 @@ pod:
|
||||||
requests:
|
requests:
|
||||||
memory: "128Mi"
|
memory: "128Mi"
|
||||||
cpu: "100m"
|
cpu: "100m"
|
||||||
|
|
||||||
|
manifests:
|
||||||
|
daemonset_ethtool: true
|
||||||
|
daemonset_mounts: true
|
||||||
|
daemonset_uamlite: true
|
||||||
|
daemonset_sysctl: true
|
||||||
|
|
Loading…
Reference in New Issue