@@ -10,7 +10,6 @@ import (
1010 machinev1 "github.com/openshift/api/machine/v1beta1"
1111 computeservice "github.com/openshift/machine-api-provider-gcp/pkg/cloud/gcp/actuators/services/compute"
1212 tagservice "github.com/openshift/machine-api-provider-gcp/pkg/cloud/gcp/actuators/services/tags"
13- "github.com/openshift/machine-api-provider-gcp/pkg/cloud/gcp/actuators/util"
1413 corev1 "k8s.io/api/core/v1"
1514 "k8s.io/client-go/tools/record"
1615 "k8s.io/component-base/featuregate"
@@ -35,7 +34,6 @@ type Actuator struct {
3534 computeClientBuilder computeservice.BuilderFuncType
3635 tagsClientBuilder tagservice.BuilderFuncType
3736 featureGates featuregate.FeatureGate
38- endpointLookup util.EndpointLookupFuncType
3937}
4038
4139// ActuatorParams holds parameter information for Actuator.
@@ -45,7 +43,6 @@ type ActuatorParams struct {
4543 ComputeClientBuilder computeservice.BuilderFuncType
4644 TagsClientBuilder tagservice.BuilderFuncType
4745 FeatureGates featuregate.FeatureGate
48- EndpointLookup util.EndpointLookupFuncType
4946}
5047
5148// NewActuator returns an actuator.
@@ -56,7 +53,6 @@ func NewActuator(params ActuatorParams) *Actuator {
5653 computeClientBuilder : params .ComputeClientBuilder ,
5754 tagsClientBuilder : params .TagsClientBuilder ,
5855 featureGates : params .FeatureGates ,
59- endpointLookup : params .EndpointLookup ,
6056 }
6157}
6258
@@ -80,7 +76,6 @@ func (a *Actuator) Create(ctx context.Context, machine *machinev1.Machine) error
8076 computeClientBuilder : a .computeClientBuilder ,
8177 tagsClientBuilder : a .tagsClientBuilder ,
8278 featureGates : a .featureGates ,
83- endpointLookup : a .endpointLookup ,
8479 })
8580 if err != nil {
8681 fmtErr := fmt .Errorf (scopeFailFmt , machine .GetName (), err )
@@ -105,7 +100,6 @@ func (a *Actuator) Exists(ctx context.Context, machine *machinev1.Machine) (bool
105100 computeClientBuilder : a .computeClientBuilder ,
106101 tagsClientBuilder : a .tagsClientBuilder ,
107102 featureGates : a .featureGates ,
108- endpointLookup : a .endpointLookup ,
109103 })
110104 if err != nil {
111105 return false , fmt .Errorf (scopeFailFmt , machine .Name , err )
@@ -147,7 +141,6 @@ func (a *Actuator) Update(ctx context.Context, machine *machinev1.Machine) error
147141 computeClientBuilder : a .computeClientBuilder ,
148142 tagsClientBuilder : a .tagsClientBuilder ,
149143 featureGates : a .featureGates ,
150- endpointLookup : a .endpointLookup ,
151144 })
152145 if err != nil {
153146 fmtErr := fmt .Errorf (scopeFailFmt , machine .GetName (), err )
@@ -185,7 +178,6 @@ func (a *Actuator) Delete(ctx context.Context, machine *machinev1.Machine) error
185178 computeClientBuilder : a .computeClientBuilder ,
186179 tagsClientBuilder : a .tagsClientBuilder ,
187180 featureGates : a .featureGates ,
188- endpointLookup : a .endpointLookup ,
189181 })
190182 if err != nil {
191183 fmtErr := fmt .Errorf (scopeFailFmt , machine .GetName (), err )
0 commit comments