Skip to content

Commit

Permalink
Merge pull request #33 from moio/fix_waiting_downstream
Browse files Browse the repository at this point in the history
Bugfix: wait for webhook to be ready downstream as well
  • Loading branch information
git-ival authored Jan 7, 2025
2 parents 73d05ee + a502ab4 commit 3b34f54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/dartboard/subcommands/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,12 @@ func importDownstreamClusterDo(r *dart.Dart, rancherImageTag string, tf *tofu.To
errCh <- fmt.Errorf("%s import failed: %w", clusterName, err)
return
}

err = kubectl.WaitForReadyCondition(downstream.Kubeconfig, "deployment", "rancher-webhook", "cattle-system", "available", 60)
if err != nil {
errCh <- fmt.Errorf("%s waiting for rancher-webhook failed: %w", clusterName, err)
return
}
if r.ChartVariables.DownstreamRancherMonitoring {
if err := chartInstallRancherMonitoring(r, &downstream); err != nil {
errCh <- fmt.Errorf("downstream monitoring installation on cluster %s failed: %w", clusterName, err)
Expand Down

0 comments on commit 3b34f54

Please sign in to comment.