Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refine "antctl mc deploy" command #5080

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

luolanzone
Copy link
Contributor

@luolanzone luolanzone commented Jun 5, 2023

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's 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.

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's caused by a slow deployment when using `antctl mc deploy`,
antrea-mc-controller is running but validation webhook configuration is
not created yet, the `cabundle` in the webhook configuration won't be updated.
It turns out `GetAPIGroupResources` is a time-consuming step and it's
also unnecessary to be called every time in a loop, so move it out to the
caller with a few other refinements to fix the bug.

Signed-off-by: Lan Luo <luola@vmware.com>
@luolanzone
Copy link
Contributor Author

/test-multicluster-e2e

@luolanzone luolanzone added the area/multi-cluster Issues or PRs related to multi cluster. label Jun 5, 2023
@luolanzone luolanzone added action/backport Indicates a PR that requires backports. and removed action/backport Indicates a PR that requires backports. labels Jun 6, 2023
@jianjuns jianjuns changed the title Refine antctl mc deploy command Refine "antctl mc deploy" command Jun 7, 2023
@luolanzone
Copy link
Contributor Author

@jianjuns could you help to move forward? Thanks.

@jianjuns
Copy link
Contributor

/skip-all

@jianjuns jianjuns merged commit c920779 into antrea-io:main Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/backport Indicates a PR that requires backports. area/multi-cluster Issues or PRs related to multi cluster.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants