You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Have used the API for a while to read and process resources prior to deployment
I have a use case where I read a yaml list from an inputstream into a list, manipulate each element and update them on the server.
The client is an adapted OpenshiftClient, and have worked flawlessly up until now, where we include CRD objects for a prometheus operator (using monitoring.coreos.com/v1).
I have tried creating a typed DSL and register it with the json deserializer
So I can work with CRDs as an entity, but I cannot load it as part of a YAML list.
Whenever I try the original generic HasMetadata approach the NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicatbleListImpl class tries to locate a Handler to the deserialized ServiceMonitor Kind, but fails to find one (return null and then throws a NullPointerException, which is probably a flaw in itself).
And this is even though I have registered the customResource..
Looking into the current extensions (openshift, knative, service-catalog, etc) I can see there is (velocity) code to produce objects to back up the resource handling.
How Can I Do Something Similar with CRDs?
The text was updated successfully, but these errors were encountered:
Hi,
Have used the API for a while to read and process resources prior to deployment
I have a use case where I read a yaml list from an inputstream into a list, manipulate each element and update them on the server.
The code looks roughly like this
The client is an adapted OpenshiftClient, and have worked flawlessly up until now, where we include CRD objects for a prometheus operator (using monitoring.coreos.com/v1).
I have tried creating a typed DSL and register it with the json deserializer
And if I extract a MixedOperation wrapper client, I can read a service monitor resource from a single file and apply it in the target cluster.
So I can work with CRDs as an entity, but I cannot load it as part of a YAML list.
Whenever I try the original generic HasMetadata approach the NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicatbleListImpl class tries to locate a Handler to the deserialized ServiceMonitor Kind, but fails to find one (return null and then throws a NullPointerException, which is probably a flaw in itself).
And this is even though I have registered the customResource..
Looking into the current extensions (openshift, knative, service-catalog, etc) I can see there is (velocity) code to produce objects to back up the resource handling.
How Can I Do Something Similar with CRDs?
The text was updated successfully, but these errors were encountered: