-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
kubeadmControlPlane controller crashed if infrastructure template is not found #2751
Comments
I think we need to add a few extra logic in cluster-api/controlplane/kubeadm/controllers/kubeadm_control_plane_controller.go Line 306 in 91215b8
to check if the controller exits due to apierror generated here cluster-api/controlplane/kubeadm/controllers/kubeadm_control_plane_controller.go Line 205 in 91215b8
|
@sedefsavas do you want to take a look a this one? |
I have also observed kubeadmControlPlane crashing
I think this comes from the assignment in cluster-api/controlplane/kubeadm/internal/cluster.go Lines 72 to 75 in 35f28e9
|
The latter should be fixed in v0.3.3. Although it seems the original PR has been closed #2732 (comment), so we need a fix for that as well |
@MartinForReal can you paste the crash log / panic that you were seeing? |
Sure
|
fixed in #2757 |
What steps did you take and what happened:
the controller crashed when infrastructure template object is not found
What did you expect to happen:
controller should not crash when infrastructure template object is not found
Anything else you would like to add:
logic in updateStatus should be changed if infrastructure template object is not found
cluster-api/controlplane/kubeadm/controllers/kubeadm_control_plane_controller.go
Line 302 in 91215b8
Environment:
kubectl version
): 1.17.4/etc/os-release
): coreos/kind bug
The text was updated successfully, but these errors were encountered: