mirror of https://github.com/rancher/dartboard.git
Merge pull request #33 from moio/fix_waiting_downstream
Bugfix: wait for webhook to be ready downstream as well
This commit is contained in:
commit
3b34f54993
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue