Skip to content

Commit

Permalink
Make version field required on API schema level
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-demicev committed Feb 21, 2022
1 parent 0f17404 commit 381ca06
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1alpha1/provider_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const (
// ProviderSpec is the desired state of the Provider.
type ProviderSpec struct {
// Version indicates the provider version.
Version string `json:"version,omitempty"`
Version string `json:"version"`

// Manager defines the properties that can be enabled on the controller manager for the provider.
// +optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1402,6 +1402,8 @@ spec:
version:
description: Version indicates the provider version.
type: string
required:
- version
type: object
status:
description: BootstrapProviderStatus defines the observed state of BootstrapProvider.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,8 @@ spec:
version:
description: Version indicates the provider version.
type: string
required:
- version
type: object
status:
description: ControlPlaneProviderStatus defines the observed state of
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/operator.cluster.x-k8s.io_coreproviders.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1402,6 +1402,8 @@ spec:
version:
description: Version indicates the provider version.
type: string
required:
- version
type: object
status:
description: CoreProviderStatus defines the observed state of CoreProvider.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,8 @@ spec:
version:
description: Version indicates the provider version.
type: string
required:
- version
type: object
status:
description: InfrastructureProviderStatus defines the observed state of
Expand Down

0 comments on commit 381ca06

Please sign in to comment.