Is checking kube-system namespace a proper way to check that the recovery API server is ready?

Solution Verified - Updated -

Issue

In Recovering from expired control plane certificates, in step 6, there is a loop to wait for the recovery API server to come up.

# until oc get namespace kube-system 2>/dev/null 1>&2; do echo 'Waiting for recovery apiserver to come up.'; sleep 1; done

This step looks redundant, because kube-system was present in OCP cluster.
Why there is no recommendation to check recovery-apiserver directly, using crictl for example?

Environment

OCP 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content