Skip to content

Commit 2024a98

Browse files
committed
Add int32 type for testing
1 parent f9be8dd commit 2024a98

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ function test_crd_validation {
518518
// +kubebuilder:validation:Maximum=100\
519519
// +kubebuilder:validation:ExclusiveMinimum=true\
520520
Power float32 \`json:"power"\`\
521+
Bricks int32 \`json:"bricks"\`\
521522
// +kubebuilder:validation:MaxLength=15\
522523
// +kubebuilder:validation:MinLength=1\
523524
Name string \`json:"name"\`\

test/data/resource/expected/crd-expected.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ spec:
2929
- Wolf
3030
- Dragon
3131
type: string
32+
bricks:
33+
format: int32
34+
type: integer
3235
knights:
3336
items:
3437
type: string

0 commit comments

Comments
 (0)