Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(controller): ensure iteration on capsule ownerreferences #1059

Merged
merged 1 commit into from
May 2, 2024

Conversation

oliverbaehler
Copy link
Collaborator

While automating capsule for a HCI solution i noticed we have this bug. If you try to add another ownerreference you are always met with this error:

error: namespaces "cluster-fx9kggjwjd" could not be patched: admission webhook "namespaces.capsule.clastix.io" denied the request: Tenant.capsule.clastix.io "fx9kggjwjd" not found

fx9kggjwjd is representative for the new ownerreference name added. This fix checks if the ownerreference is actually from a tenant, if not it's skipped.

@oliverbaehler oliverbaehler changed the title Fix/multi owners fix(controller): ensure iteration on capsule ownerreferences Apr 30, 2024
Copy link

netlify bot commented Apr 30, 2024

Deploy Preview for capsule-documentation canceled.

Name Link
🔨 Latest commit cde6e15
🔍 Latest deploy log https://app.netlify.com/sites/capsule-documentation/deploys/663203a072975c000838e172

@oliverbaehler oliverbaehler added this to the v0.7.0 milestone Apr 30, 2024
@oliverbaehler oliverbaehler force-pushed the fix/multi-owners branch 2 times, most recently from e8dfa83 to b23ba8a Compare April 30, 2024 23:52
Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
@oliverbaehler oliverbaehler requested a review from prometherion May 1, 2024 09:51
@oliverbaehler oliverbaehler merged commit e418f74 into projectcapsule:main May 2, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants