Skip to content

Commit

Permalink
Fixed incorrect InputReadyCondition
Browse files Browse the repository at this point in the history
[0] broke the InputReadyCondition in the OctaviaAPI and OctaviaAmphora controllers
This commit fixes it

[0] openstack-k8s-operators#370
  • Loading branch information
gthiemonge committed Sep 11, 2024
1 parent 336fe2d commit ed2920c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/amphoracontroller_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,8 @@ func (r *OctaviaAmphoraControllerReconciler) generateServiceSecrets(
}
transportURL := string(transportURLSecret.Data["transport_url"])

instance.Status.Conditions.MarkTrue(condition.InputReadyCondition, condition.InputReadyMessage)

db, err := mariadbv1.GetDatabaseByNameAndAccount(ctx, helper, octavia.DatabaseName, instance.Spec.DatabaseAccount, instance.Namespace)
if err != nil {
return err
Expand Down
2 changes: 2 additions & 0 deletions controllers/octaviaapi_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,8 @@ func (r *OctaviaAPIReconciler) generateServiceSecrets(
}
transportURL := string(transportURLSecret.Data["transport_url"])

instance.Status.Conditions.MarkTrue(condition.InputReadyCondition, condition.InputReadyMessage)

db, err := mariadbv1.GetDatabaseByNameAndAccount(ctx, h, octavia.DatabaseName, instance.Spec.DatabaseAccount, instance.Namespace)
if err != nil {
return err
Expand Down

0 comments on commit ed2920c

Please sign in to comment.