Skip to content

Commit 3f2584a

Browse files
committed
add array field to dummy CRD
On-behalf-of: @SAP [email protected]
1 parent e20fb50 commit 3f2584a

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

test/crds/backup.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ type Backup struct {
2828
}
2929

3030
type BackupSpec struct {
31-
Source string `json:"source"`
32-
Destination string `json:"destination"`
31+
Source string `json:"source"`
32+
Destination string `json:"destination"`
33+
Items []BackupItem `json:"items,omitempty"`
34+
}
35+
36+
type BackupItem struct {
37+
Name string `json:"name"`
3338
}

test/crds/backup.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,10 @@ spec:
2525
type: string
2626
destination:
2727
type: string
28+
items:
29+
type: array
30+
items:
31+
type: object
32+
properties:
33+
name:
34+
type: string

0 commit comments

Comments
 (0)