Skip to content

fix: make findOwners handle custom types better #15

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

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

DWSR
Copy link
Contributor

@DWSR DWSR commented Jun 15, 2022

This change stops the controller from bubbling up an error when it
encounters a Kind that is has not registered in its scheme or an object
that it does not have access to. In these situations, the controller
will now stop climbing the ownership tree instead.

The new behaviour is desireable when an unsupported type (such as one
from a company's in-house operator) is marked as the controller of the
resource that controls the pods themselves.

This change stops the controller from bubbling up an error when it
encounters a Kind that is has not registered in its scheme or an object
that it does not have access to. In these situations, the controller
will now stop climbing the ownership tree instead.

The new behaviour is desireable when an unsupported type (such as one
from a company's in-house operator) is marked as the controller of the
resource that controls the pods themselves.
@coderanger
Copy link
Owner

Hah, "note for the future" indeed :) Thanks!

@coderanger coderanger merged commit fa9b243 into coderanger:main Jun 15, 2022
@DWSR DWSR deleted the handle-custom-controller-kinds branch June 15, 2022 06:59
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