banzaicloud / pke

PKE is an extremely simple CNCF certified Kubernetes installer and distribution, designed to work on any cloud, VM or bare metal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace API server check based on ComponentStatus

sagikazarmark opened this issue · comments

The ComponentStatus resource is deprecated as of Kubernetes 1.19: kubernetes/kubernetes#93570

We use it to check if the API server is available: https://github.com/banzaicloud/pke/blob/master/cmd/pke/app/phases/kubeadm/controlplane/controlplane.go#L1018