A user noticed that the OLM operator was trying and failing to create a rolebinding in the kube-system namespace because it tries to add an owner reference to the kedacontroller object from a different namespace.
$ kubectl get events -n kube-system|grep -i keda
4m51s Warning OwnerRefInvalidNamespace rolebinding/keda-auth-reader ownerRef [keda.sh/v1alpha1/KedaController, namespace: kube-system, name: keda, uid: 1e9a6cd3-17e8-4dec-832f-64ab6db759fe] does not exist in namespace "kube-system"
This change makes it so that the OLM operator will only set the owner reference on objects in the same namespace as the kedacontroller object.
Checklist
[X] Commits are signed with Developer Certificate of Origin (DCO)
A user noticed that the OLM operator was trying and failing to create a rolebinding in the
kube-system
namespace because it tries to add an owner reference to the kedacontroller object from a different namespace.This change makes it so that the OLM operator will only set the owner reference on objects in the same namespace as the kedacontroller object.
Checklist