@@ -40,8 +40,8 @@ const (
40
40
// not active means the instance is under deleting from Azure VMSS.
41
41
vmssVMNotActiveErrorMessage = "not an active Virtual Machine Scale Set VM instanceId"
42
42
43
- // operationCancledErrorMessage means the operation is canceled by another new operation.
44
- operationCancledErrorMessage = "canceledandsupersededduetoanotheroperation"
43
+ // operationCanceledErrorMessage means the operation is canceled by another new operation.
44
+ operationCanceledErrorMessage = "canceledandsupersededduetoanotheroperation"
45
45
)
46
46
47
47
// RequestBackoff if backoff is disabled in cloud provider it
@@ -166,8 +166,8 @@ func (az *Cloud) CreateOrUpdateSecurityGroup(service *v1.Service, sg network.Sec
166
166
}
167
167
168
168
// Invalidate the cache because another new operation has canceled the current request.
169
- if strings .Contains (strings .ToLower (rerr .Error ().Error ()), operationCancledErrorMessage ) {
170
- klog .V (3 ).Infof ("SecurityGroup cache for %s is cleanup because CreateOrUpdateSecurityGroup is canceld by another operation" , * sg .Name )
169
+ if strings .Contains (strings .ToLower (rerr .Error ().Error ()), operationCanceledErrorMessage ) {
170
+ klog .V (3 ).Infof ("SecurityGroup cache for %s is cleanup because CreateOrUpdateSecurityGroup is canceled by another operation" , * sg .Name )
171
171
az .nsgCache .Delete (* sg .Name )
172
172
}
173
173
@@ -194,7 +194,7 @@ func (az *Cloud) CreateOrUpdateLB(service *v1.Service, lb network.LoadBalancer)
194
194
az .lbCache .Delete (* lb .Name )
195
195
}
196
196
// Invalidate the cache because another new operation has canceled the current request.
197
- if strings .Contains (strings .ToLower (rerr .Error ().Error ()), operationCancledErrorMessage ) {
197
+ if strings .Contains (strings .ToLower (rerr .Error ().Error ()), operationCanceledErrorMessage ) {
198
198
klog .V (3 ).Infof ("LoadBalancer cache for %s is cleanup because CreateOrUpdate is canceled by another operation" , * lb .Name )
199
199
az .lbCache .Delete (* lb .Name )
200
200
}
@@ -317,7 +317,7 @@ func (az *Cloud) CreateOrUpdateRouteTable(routeTable network.RouteTable) error {
317
317
az .rtCache .Delete (* routeTable .Name )
318
318
}
319
319
// Invalidate the cache because another new operation has canceled the current request.
320
- if strings .Contains (strings .ToLower (rerr .Error ().Error ()), operationCancledErrorMessage ) {
320
+ if strings .Contains (strings .ToLower (rerr .Error ().Error ()), operationCanceledErrorMessage ) {
321
321
klog .V (3 ).Infof ("Route table cache for %s is cleanup because CreateOrUpdateRouteTable is canceld by another operation" , * routeTable .Name )
322
322
az .rtCache .Delete (* routeTable .Name )
323
323
}
@@ -342,7 +342,7 @@ func (az *Cloud) CreateOrUpdateRoute(route network.Route) error {
342
342
az .rtCache .Delete (az .RouteTableName )
343
343
}
344
344
// Invalidate the cache because another new operation has canceled the current request.
345
- if strings .Contains (strings .ToLower (rerr .Error ().Error ()), operationCancledErrorMessage ) {
345
+ if strings .Contains (strings .ToLower (rerr .Error ().Error ()), operationCanceledErrorMessage ) {
346
346
klog .V (3 ).Infof ("Route cache for %s is cleanup because CreateOrUpdateRouteTable is canceld by another operation" , * route .Name )
347
347
az .rtCache .Delete (az .RouteTableName )
348
348
}
0 commit comments