https://pulumi.com logo
Title
p

proud-pizza-80589

11/23/2022, 6:35 AM
Is there a way to manage custom kubernetes objects, I’m trying to create a Route on OpenShift.
p

proud-pizza-80589

11/23/2022, 6:38 AM
Is that the only option? I thought it used to be possible to send a raw manifest but can’t seem to find it in the docs anymore
a

acoustic-hamburger-30479

11/23/2022, 6:39 AM
p

proud-pizza-80589

11/23/2022, 6:40 AM
ah, gReat!
CDR will be nicer, too bad their CRD definition does not define anything for the spec bit https://github.com/openshift/router/blob/master/deploy/route_crd.yaml
a

acoustic-hamburger-30479

11/23/2022, 7:11 AM
spec is pretty much an anonymous object that you can pass in any form. There is no compile time validation unfortunately, but I am sure you can define it externally and be good with it
p

proud-pizza-80589

11/23/2022, 7:11 AM
yeah, making my own type in the generated code
a

acoustic-hamburger-30479

11/23/2022, 7:11 AM
Perhaps the Pulumi team can think of making the CustomResource class generic to make typings easier
b

billowy-army-68599

11/23/2022, 4:18 PM
@acoustic-hamburger-30479 we have crd2pulumi already
g

gorgeous-egg-16927

11/28/2022, 5:03 PM
FYI, you can also use CustomResource to define the specs