Skip to content

Commit 6eb5cac

Browse files
committed
chore: Add 'maximum' value to totalLength schema property
1 parent e981739 commit 6eb5cac

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

  • deploy/helm/secret-operator/crds
  • rust/operator-binary/src/crd

deploy/helm/secret-operator/crds/crds.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ spec:
308308
309309
Note that this should be as large as possible, to minimize the risk of collisions.
310310
format: uint8
311-
maximum: 255.0
311+
maximum: 20.0
312312
minimum: 0.0
313313
type: integer
314314
type: object

rust/operator-binary/src/crd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ pub mod versioned {
300300
///
301301
/// Note that this should be as large as possible, to minimize the risk of collisions.
302302
#[serde(default = "ActiveDirectorySamAccountNameRules::default_total_length")]
303+
#[schemars(range(max = 20))]
303304
pub total_length: u8,
304305
}
305306

0 commit comments

Comments
 (0)