Skip to content

Commit

Permalink
fix(ecr): ignoring controllers used names (#153)
Browse files Browse the repository at this point in the history
Signed-off-by: Dario Tranchitella <[email protected]>
  • Loading branch information
prometherion authored Nov 13, 2024
1 parent 2c9b50f commit 7ca279f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controllers/externalclusterreference_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
"k8s.io/client-go/tools/clientcmd"
"k8s.io/utils/ptr"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/controller"
"sigs.k8s.io/controller-runtime/pkg/event"
"sigs.k8s.io/controller-runtime/pkg/handler"
ctrllog "sigs.k8s.io/controller-runtime/pkg/log"
Expand Down Expand Up @@ -205,6 +207,9 @@ func (p *PushKamajiChange) Reconcile(ctx context.Context, request reconcile.Requ
//nolint:wrapcheck
func (p *PushKamajiChange) SetupWithManager(mgr ctrl.Manager) error {
return ctrl.NewControllerManagedBy(mgr).
WithOptions(controller.Options{
SkipNameValidation: ptr.To(true),
}).
For(&kamajiv1alpha1.TenantControlPlane{}).
Complete(p)
}

0 comments on commit 7ca279f

Please sign in to comment.