Force DIND and SYSTEMD capabilities if the Kube is requested
@@ -906,6 +906,12 @@ eval "$_CP_ENV_UMASK"
# Current jobs hostname and IPs shall be added to the no_proxy, otherwise any http request to "self" will fail
add_self_to_no_proxy
+# We need to make sure that the DIND and SYSTEMD are available if the Kuberners is requested
+if check_cp_cap "CP_CAP_KUBE"; then
+ export CP_CAP_DIND_CONTAINER="true"
+ export CP_CAP_SYSTEMD_CONTAINER="true"
+fi
+
echo "------"
echo
######################################################
