Skip to content

Commit 4848dc9

Browse files
committed
delete old stuff
1 parent 10c28b8 commit 4848dc9

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

backend/controllers/serviceexport/serviceexport_controller.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222

2323
"k8s.io/apimachinery/pkg/api/equality"
2424
"k8s.io/apimachinery/pkg/api/errors"
25-
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2625
"k8s.io/apimachinery/pkg/types"
2726
ctrl "sigs.k8s.io/controller-runtime"
2827
"sigs.k8s.io/controller-runtime/pkg/cache"
@@ -75,14 +74,6 @@ func NewAPIServiceExportReconciler(
7574
}
7675
return &schema, nil
7776
},
78-
deleteServiceExport: func(ctx context.Context, cl client.Client, ns, name string) error {
79-
return cl.Delete(ctx, &kubebindv1alpha2.APIServiceExport{
80-
ObjectMeta: metav1.ObjectMeta{
81-
Namespace: ns,
82-
Name: name,
83-
},
84-
})
85-
},
8677
},
8778
}
8879

backend/controllers/serviceexport/serviceexport_reconcile.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
utilerrors "k8s.io/apimachinery/pkg/util/errors"
2424
"k8s.io/klog/v2"
2525
"sigs.k8s.io/controller-runtime/pkg/cache"
26-
"sigs.k8s.io/controller-runtime/pkg/client"
2726

2827
kubebindv1alpha2 "github.com/kube-bind/kube-bind/sdk/apis/kubebind/v1alpha2"
2928
"github.com/kube-bind/kube-bind/sdk/apis/kubebind/v1alpha2/helpers"
@@ -32,8 +31,7 @@ import (
3231
)
3332

3433
type reconciler struct {
35-
getBoundSchema func(ctx context.Context, cache cache.Cache, namespace, name string) (*kubebindv1alpha2.BoundSchema, error)
36-
deleteServiceExport func(ctx context.Context, client client.Client, namespace, name string) error
34+
getBoundSchema func(ctx context.Context, cache cache.Cache, namespace, name string) (*kubebindv1alpha2.BoundSchema, error)
3735
}
3836

3937
func (r *reconciler) reconcile(ctx context.Context, cache cache.Cache, export *kubebindv1alpha2.APIServiceExport) error {

0 commit comments

Comments
 (0)