diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/DevOps.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/DevOps.kt index ab95196..a75a6d9 100644 --- a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/DevOps.kt +++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/DevOps.kt @@ -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(