banzaicloud / istio-operator

An operator that manages Istio deployments on Kubernetes
Apache License 2.0
535 stars 94 forks source link

Updated cluster_secret.go to support k8s 1.24 #869

Closed Kuvesz closed 2 years ago

Kuvesz commented 2 years ago
Q A
Bug fix? yes
New feature? no
API breaks? no
Deprecations? no
License Apache 2.0

What's in this PR?

So when using cluster-registry I encountered an error where the IstioControlPlane had a message saying "could not find secret reference for sa" which is an error I encountered before and happens on K8S 1.24.

Why?

The reason why this happens is detailed here, the fix I did was taken straight from the cluster-registry controller repo here

Checklist

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.