From 4c77e756088665695b93590c47bfac2052c5547b Mon Sep 17 00:00:00 2001 From: Fabricio Aguiar Date: Mon, 6 May 2024 13:08:29 +0100 Subject: [PATCH] Use the specific init message Signed-off-by: Fabricio Aguiar --- api/v1beta1/openstackdataplanedeployment_types.go | 6 +++--- api/v1beta1/openstackdataplanenodeset_types.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/v1beta1/openstackdataplanedeployment_types.go b/api/v1beta1/openstackdataplanedeployment_types.go index 8fd75b47f..b1e149661 100644 --- a/api/v1beta1/openstackdataplanedeployment_types.go +++ b/api/v1beta1/openstackdataplanedeployment_types.go @@ -131,8 +131,8 @@ func (instance *OpenStackDataPlaneDeployment) InitConditions() { instance.Status.Conditions = condition.Conditions{} cl := condition.CreateList( - condition.UnknownCondition(condition.DeploymentReadyCondition, condition.InitReason, condition.InitReason), - condition.UnknownCondition(condition.InputReadyCondition, condition.InitReason, condition.InitReason), + condition.UnknownCondition(condition.DeploymentReadyCondition, condition.InitReason, condition.DeploymentReadyInitMessage), + condition.UnknownCondition(condition.InputReadyCondition, condition.InitReason, condition.InputReadyInitMessage), ) instance.Status.Conditions.Init(&cl) instance.Status.NodeSetConditions = make(map[string]condition.Conditions) @@ -140,7 +140,7 @@ func (instance *OpenStackDataPlaneDeployment) InitConditions() { for _, nodeSet := range instance.Spec.NodeSets { nsConds := condition.Conditions{} nsConds.Set(condition.UnknownCondition( - NodeSetDeploymentReadyCondition, condition.InitReason, condition.InitReason)) + NodeSetDeploymentReadyCondition, condition.InitReason, condition.DeploymentReadyInitMessage)) instance.Status.NodeSetConditions[nodeSet] = nsConds } diff --git a/api/v1beta1/openstackdataplanenodeset_types.go b/api/v1beta1/openstackdataplanenodeset_types.go index 469388af7..1579236f2 100644 --- a/api/v1beta1/openstackdataplanenodeset_types.go +++ b/api/v1beta1/openstackdataplanenodeset_types.go @@ -174,12 +174,12 @@ func (instance *OpenStackDataPlaneNodeSet) InitConditions() { instance.Status.DeploymentStatuses = make(map[string]condition.Conditions) cl := condition.CreateList( - condition.UnknownCondition(condition.DeploymentReadyCondition, condition.InitReason, condition.InitReason), - condition.UnknownCondition(condition.InputReadyCondition, condition.InitReason, condition.InitReason), + condition.UnknownCondition(condition.DeploymentReadyCondition, condition.InitReason, condition.DeploymentReadyInitMessage), + condition.UnknownCondition(condition.InputReadyCondition, condition.InitReason, condition.InputReadyInitMessage), condition.UnknownCondition(SetupReadyCondition, condition.InitReason, condition.InitReason), condition.UnknownCondition(NodeSetIPReservationReadyCondition, condition.InitReason, condition.InitReason), condition.UnknownCondition(NodeSetDNSDataReadyCondition, condition.InitReason, condition.InitReason), - condition.UnknownCondition(condition.ServiceAccountReadyCondition, condition.InitReason, condition.InitReason), + condition.UnknownCondition(condition.ServiceAccountReadyCondition, condition.InitReason, condition.ServiceAccountReadyInitMessage), ) // Only set Baremetal related conditions if we have baremetal hosts included in the