File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
crates/stackable-versioned-macros/src/attrs Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,17 @@ use darling::{util::Flag, FromMeta};
2
2
3
3
/// This struct contains supported Kubernetes arguments.
4
4
///
5
+ /// The arguments are passed through to the `#[kube]` attribute. More details can be found in the
6
+ /// official docs: <https://docs.rs/kube/latest/kube/derive.CustomResource.html>.
7
+ ///
5
8
/// Supported arguments are:
6
9
///
7
10
/// - `skip`, which controls skipping parts of the generation.
11
+ /// - `singular`, to specify the singular name of the CR object.
12
+ /// - `plural`, to specify the plural name of the CR object.
8
13
/// - `kind`, which allows overwriting the kind field of the CRD. This defaults to the struct name
9
14
/// (without the 'Spec' suffix).
15
+ /// - `namespaced`, to specify that this is a namespaced resource rather than cluster level.
10
16
/// - `group`, which sets the CRD group, usually the domain of the company.
11
17
#[ derive( Clone , Debug , FromMeta ) ]
12
18
pub ( crate ) struct KubernetesArguments {
You can’t perform that action at this time.
0 commit comments