From 2c1092843dc3b4f3d51293406e36cd0e6dc161cb Mon Sep 17 00:00:00 2001 From: 6za <53096417+6za@users.noreply.github.com> Date: Mon, 25 Jul 2022 16:20:46 +0000 Subject: [PATCH] tweak loop Signed-off-by: 6za <53096417+6za@users.noreply.github.com> --- cmd/create.go | 4 ++-- internal/k8s/kubernetes.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/create.go b/cmd/create.go index 6117f7bc6..2354b75f1 100644 --- a/cmd/create.go +++ b/cmd/create.go @@ -385,8 +385,8 @@ to quickly create a Cobra application.`, //!-- // Wait argocd cert to work, or force restart argocdPodClient := clientset.CoreV1().Pods("argocd") - for i := 1; i < 10; i++ { - argoCDHostReady := gitlab.AwaitHostNTimes("argocd", dryRun, 10) + for i := 1; i < 15; i++ { + argoCDHostReady := gitlab.AwaitHostNTimes("argocd", dryRun, 20) if argoCDHostReady { informUser("ArgoCD DNS is ready") break diff --git a/internal/k8s/kubernetes.go b/internal/k8s/kubernetes.go index 83bce6873..e525571b5 100644 --- a/internal/k8s/kubernetes.go +++ b/internal/k8s/kubernetes.go @@ -55,7 +55,7 @@ func DeletePodByLabel(podsClient coreV1Types.PodInterface, label string) { if err != nil { log.Println(err) } else { - log.Println("Success delete of pods with label(%s).",label) + log.Printf("Success delete of pods with label(%s).",label) } }