Skip to content

Commit

Permalink
Change apiTimeout type to Optional
Browse files Browse the repository at this point in the history
To keep backward compatibility with updates/upgrades of
existing env, this parameter can not be type Required.

Error msg on update env:

message: 'error validating existing CRs against new CRD''s schema for "openstackcontrolplanes.core.openstack.org":                       error validating core.openstack.org/v1beta1, Kind=OpenStackControlPlane "openstack/controlplane":
    updated validation is too restrictive: [].spec.octavia.template.apiTimeout: Required
    value'
  • Loading branch information
Fernando Royo authored and openshift-cherrypick-robot committed Nov 19, 2024
1 parent a0cc255 commit cf032b2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion api/bases/octavia.openstack.org_octavias.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,6 @@ spec:
type: string
required:
- apacheContainerImage
- apiTimeout
- databaseInstance
- octaviaAPI
- octaviaNetworkAttachment
Expand Down
2 changes: 1 addition & 1 deletion api/v1beta1/octavia_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ type OctaviaSpecBase struct {
// Apache Container Image URL
ApacheContainerImage string `json:"apacheContainerImage"`

// +kubebuilder:validation:Required
// +kubebuilder:validation:Optional
// +kubebuilder:default=120
// Octavia API timeout
APITimeout int `json:"apiTimeout"`
Expand Down
1 change: 0 additions & 1 deletion config/crd/bases/octavia.openstack.org_octavias.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,6 @@ spec:
type: string
required:
- apacheContainerImage
- apiTimeout
- databaseInstance
- octaviaAPI
- octaviaNetworkAttachment
Expand Down

0 comments on commit cf032b2

Please sign in to comment.