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
Doc tweaks and 2 missing impls pre release (#1573)
* Doc tweaks and 2 missing impls pre release
Mostly doc stuff that was inconsistent or looked unprofessional.
In particular, the lib re-export ones now seem to concatenate the docstrings,
so have made these cleaner on both end.
Cleaned up the cert check example a little bit to more showcase the problem.
Missing impls:
- Derive + Clone on marker `Namespace` and `Cluster` for unstable client_ext
Signed-off-by: clux <[email protected]>
* redundant word
Signed-off-by: clux <[email protected]>
* more missing links
Signed-off-by: clux <[email protected]>
---------
Signed-off-by: clux <[email protected]>
Copy file name to clipboardExpand all lines: examples/README.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,11 +69,10 @@ cargo run --example crd_api
69
69
cargo run --example crd_derive
70
70
cargo run --example crd_derive_schema
71
71
cargo run --example crd_derive_no_schema --no-default-features --features=openssl-tls,latest
72
-
# collect kube-root configmaps from each namespace, with strictly typed serialization on ca.crt key
73
-
cargo run --example cert_check
72
+
cargo run --example cert_check # showcases partial typing with Resource derive
74
73
```
75
74
76
-
The last one opts out from the default `schema` feature from `kube-derive` (and thus the need for you to derive/impl `JsonSchema`).
75
+
The `no_schema` one opts out from the default `schema` feature from `kube-derive` (and thus the need for you to derive/impl `JsonSchema`).
77
76
78
77
**However**: without the `schema` feature, it's left **up to you to fill in a valid openapi v3 schema**, as schemas are **required** for [v1::CustomResourceDefinitions](https://docs.rs/k8s-openapi/0.10.0/k8s_openapi/apiextensions_apiserver/pkg/apis/apiextensions/v1/struct.CustomResourceDefinition.html), and the generated crd will be rejected by the apiserver if it's missing. As the last example shows, you can do this directly without `schemars`.
0 commit comments