Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1517 from mesosphere/sa-token-wait
Browse files Browse the repository at this point in the history
fix: Wait for SA token to be populated
  • Loading branch information
k8s-ci-robot authored Aug 8, 2022
2 parents 7946858 + bf3bdf6 commit 3b77f67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/kubefedctl/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,10 @@ func populateSecretInHostCluster(clusterClientset, hostClientset kubeclient.Inte
return false, nil
}

if _, ok := joiningClusterSASecret.Data[ctlutil.TokenKey]; !ok {
return false, nil
}

secret = joiningClusterSASecret

return true, nil
Expand Down

0 comments on commit 3b77f67

Please sign in to comment.