Skip to content

Commit 9615cac

Browse files
committed
fix: proper schema for enums
1 parent c6461a5 commit 9615cac

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

operator-framework/src/test/resources/io/javaoperatorsdk/operator/doubleupdate-test-crd.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ spec:
1717
status:
1818
properties:
1919
state:
20-
type: object
20+
type: string
21+
enum:
22+
- "SUCCESS"
23+
- "ERROR"
2124
type: object
2225
spec:
2326
properties:

operator-framework/src/test/resources/io/javaoperatorsdk/operator/eventsource-test-crd.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ spec:
1717
status:
1818
properties:
1919
state:
20-
type: object
20+
type: string
21+
enum:
22+
- "SUCCESS"
23+
- "ERROR"
2124
type: object
2225
spec:
2326
properties:

operator-framework/src/test/resources/io/javaoperatorsdk/operator/retry-test-crd.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ spec:
1717
status:
1818
properties:
1919
state:
20-
type: object
20+
type: string
21+
enum:
22+
- "SUCCESS"
23+
- "ERROR"
2124
type: object
2225
spec:
2326
properties:

operator-framework/src/test/resources/io/javaoperatorsdk/operator/subresource-test-crd.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ spec:
1717
status:
1818
properties:
1919
state:
20-
type: object
20+
type: string
21+
enum:
22+
- "SUCCESS"
23+
- "ERROR"
2124
type: object
2225
spec:
2326
properties:

0 commit comments

Comments
 (0)