@@ -134,15 +134,15 @@ func (p *Plugin) NodePrepareResources(
134
134
var response * drapbv1beta1.NodePrepareResourcesResponse
135
135
switch supportedAPI {
136
136
case apiV1beta1 :
137
- nodeClient := drapbv1beta1 .NewNodeClient (conn )
137
+ nodeClient := drapbv1beta1 .NewDRAPluginClient (conn )
138
138
response , err = nodeClient .NodePrepareResources (ctx , req )
139
139
case apiV1alpha4 :
140
140
nodeClient := drapbv1alpha4 .NewNodeClient (conn )
141
141
response , err = nodeClient .NodePrepareResources (ctx , req )
142
142
default :
143
143
// Try it, fall back if necessary.
144
144
supportedAPI = apiV1beta1
145
- nodeClient := drapbv1beta1 .NewNodeClient (conn )
145
+ nodeClient := drapbv1beta1 .NewDRAPluginClient (conn )
146
146
response , err = nodeClient .NodePrepareResources (ctx , req )
147
147
if err != nil && status .Convert (err ).Code () == codes .Unimplemented {
148
148
supportedAPI = apiV1alpha4
@@ -179,15 +179,15 @@ func (p *Plugin) NodeUnprepareResources(
179
179
var response * drapbv1beta1.NodeUnprepareResourcesResponse
180
180
switch supportedAPI {
181
181
case apiV1beta1 :
182
- nodeClient := drapbv1beta1 .NewNodeClient (conn )
182
+ nodeClient := drapbv1beta1 .NewDRAPluginClient (conn )
183
183
response , err = nodeClient .NodeUnprepareResources (ctx , req )
184
184
case apiV1alpha4 :
185
185
nodeClient := drapbv1alpha4 .NewNodeClient (conn )
186
186
response , err = nodeClient .NodeUnprepareResources (ctx , req )
187
187
default :
188
188
// Try it, fall back if necessary.
189
189
supportedAPI = apiV1beta1
190
- nodeClient := drapbv1beta1 .NewNodeClient (conn )
190
+ nodeClient := drapbv1beta1 .NewDRAPluginClient (conn )
191
191
response , err = nodeClient .NodeUnprepareResources (ctx , req )
192
192
if err != nil && status .Convert (err ).Code () == codes .Unimplemented {
193
193
supportedAPI = apiV1alpha4
0 commit comments