Skip to content

Commit

Permalink
Merge pull request #130 from igomez06/fix-404-server-url-post-install
Browse files Browse the repository at this point in the history
Fix flaky post install step
  • Loading branch information
Israel Gomez authored Mar 26, 2024
2 parents f434241 + 51489da commit 4880a0d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions extensions/pipeline/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/rancher/shepherd/clients/rancher"
management "github.com/rancher/shepherd/clients/rancher/generated/management/v3"
v1 "github.com/rancher/shepherd/clients/rancher/v1"
"github.com/rancher/shepherd/extensions/kubeapi/cluster"
"github.com/rancher/shepherd/extensions/token"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
kwait "k8s.io/apimachinery/pkg/util/wait"
Expand Down Expand Up @@ -97,6 +98,14 @@ func UpdateEULA(adminClient *rancher.Client) error {
serverURL = err
return false, nil
}

boolTemp, err := cluster.IsClusterActive(adminClient, clusterName)
if err != nil {
serverURL = err
return false, nil
} else if !boolTemp {
return false, nil
}
return true, nil
})
if err != nil {
Expand Down

0 comments on commit 4880a0d

Please sign in to comment.