@@ -30,9 +30,9 @@ import (
3030)
3131
3232const (
33- OperatorSpec = "examples/endpointslice-controller/endpointslice-controller-spec.yaml"
34- OperatorGatherSpec = "examples/endpointslice-controller/endpointslice-controller-gather-spec.yaml"
35- EndpointSliceControllerAnnotationName = "dcontroller.io/endpointslice-controller-enabled"
33+ OperatorSpec = "examples/endpointslice-controller/endpointslice-controller-spec.yaml"
34+ OperatorGatherSpec = "examples/endpointslice-controller/endpointslice-controller-gather-spec.yaml"
35+ EndpointSliceCtrlAnnotationName = "dcontroller.io/endpointslice-controller-enabled"
3636)
3737
3838var (
@@ -125,7 +125,7 @@ type endpointSliceController struct {
125125func NewEndpointSliceController (mgr manager.Manager , log logr.Logger ) (* endpointSliceController , error ) {
126126 r := & endpointSliceController {
127127 Client : mgr .GetClient (),
128- log : log .WithName ("endpointSlice -ctrl" ),
128+ log : log .WithName ("endpointslice -ctrl" ),
129129 }
130130
131131 on := true
@@ -139,7 +139,7 @@ func NewEndpointSliceController(mgr manager.Manager, log logr.Logger) (*endpoint
139139
140140 src , err := dreconciler .NewSource (mgr , opv1a1.Source {
141141 Resource : opv1a1.Resource {
142- Kind : "EndpointSliceView " ,
142+ Kind : "EndpointView " ,
143143 },
144144 }).GetSource ()
145145 if err != nil {
@@ -174,12 +174,12 @@ func (r *endpointSliceController) Reconcile(ctx context.Context, req dreconciler
174174 name := obj .GetName ()
175175 namespace := obj .GetNamespace ()
176176
177- r .log .Info ("Add/update EndpointSliceView object" , "name" , name , "namespace" , namespace , "spec" , fmt .Sprintf ("%#v" , spec ))
177+ r .log .Info ("Add/update EndpointView object" , "name" , name , "namespace" , namespace , "spec" , fmt .Sprintf ("%#v" , spec ))
178178
179179 // handle upsert event
180180
181181 case cache .Deleted :
182- r .log .Info ("Delete EndpointSliceView object" , "name" , req .Name , "namespace" , req .Namespace )
182+ r .log .Info ("Delete EndpointView object" , "name" , req .Name , "namespace" , req .Namespace )
183183
184184 // handle delete event
185185
0 commit comments