scylladb / scylla-operator

The Kubernetes Operator for ScyllaDB
https://operator.docs.scylladb.com/
Apache License 2.0
337 stars 175 forks source link

Remove forced ownership #672

Open tnozicka opened 3 years ago

tnozicka commented 3 years ago

v1.3 and previous versions didn't set selectors correctly for some cases. Given the Three laws of controllers v1.4 (that respects them) had to release those objects. That got us to a state where we couldn't update them because we don't own them and we can't adopt them because they don't match our selector.

We should set forceOwnership parameter back to false in v1.5.

Choraden commented 2 years ago

There are 4 places where operator forces ownership

controller/scyllacluster/:

Unfortunately the scyllacluster_sa e2e test needs the first 2 to force ownership. e.g. syncing key 'e2e-test-scyllacluster-tzr76-5nppk/basic-7554m' failed: can't sync serviceaccounts: can't apply service account: serviceAccount "e2e-test-scyllacluster-tzr76-5nppk/basic-7554m-member" isn't controlled by us

"Event occurred" object="e2e-test-scyllacluster-8f75c-2bpdc/basic-89lj9-member" fieldPath="" kind="RoleBinding" apiVersion="rbac.authorization.k8s.io/v1" type="Warning" reason="UpdateRoleBindingFailed" message="Failed to update RoleBinding e2e-test-scyllacluster-8f75c-2bpdc/basic-89lj9-member: roleBinding \"e2e-test-scyllacluster-8f75c-2bpdc/basic-89lj9-member\" isn't controlled by us"

So it looks like for now we can disable forcing ownership only in pdb and secrets.

scylla-operator-bot[bot] commented 4 months ago

The Scylla Operator project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

/lifecycle stale

tnozicka commented 4 months ago

/remove-lifecycle stale /triage accepted