-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine "antctl mc deploy" command (#5080)
There is a bug that when user deploys Antrea Multi-cluster via `antctl mc` on EKS clusters, user can't create ClusterSet and ClusterClaims with an error like below: ``` Internal error occurred: failed calling webhook "vclusterclaim.kb.io": failed to call webhook: ... x509: certificate signed by unknown authority ``` It is caused by a slow deployment when using `antctl mc deploy`, that antrea-mc-controller is running but the validation webhook configuration is not created yet, and the `cabundle` in the webhook configuration won't be updated. It turns out `GetAPIGroupResources` is a time-consuming step and it is also unnecessary to be called every time in a loop, so this commit moves it out to the caller with a few other refinements to fix the issue. Signed-off-by: Lan Luo <[email protected]>
- Loading branch information
1 parent
1ca159f
commit c920779
Showing
2 changed files
with
28 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters