Skip to content

Commit

Permalink
Depict the correct status for rsct instance
Browse files Browse the repository at this point in the history
Signed-off-by: Varad <[email protected]>
  • Loading branch information
varad-ahirwadkar committed Jan 17, 2025
1 parent 9cb6545 commit d053962
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/controller/rsct_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
}

0 comments on commit d053962

Please sign in to comment.