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

Default owner reference blockOwnerDeletion to true #5838

Open
shawkins opened this issue Mar 26, 2024 · 5 comments
Open

Default owner reference blockOwnerDeletion to true #5838

shawkins opened this issue Mar 26, 2024 · 5 comments
Milestone

Comments

@shawkins
Copy link
Contributor

Is your enhancement related to a problem? Please describe

Relates to operator-framework/java-operator-sdk#2318 - the fabric8 logic is currently defaulting to null. the operator sdk is ok if the default behavior changes in fabric8. They don't expect that behavior will need to be configurable.

Describe the solution you'd like

For the fabric8 ownerReference creation method to default blockOwnerDeletion to true - that matches the default expected behavior of kubernetes.

Describe alternatives you've considered

No response

Additional context

No response

@shawkins shawkins changed the title Defautl ownerreference blockOwnerDeletion to true Default owner reference blockOwnerDeletion to true Mar 26, 2024
@rohanKanojia
Copy link
Member

@shawkins : Is this issue related to Kubernetes Model? Or do we want to accommodate null value for blockOwnerDeletion while handing it in KubernetesClient?

@csviri
Copy link
Contributor

csviri commented Apr 2, 2024

If some will need this to be configurable, we can just override it on our side. But having this defaulted to true is probably the expected way to go IMO.

@shawkins
Copy link
Contributor Author

shawkins commented Apr 2, 2024

Is this issue related to Kubernetes Model? Or do we want to accommodate null value for blockOwnerDeletion while handing it in KubernetesClient?

@rohanKanojia This is referring to the HasMetadata.addOwnerReference helper method, it's defaulting to null but true would be a better choice.

@manusa
Copy link
Member

manusa commented Apr 25, 2024

Would this be a breaking change? i.e. can we add this in 6.13, seems like low hanging fruit.

@shawkins
Copy link
Contributor Author

Strictly speaking yes, but practially speaking no - it's what users should want by default.

@manusa manusa added this to the 7.0.0 milestone May 2, 2024
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

No branches or pull requests

4 participants