Skip to content

Commit b8be555

Browse files
chore: Apply suggestions
Co-authored-by: Nick <[email protected]>
1 parent 3e55340 commit b8be555

File tree

1 file changed

+9
-0
lines changed
  • crates/stackable-versioned-macros/src/attrs/common

1 file changed

+9
-0
lines changed

crates/stackable-versioned-macros/src/attrs/common/container.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ pub(crate) struct OptionAttributes {
134134
///
135135
/// Supported attributes are:
136136
///
137+
/// - `skip`, which controls skipping parts of the generation.
137138
/// - `kind`, which allows overwriting the kind field of the CRD. This defaults
138139
/// to the struct name (without the 'Spec' suffix).
139140
/// - `group`, which sets the CRD group, usually the domain of the company.
@@ -144,8 +145,16 @@ pub(crate) struct KubernetesAttributes {
144145
pub(crate) group: String,
145146
}
146147

148+
/// This struct contains supported kubernetes skip attributes.
149+
///
150+
/// Supported attributes are:
151+
///
152+
/// - `merged_crd` flag, which skips generating the `crd()` and `merged_crd()`
153+
/// functions are generated.
147154
#[derive(Clone, Debug, FromMeta)]
148155
pub(crate) struct KubernetesSkipAttributes {
156+
/// Whether the `crd()` and `merged_crd()` generation should be skipped for
157+
/// this container.
149158
pub(crate) merged_crd: Flag,
150159
}
151160

0 commit comments

Comments
 (0)