test/integration/testdata/structtype/atomic-struct.go
raw| 1 | package structtype |
| 2 | |
| 3 | // +k8s:openapi-gen=true |
| 4 | type AtomicStruct struct { |
| 5 | // +structType=atomic |
| 6 | Field ContainedStruct |
| 7 | OtherField int |
| 8 | } |
| 9 | |
| 10 | // +k8s:openapi-gen=true |
| 11 | type ContainedStruct struct{} |
| 12 | |
| 13 | // +k8s:openapi-gen=true |
| 14 | // +structType=atomic |
| 15 | type DeclaredAtomicStruct struct { |
| 16 | Field int |
| 17 | } |