Skip to content

Commit

Permalink
chore: retry on deploy fail
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianKramm committed Apr 8, 2024
1 parent d2ca0d0 commit 8aa9727
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/controllers/deploy/start.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package deploy

import (
"time"

"github.com/loft-sh/log"
"github.com/loft-sh/vcluster/cmd/vclusterctl/cmd"
"github.com/loft-sh/vcluster/pkg/config"
Expand Down Expand Up @@ -37,8 +39,8 @@ func RegisterInitManifestsController(controllerCtx *config.ControllerContext) er
for {
result, err := controller.Apply(controllerCtx.Context, controllerCtx.Config)
if err != nil {
klog.Errorf("Error reconciling init_configmap: %v", err)
break
klog.Errorf("Error deploying manifests: %v", err)
time.Sleep(time.Second * 10)
} else if !result.Requeue {
break
}
Expand Down

0 comments on commit 8aa9727

Please sign in to comment.