File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ limitations under the License.
16
16
// TODO(directxman12): test this across both versions (right now we're just
17
17
// trusting k/k conversion, which is probably fine though)
18
18
19
- //go:generate ../../../.run-controller-gen.sh crd paths=./;./deprecated;./unserved output:dir=.
19
+ //go:generate ../../../.run-controller-gen.sh crd:ignoreUnexportedFields=true paths=./;./deprecated;./unserved output:dir=.
20
20
21
21
// +groupName=testdata.kubebuilder.io
22
22
// +versionName=v1
Original file line number Diff line number Diff line change 56
56
- secondary
57
57
x-kubernetes-list-type: map
58
58
baz:
59
- description: This tests that exported fields are not skipped in the schema generation
59
+ description: This tests that exported fields are not skipped in the
60
+ schema generation
60
61
type: string
61
62
binaryName:
62
63
description: This tests byte slice schema generation.
@@ -127,6 +128,10 @@ spec:
127
128
a pointer to distinguish between explicit zero and not specified.
128
129
format: int32
129
130
type: integer
131
+ foo:
132
+ description: This tests that exported fields are not skipped in the
133
+ schema generation
134
+ type: string
130
135
intOrStringWithAPattern:
131
136
anyOf:
132
137
- type: integer
@@ -137,9 +142,6 @@ spec:
137
142
for having a pattern on this type.
138
143
pattern: ^((100|[0-9]{1,2})%|[0-9]+)$
139
144
x-kubernetes-int-or-string: true
140
- foo:
141
- description: This tests that exported fields are not skipped in the schema generation
142
- type: string
143
145
jobTemplate:
144
146
description: Specifies the job that will be created when executing
145
147
a CronJob.
You can’t perform that action at this time.
0 commit comments