Unhardcode kubernetes version for k0s

Allow to pass K0S_VERSION

Related-Prod: PRODX-46480
Change-Id: Icc05e4055e4a972e328bb42b332d71de04866180
diff --git a/de/heat-templates/scripts/functions.sh b/de/heat-templates/scripts/functions.sh
index 1283894..132d975 100644
--- a/de/heat-templates/scripts/functions.sh
+++ b/de/heat-templates/scripts/functions.sh
@@ -355,7 +355,8 @@
 }
 
 function download_k0s {
-    curl -sSLf https://get.k0s.sh | sudo sh
+    curl -sSLf https://get.k0s.sh -o /tmp/get.k0s.sh
+    sh /tmp/get.k0s.sh
 }
 
 function install_k0s {
diff --git a/de/heat-templates/scripts/launch.sh b/de/heat-templates/scripts/launch.sh
index 53148b3..5a89193 100644
--- a/de/heat-templates/scripts/launch.sh
+++ b/de/heat-templates/scripts/launch.sh
@@ -56,7 +56,7 @@
 KUBERNETES_CONTAINER_RUNTIME=${KUBERNETES_CONTAINER_RUNTIME:-$kubernetes_container_runtime}
 
 DEVOPS_UTILS_REFSPEC=${DEVOPS_UTILS_REFSPEC:-$devops_utils_refspec}
-
+K0S_VERSION=${K0S_VERSION:-$k0s_version}
 #
 # End of block
 #