Merge pull request #33 from moio/fix_waiting_downstream

Bugfix: wait for webhook to be ready downstream as well
This commit is contained in:
Iramis Valentin 2025-01-07 15:20:41 -05:00 committed by GitHub
commit 3b34f54993
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -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)