Having a really confusing problem creating a CRD o...
# general
s
Having a really confusing problem creating a CRD object that I generated using crd2pulumi. The diff shows the correct spec for the resource I’m trying to create, but when I actually execute I get
Copy code
[spec.source: Invalid value: "string": spec.source in body must be of type object: "string", <nil>: Invalid value: "": "spec.source" must validate one and only one schema (oneOf). Found 2 valid alternatives]
indicating that a nil or empty value is actually being passed to k8s and failing validation server side. Since the diff is correct and shows the populated value, I have no idea how to debug. Any ideas? EDIT: Figured this out, the type was generated as
any
and I was improperly supplying the wrong value due to type inference missing.