Skip to content

Commit

Permalink
chore: Apply suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: Nick <[email protected]>
  • Loading branch information
Techassi and NickLarsenNZ authored Sep 11, 2024
1 parent 3e55340 commit b8be555
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ pub(crate) struct OptionAttributes {
///
/// Supported attributes are:
///
/// - `skip`, which controls skipping parts of the generation.
/// - `kind`, which allows overwriting the kind field of the CRD. This defaults
/// to the struct name (without the 'Spec' suffix).
/// - `group`, which sets the CRD group, usually the domain of the company.
Expand All @@ -144,8 +145,16 @@ pub(crate) struct KubernetesAttributes {
pub(crate) group: String,
}

/// This struct contains supported kubernetes skip attributes.
///
/// Supported attributes are:
///
/// - `merged_crd` flag, which skips generating the `crd()` and `merged_crd()`
/// functions are generated.
#[derive(Clone, Debug, FromMeta)]
pub(crate) struct KubernetesSkipAttributes {
/// Whether the `crd()` and `merged_crd()` generation should be skipped for
/// this container.
pub(crate) merged_crd: Flag,
}

Expand Down

0 comments on commit b8be555

Please sign in to comment.