cisco-open / cluster-registry-controller

An operator that automatically synchronizes Kubernetes resources across multiple clusters
Apache License 2.0
22 stars 8 forks source link

Feat/add token to reader sa #48

Closed tkircsi closed 1 year ago

tkircsi commented 1 year ago
Q A
Bug fix? no
New feature? yes
API breaks? no
Deprecations? no
License Apache 2.0

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

tkircsi commented 1 year ago

@tiswanso You'r right. It's more suitable in a separate PR with other version bumps. I restored the previous version.