We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03d9ac2 commit 319549dCopy full SHA for 319549d
src/main.rs
@@ -270,7 +270,13 @@ impl Kopium {
270
if scope == "Namespaced" {
271
println!(r#"#[kube(namespaced)]"#);
272
}
273
- if version.subresources.as_ref().is_some_and(|c| c.status.is_some())
+ if (version.subresources.as_ref().is_some_and(|c| c.status.is_some())
274
+ || version
275
+ .schema
276
+ .as_ref()
277
+ .and_then(|c| c.open_api_v3_schema.as_ref())
278
+ .and_then(|c| c.properties.as_ref())
279
+ .is_some_and(|c| c.contains_key("status")))
280
&& self.has_status_resource(&structs)
281
{
282
println!(r#"#[kube(status = "{}Status")]"#, kind);
0 commit comments