This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
Kabanero controller can't create object, owner version and kind are empty #234
Labels
bug
Something isn't working
The following snip from kabanero-operator log:
I think what is going on here, is we're trying to update an object (in this case the Appsody service account) with an owner. The owner happens to be us (the Kabanero CR instance) that we got from the Kabanero controller. The meta fields are not filled in. There are other bug reports that mention things like this happening:
kubernetes-sigs/controller-runtime#202
but I would have thought that this was fixed by now. In any case, we've discovered this in other places in the code, and have fixed it by re-obtaining the object. However it's not clear whether we obtained the object using the controller-runtime client, or with a new client (our first attempt at scheme registration used a separate client). In any case, we need to be sure that the owner information is complete before attempting to set the owner reference when we call manifestival to apply yamls (
kabanero-operator/pkg/controller/kabaneroplatform/appsody.go
Line 57 in 75794d2
The text was updated successfully, but these errors were encountered: