Open bo0ts opened 1 month ago
Looking at https://github.com/zalando/postgres-operator/blob/master/pkg/cluster/k8sres.go#L2524 I understand why the error is happening: the operator tries to "forward" the ownerReference set on the CR, but I don't understand why it is doing that at all. The comment for the function also talks about the dependency on the CRD or StatefulSEt, but I assume it means the CR?
Please, answer some short questions which should help us to understand your problem / question better?
I've tried creating a postgresql resource with an ownerReference set to another resource. This resulted in a failure to create the postgres instance with the following error message:
When I don't set an ownerReference on the postgresql resource the cluster creates without issue. Looking at a successfully created cluster I cannot see any ownerReferences set on the
svc/my-postgres
. The new owner references feature is not enabled in our environment.