This PR adds the feature to cluster-registry to work with Kubernetes 1.24 >= and OpenShift 4.11.
Why?
service-account-token Secret handling has changed in Kubernetes 1.24 and above and works differently in OpenShift 4.11. cluster-registry can't create the cluster secret without this change.
Additional context
Kubernetes 1.24 and above and OpenShift 4.11 handles service-account-token secrets differently than the previous versions. This change makes cluster-registry to able to work with these distributions and versions.
Checklist
[x] Implementation tested
[x] User guide and development docs updated (if needed)
What's in this PR?
This PR adds the feature to cluster-registry to work with Kubernetes 1.24 >= and OpenShift 4.11.
Why?
service-account-token Secret handling has changed in Kubernetes 1.24 and above and works differently in OpenShift 4.11. cluster-registry can't create the cluster secret without this change.
Additional context
Kubernetes 1.24 and above and OpenShift 4.11 handles service-account-token secrets differently than the previous versions. This change makes cluster-registry to able to work with these distributions and versions.
Checklist