Kubeconfig client certs not automatically renewed #520
Labels
kind/bug
Something isn't working
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Milestone
What happened:
The client cert in the generated kubeconfig secret expires after one year. However, the rke2 provider does not regenerate the kubeconfig with a new cert, breaking any tools that depend on reading the clustername-kubeconfig secret to get cluster credentials.
What did you expect to happen:
The kubeconfig secret is renewed a reasonable time before expiration. The cluster-api kubeadm control plane does this here
How to reproduce it:
Create a cluster. Wait one year. Check kubeconfig cert expiration
Anything else you would like to add:
Weirdly the code has a comment "only do rotation on owned secrets", checks that it owns the kubeconfig secret, and then just doesn't rotate it.
Environment:
/etc/os-release
): ubuntu 22.04 LTSThe text was updated successfully, but these errors were encountered: