Skip to content

Commit

Permalink
api: openstackcluster.status is now optional
Browse files Browse the repository at this point in the history
When a reconcile loop for the bastion is requeued, we have
this error:
```
OpenStackCluster.infrastructure.cluster.x-k8s.io \"cluster-e2e-rha0r3\" is invalid: ready: Required value"
```

The OpenStackMachine.Status is optional, so let's make the status
optional for openstackcluster too.
  • Loading branch information
EmilienM committed Jan 25, 2024
1 parent 5d62dd5 commit 277bde4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions api/v1alpha8/openstackcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ type OpenStackClusterSpec struct {

// OpenStackClusterStatus defines the observed state of OpenStackCluster.
type OpenStackClusterStatus struct {
// Ready is true when the cluster infrastructure is ready.
// +optional
Ready bool `json:"ready"`

// Network contains information about the created OpenStack Network.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5832,6 +5832,7 @@ spec:
- name
type: object
ready:
description: Ready is true when the cluster infrastructure is ready.
type: boolean
router:
description: Router describes the default cluster router
Expand Down Expand Up @@ -5905,8 +5906,6 @@ spec:
- name
- rules
type: object
required:
- ready
type: object
type: object
served: true
Expand Down

0 comments on commit 277bde4

Please sign in to comment.