nicolaferraro commented on a change in pull request #2535:
URL: https://github.com/apache/camel-k/pull/2535#discussion_r678969867
##########
File path: pkg/trait/owner.go
##########
@@ -78,17 +78,20 @@ func (t *ownerTrait) Apply(e *Environment) error {
}
e.Resources.VisitMetaObject(func(res metav1.Object) {
- references := []metav1.OwnerReference{
- {
- APIVersion: e.Integration.APIVersion,
- Kind: e.Integration.Kind,
- Name: e.Integration.Name,
- UID: e.Integration.UID,
- Controller: &controller,
- BlockOwnerDeletion: &blockOwnerDeletion,
- },
+ // Avoid setting owner references across namespaces (resources
are asynchronously refused by the api server)
Review comment:
Yes, I put that description because the problem is a bit more subtle
than that. I don't know if it's a consequence of the server-side apply, but if
you use an invalid owner, you don't get absolutely any error in the operator.
The error comes later and it is only visible in the Kubernetes cluster events.
If you don't watch them, you just don't find the resource that the operator
thinks he has created...
Is this expected @astefanutti ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]