Skip to content

Commit

Permalink
Adding gc newaction
Browse files Browse the repository at this point in the history
  • Loading branch information
biswassri committed Nov 27, 2024
1 parent 027d364 commit e679455
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/components/codeflare/codeflare_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (

componentsv1 "github.com/opendatahub-io/opendatahub-operator/v2/apis/components/v1"
"github.com/opendatahub-io/opendatahub-operator/v2/pkg/controller/actions/deploy"
"github.com/opendatahub-io/opendatahub-operator/v2/pkg/controller/actions/gc"
"github.com/opendatahub-io/opendatahub-operator/v2/pkg/controller/actions/render/kustomize"
"github.com/opendatahub-io/opendatahub-operator/v2/pkg/controller/actions/updatestatus"
"github.com/opendatahub-io/opendatahub-operator/v2/pkg/controller/predicates/resources"
Expand Down Expand Up @@ -72,6 +73,9 @@ func (s *componentHandler) NewComponentReconciler(ctx context.Context, mgr ctrl.
WithAction(updatestatus.NewAction(
updatestatus.WithSelectorLabel(labels.ComponentPartOf, componentsv1.CodeFlareInstanceName),
)).
WithAction(gc.NewAction(
gc.WithLabel(labels.ComponentPartOf, componentsv1.CodeFlareInstanceName),
)).
Build(ctx)

if err != nil {
Expand Down

0 comments on commit e679455

Please sign in to comment.