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

Reload bootstrap kubeconfig if cert mgr failed to load valid certs #1228

Merged

Conversation

s1061123
Copy link
Member

When user recreate whole cluster certs, multus thick plugin's previous cert is no longer valid. In such case, we need to prevent to use cert manager's old certs and restart it from bootstrap kubeconfig. This fix reloads client config from bootstrap kubeconfig if cert mgr's cert is failed to load pod.

@coveralls
Copy link

Coverage Status

coverage: 63.18% (-0.5%) from 63.67%
when pulling abe6e05 on s1061123:fix/reload-kubeconfig-if-failed
into 8e5060b on k8snetworkplumbingwg:master.

@s1061123 s1061123 force-pushed the fix/reload-kubeconfig-if-failed branch from abe6e05 to 7c70c71 Compare February 13, 2024 15:35
pkg/k8sclient/kubeconfig.go Outdated Show resolved Hide resolved
When user recreate whole cluster certs, multus thick plugin's
previous cert is no longer valid. In such case, we need to prevent
to use cert manager's old certs and restart it from bootstrap
kubeconfig. This fix reloads client config from bootstrap
kubeconfig if cert mgr's cert is failed to load pod.
@s1061123 s1061123 force-pushed the fix/reload-kubeconfig-if-failed branch from 7c70c71 to a337317 Compare February 13, 2024 15:46
Copy link
Member

@dougbtv dougbtv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice Tomo, thanks!

@dougbtv dougbtv merged commit c550826 into k8snetworkplumbingwg:master Feb 13, 2024
22 of 23 checks passed
@s1061123 s1061123 deleted the fix/reload-kubeconfig-if-failed branch February 13, 2024 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants