From d053962b5b4107adee23deb7020c2e05cd6eda02 Mon Sep 17 00:00:00 2001 From: Varad Date: Fri, 17 Jan 2025 01:37:31 -0800 Subject: [PATCH] Depict the correct status for rsct instance Signed-off-by: Varad --- internal/controller/rsct_controller.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/controller/rsct_controller.go b/internal/controller/rsct_controller.go index 0bc4bed..41a8ae5 100644 --- a/internal/controller/rsct_controller.go +++ b/internal/controller/rsct_controller.go @@ -20,6 +20,7 @@ import ( "context" "fmt" + appsv1 "k8s.io/api/apps/v1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/runtime" ctrl "sigs.k8s.io/controller-runtime" @@ -101,5 +102,6 @@ func (r *RSCTReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl. func (r *RSCTReconciler) SetupWithManager(mgr ctrl.Manager) error { return ctrl.NewControllerManagedBy(mgr). For(&rsctv1alpha1.RSCT{}). + Owns(&appsv1.DaemonSet{}). Complete(r) }