Skip to content

Commit

Permalink
Filters terminated Vms in getInstance
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Dufour <[email protected]>
  • Loading branch information
outscale-mdr committed Jul 8, 2024
1 parent f650a39 commit e2de5c9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cloud-controller-manager/osc/instances_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ func (i *instancesV2) getInstance(ctx context.Context, node *v1.Node) (*osc.Vm,
request = &osc.ReadVmsRequest{
Filters: &osc.FiltersVm{
VmIds: &[]string{instanceID},
VmStateNames: &[]string{
"pending",
"running",
"stopping",
"stopped",
"shutting-down",
},
},
}
klog.V(4).Infof("looking for node by provider ID %v", node.Spec.ProviderID)
Expand Down

0 comments on commit e2de5c9

Please sign in to comment.