Skip to content

Commit 3d4b73a

Browse files
authored
Merge pull request #11259 from sbueringer/pr-type-optoinal
🌱 Make Type in ClusterClass variable schema properly optional
2 parents c0f0871 + 2ce2149 commit 3d4b73a

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

api/v1beta1/clusterclass_types.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,8 @@ type JSONSchemaProps struct {
450450

451451
// Type is the type of the variable.
452452
// Valid values are: object, array, string, integer, number or boolean.
453-
Type string `json:"type"`
453+
// +optional
454+
Type string `json:"type,omitempty"`
454455

455456
// Properties specifies fields of an object.
456457
// NOTE: Can only be set if type is object.

api/v1beta1/zz_generated.openapi.go

-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/cluster.x-k8s.io_clusterclasses.yaml

-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)