Skip to content

Commit 57c90b7

Browse files
committed
inspector: Add Owns() for ks Service Endpoint
The IronicInspector controller creates KeystoneService and KeystoneEndpoint resources but was missing the Owns() declarations in SetupWithManager(). This could prevent proper reconciliation if these resources are modified or deleted. This aligns the inspector controller with the ironicapi controller pattern. Signed-off-by: Harald Jensås <[email protected]>
1 parent e6d6e0c commit 57c90b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

controllers/ironicinspector_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,8 @@ func (r *IronicInspectorReconciler) SetupWithManager(
367367

368368
return ctrl.NewControllerManagedBy(mgr).
369369
For(&ironicv1.IronicInspector{}).
370+
Owns(&keystonev1.KeystoneService{}).
371+
Owns(&keystonev1.KeystoneEndpoint{}).
370372
Owns(&corev1.Secret{}).
371373
Owns(&routev1.Route{}).
372374
Owns(&corev1.Service{}).

0 commit comments

Comments
 (0)