[skip ci] mark optional of apt update during installKubectl as it might show false positive error when other packages are not able to update

This commit is contained in:
az 2023-05-22 09:45:25 +02:00
parent 8323b84bbe
commit 26904c0b57

View file

@ -61,7 +61,9 @@ fun Prov.installKubectl(): ProvResult = task {
val tmpDir = "~/tmp"
// prerequisites -- see https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
cmd("sudo apt-get update")
optional {
cmd("sudo apt-get update")
}
aptInstall("apt-transport-https ca-certificates curl")
createDir(tmpDir)
downloadFromURL(