Open zsoli69 opened 2 months ago
Possibly two problems here;
#[kube(status = ThatMap)]
We do check for the struct existing before making a status link to it (1 / 2).
Possibly we could make a type alias for status to be just Map<String, serde_json::Value>
(like the other preserve_unknown things) and refer to this... It's possible this will work just work with CustomResource
but not sure.
Experimentation welcome. It should be possible to mess with the analyzer to get it to produce something for it. Once the struct/type-alias is produced, it can be hooked into the #[kube(status)]
line easily.
Links to the CRD that produces this is also helpful.
Note that we do support the similar case where the main struct is just unknown-fields; tested here
In case a CRD has a status property defined as the following, the status struct will not be generated.