func (i *InstancesController) InstanceShutdown(ctx context.Context, node *v1.Node) (bool, error) {
	klog.Infof("InstanceShutdown: node %q", node.GetName())
	machine, err := metal.GetMachineFromNode(i.client, types.NodeName(node.Name))
	if err != nil || machine.Allocation == nil {
		return true, err
	}
	return false, nil
}
// InstanceShutdown returns true if the instance is shutdown according to the cloud provider.
// Use the node.name or node.spec.providerID field to find the node in the cloud provider.
InstanceShutdown returns true if the instance is shutdown according to the cloud provider.
Use the node.name or node.spec.providerID field to find the node in the cloud provider.
// InstanceShutdown returns true if the instance is shutdown according to the cloud provider . // Use the node . name or node . spec . providerID field to find the node in the cloud provider .
func (i *InstancesController) InstanceShutdown(ctx context.Context, node *v1.Node) (bool, error) {
	klog.Infof("InstanceShutdown: node %q", node.GetName())
	machine, err := metal.GetMachineFromNode(i.client, types.NodeName(node.Name))
	if err != nil || machine.Allocation == nil {
		return true, err
	}
	return false, nil
}
func ( i * InstancesController ) InstanceShutdown ( ctx context . Context , node * v1 . Node ) ( bool , error ) { klog . Infof ( " " , node . GetName ( ) ) machine , err := metal . GetMachineFromNode ( i . client , types . NodeName ( node . Name ) ) if err != nil || machine . Allocation == nil { return true , err } return false , nil }
InstanceShutdown returns true if the instance is shutdown according to the cloud provider.
InstanceShutdown returns true if the instance is shutdown according to the cloud provider .