11suite : Host volumes are available for agent
22templates :
3- - templates/daemonset.yaml
3+ - daemonset.yaml
4+ - deployment.yaml
45tests :
56 - it : Ensure /var/run host volume is mounted as /host/var/run in container
67 asserts :
1011 - equal :
1112 path : spec.template.spec.volumes[?(@.name == "varrun-vol")].hostPath.path
1213 value : /var/run
14+ templates :
15+ - daemonset.yaml
16+
1317 - it : Ensure /var/lib host volume is mounted as /host/var/lib in container
1418 asserts :
1519 - equal :
1822 - equal :
1923 path : spec.template.spec.volumes[?(@.name == "varlib-vol")].hostPath.path
2024 value : /var/lib
25+ templates :
26+ - daemonset.yaml
27+
2128 - it : Ensure /var/lib host volume is not mounted as /host/var/lib in container when running on gke.autopilot
2229 set :
2330 gke :
2734 path : spec.template.spec.containers[*].volumeMounts[?(@.name == "varlib-vol")]
2835 - isNull :
2936 path : spec.template.spec.volumes[?(@.name == "varlib-vol")]
37+ templates :
38+ - daemonset.yaml
39+
3040 - it : Ensure /var/lib host volume is not mounted as /host/var/lib in container when running on global.gke.autopilot
3141 set :
3242 global :
@@ -37,3 +47,63 @@ tests:
3747 path : spec.template.spec.containers[*].volumeMounts[?(@.name == "varlib-vol")]
3848 - isNull :
3949 path : spec.template.spec.volumes[?(@.name == "varlib-vol")]
50+ templates :
51+ - daemonset.yaml
52+
53+ - it : Ensure agent http proxy volume is not mounted when http_proxy settings is not set
54+ set :
55+ sysdig :
56+ accessKey : AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE
57+ delegatedAgentDeployment :
58+ enabled : true
59+ asserts :
60+ - isNull :
61+ path : spec.template.spec.volumes[?(@.name == "sysdig-agent-http-proxy-secrets")]
62+ - isNull :
63+ path : spec.template.spec.containers[*].volumeMounts[?(@.name == "sysdig-agent-http-proxy-secrets")]
64+ templates :
65+ - deployment.yaml
66+ - daemonset.yaml
67+
68+ - it : Ensure agent http proxy volume is not mounted when http_proxy settings is set and autopilot is enabled
69+ set :
70+ sysdig :
71+ accessKey : AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE
72+ settings :
73+ http_proxy :
74+ proxy_user : username
75+ proxy_password : password
76+ delegatedAgentDeployment :
77+ enabled : true
78+ gke :
79+ autopilot : true
80+ asserts :
81+ - isNull :
82+ path : spec.template.spec.volumes[?(@.name == "sysdig-agent-http-proxy-secrets")]
83+ - isNull :
84+ path : spec.template.spec.containers[*].volumeMounts[?(@.name == "sysdig-agent-http-proxy-secrets")]
85+ templates :
86+ - deployment.yaml
87+ - daemonset.yaml
88+
89+ - it : Ensure agent http proxy volume is mounted when http_proxy settings is set
90+ set :
91+ delegatedAgentDeployment :
92+ enabled : true
93+ sysdig :
94+ accessKey : AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE
95+ settings :
96+ http_proxy :
97+ proxy_user : username
98+ proxy_password : password
99+ asserts :
100+ - equal :
101+ path : spec.template.spec.volumes[?(@.name == "sysdig-agent-http-proxy-secrets")].secret
102+ value :
103+ secretName : RELEASE-NAME-agent-proxy
104+ - equal :
105+ path : spec.template.spec.containers[*].volumeMounts[?(@.name == "sysdig-agent-http-proxy-secrets")].mountPath
106+ value : /opt/draios/etc/secrets/http_proxy
107+ templates :
108+ - deployment.yaml
109+ - daemonset.yaml
0 commit comments