Skip to content

Commit

Permalink
Merge pull request #655 from benluddy/crd-cronjob-gogenerate
Browse files Browse the repository at this point in the history
🌱 Update cronjob_types.go go:generate invocation and re-generate.
  • Loading branch information
k8s-ci-robot committed Feb 4, 2022
2 parents eba92f4 + d3f2013 commit cf1ea27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/crd/testdata/cronjob_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.
// TODO(directxman12): test this across both versions (right now we're just
// trusting k/k conversion, which is probably fine though)

//go:generate ../../../.run-controller-gen.sh crd paths=./;./deprecated;./unserved output:dir=.
//go:generate ../../../.run-controller-gen.sh crd:ignoreUnexportedFields=true paths=./;./deprecated;./unserved output:dir=.

// +groupName=testdata.kubebuilder.io
// +versionName=v1
Expand Down
10 changes: 6 additions & 4 deletions pkg/crd/testdata/testdata.kubebuilder.io_cronjobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ spec:
- secondary
x-kubernetes-list-type: map
baz:
description: This tests that exported fields are not skipped in the schema generation
description: This tests that exported fields are not skipped in the
schema generation
type: string
binaryName:
description: This tests byte slice schema generation.
Expand Down Expand Up @@ -127,6 +128,10 @@ spec:
a pointer to distinguish between explicit zero and not specified.
format: int32
type: integer
foo:
description: This tests that exported fields are not skipped in the
schema generation
type: string
intOrStringWithAPattern:
anyOf:
- type: integer
Expand All @@ -137,9 +142,6 @@ spec:
for having a pattern on this type.
pattern: ^((100|[0-9]{1,2})%|[0-9]+)$
x-kubernetes-int-or-string: true
foo:
description: This tests that exported fields are not skipped in the schema generation
type: string
jobTemplate:
description: Specifies the job that will be created when executing
a CronJob.
Expand Down

0 comments on commit cf1ea27

Please sign in to comment.