Browse Source

Allow enabling/disabling of each daemonset

Change-Id: I5520c0a86fd53160fd9c8a071f9ee1547dce41f4
changes/01/598301/1
Craig Anderson 10 months ago
parent
commit
7755b665b1

+ 2
- 0
divingbell/templates/daemonset-ethtool.yaml View File

@@ -60,8 +60,10 @@ spec:
60 60
           defaultMode: 0555
61 61
   {{- end }}
62 62
 {{- end }}
63
+{{- if .Values.manifests.daemonset_ethtool }}
63 64
 {{- $daemonset := "ethtool" }}
64 65
 {{- $configMapName := "divingbell-ethtool" }}
65 66
 {{- $daemonset_yaml := list $daemonset $configMapName . | include "divingbell.daemonset.ethtool" | toString | fromYaml }}
66 67
 {{- $configmap_include := "divingbell.configmap.ethtool" }}
67 68
 {{- list $daemonset $daemonset_yaml $configmap_include $configMapName . | include "helm-toolkit.utils.daemonset_overrides" }}
69
+{{- end }}

+ 2
- 0
divingbell/templates/daemonset-mounts.yaml View File

@@ -60,8 +60,10 @@ spec:
60 60
           defaultMode: 0555
61 61
   {{- end }}
62 62
 {{- end }}
63
+{{- if .Values.manifests.daemonset_mounts }}
63 64
 {{- $daemonset := "mounts" }}
64 65
 {{- $configMapName := "divingbell-mounts" }}
65 66
 {{- $daemonset_yaml := list $daemonset $configMapName . | include "divingbell.daemonset.mounts" | toString | fromYaml }}
66 67
 {{- $configmap_include := "divingbell.configmap.mounts" }}
67 68
 {{- list $daemonset $daemonset_yaml $configmap_include $configMapName . | include "helm-toolkit.utils.daemonset_overrides" }}
69
+{{- end }}

+ 2
- 0
divingbell/templates/daemonset-sysctl.yaml View File

@@ -60,8 +60,10 @@ spec:
60 60
           defaultMode: 0555
61 61
   {{- end }}
62 62
 {{- end }}
63
+{{- if .Values.manifests.daemonset_sysctl }}
63 64
 {{- $daemonset := "sysctl" }}
64 65
 {{- $configMapName := "divingbell-sysctl" }}
65 66
 {{- $daemonset_yaml := list $daemonset $configMapName . | include "divingbell.daemonset.sysctl" | toString | fromYaml }}
66 67
 {{- $configmap_include := "divingbell.configmap.sysctl" }}
67 68
 {{- list $daemonset $daemonset_yaml $configmap_include $configMapName . | include "helm-toolkit.utils.daemonset_overrides" }}
69
+{{- end }}

+ 2
- 0
divingbell/templates/daemonset-uamlite.yaml View File

@@ -60,8 +60,10 @@ spec:
60 60
           defaultMode: 0555
61 61
   {{- end }}
62 62
 {{- end }}
63
+{{- if .Values.manifests.daemonset_uamlite }}
63 64
 {{- $daemonset := "uamlite" }}
64 65
 {{- $configMapName := "divingbell-uamlite" }}
65 66
 {{- $daemonset_yaml := list $daemonset $configMapName . | include "divingbell.daemonset.uamlite" | toString | fromYaml }}
66 67
 {{- $configmap_include := "divingbell.configmap.uamlite" }}
67 68
 {{- list $daemonset $daemonset_yaml $configmap_include $configMapName . | include "helm-toolkit.utils.daemonset_overrides" }}
69
+{{- end }}

+ 6
- 0
divingbell/values.yaml View File

@@ -76,3 +76,9 @@ pod:
76 76
       requests:
77 77
         memory: "128Mi"
78 78
         cpu: "100m"
79
+
80
+manifests:
81
+  daemonset_ethtool: true
82
+  daemonset_mounts: true
83
+  daemonset_uamlite: true
84
+  daemonset_sysctl: true

Loading…
Cancel
Save