Skip to content

Commit cf1ea27

Browse files
authored
Merge pull request #655 from benluddy/crd-cronjob-gogenerate
🌱 Update cronjob_types.go go:generate invocation and re-generate.
2 parents eba92f4 + d3f2013 commit cf1ea27

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

pkg/crd/testdata/cronjob_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ limitations under the License.
1616
// TODO(directxman12): test this across both versions (right now we're just
1717
// trusting k/k conversion, which is probably fine though)
1818

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=.
2020

2121
// +groupName=testdata.kubebuilder.io
2222
// +versionName=v1

pkg/crd/testdata/testdata.kubebuilder.io_cronjobs.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ spec:
5656
- secondary
5757
x-kubernetes-list-type: map
5858
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
6061
type: string
6162
binaryName:
6263
description: This tests byte slice schema generation.
@@ -127,6 +128,10 @@ spec:
127128
a pointer to distinguish between explicit zero and not specified.
128129
format: int32
129130
type: integer
131+
foo:
132+
description: This tests that exported fields are not skipped in the
133+
schema generation
134+
type: string
130135
intOrStringWithAPattern:
131136
anyOf:
132137
- type: integer
@@ -137,9 +142,6 @@ spec:
137142
for having a pattern on this type.
138143
pattern: ^((100|[0-9]{1,2})%|[0-9]+)$
139144
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
143145
jobTemplate:
144146
description: Specifies the job that will be created when executing
145147
a CronJob.

0 commit comments

Comments
 (0)