Skip to content

Commit 277bde4

Browse files
committed
api: openstackcluster.status is now optional
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.
1 parent 5d62dd5 commit 277bde4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

api/v1alpha8/openstackcluster_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ type OpenStackClusterSpec struct {
167167

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

172174
// Network contains information about the created OpenStack Network.

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclusters.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5832,6 +5832,7 @@ spec:
58325832
- name
58335833
type: object
58345834
ready:
5835+
description: Ready is true when the cluster infrastructure is ready.
58355836
type: boolean
58365837
router:
58375838
description: Router describes the default cluster router
@@ -5905,8 +5906,6 @@ spec:
59055906
- name
59065907
- rules
59075908
type: object
5908-
required:
5909-
- ready
59105909
type: object
59115910
type: object
59125911
served: true

0 commit comments

Comments
 (0)