Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #873 from fao89/init
Browse files Browse the repository at this point in the history
Use the specific init message
  • Loading branch information
openshift-merge-bot[bot] authored May 7, 2024
2 parents cffcd24 + 4c77e75 commit a62d9da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions api/v1beta1/openstackdataplanedeployment_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,16 @@ 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)
if instance.Spec.NodeSets != nil {
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

}
Expand Down
6 changes: 3 additions & 3 deletions api/v1beta1/openstackdataplanenodeset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a62d9da

Please sign in to comment.