From 26904c0b573f9190ec6715ecc44ca7da846724ac Mon Sep 17 00:00:00 2001 From: az Date: Mon, 22 May 2023 09:45:25 +0200 Subject: [PATCH] [skip ci] mark optional of apt update during installKubectl as it might show false positive error when other packages are not able to update --- .../provs/desktop/infrastructure/DevOps.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(