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
the status struct is not generated (looks like it)
the (would-be) preserve-unknown Map type is not checked for before linking it with a #[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
Activity
clux commentedon Sep 27, 2024
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 withCustomResource
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