Skip to content

Commit e6092b8

Browse files
committed
api: openstackcluster.status default to false
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 false by default now, so if the status has not been set to anything, patching the object will not fail with the previous error.
1 parent f128d15 commit e6092b8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
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+
// +kubebuilder:default=false
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5849,6 +5849,8 @@ spec:
58495849
- name
58505850
type: object
58515851
ready:
5852+
default: false
5853+
description: Ready is true when the cluster infrastructure is ready.
58525854
type: boolean
58535855
router:
58545856
description: Router describes the default cluster router

0 commit comments

Comments
 (0)