func (i *InstancesController) InstanceExistsByProviderID(_ context.Context, providerID string) (bool, error) {
	klog.Infof("InstanceExistsByProviderID: providerID %q", providerID)
	machine, err := metal.GetMachineFromProviderID(i.client, providerID)
	if err != nil {
		return false, err
	}

	return machine.Allocation != nil, nil
}
// InstanceExistsByProviderID returns true if the instance for the given provider exists.
// If false is returned with no error, the instance will be immediately deleted by the cloud controller manager.
// This method should still return true for machines that exist but are stopped/sleeping.
InstanceExistsByProviderID returns true if the instance for the given provider exists.
If false is returned with no error, the instance will be immediately deleted by the cloud controller manager.
This method should still return true for machines that exist but are stopped/sleeping.
// InstanceExistsByProviderID returns true if the instance for the given provider exists . // If false is returned with no error the instance will be immediately deleted by the cloud controller manager . // This method should still return true for machines that exist but are stopped / sleeping .
func (i *InstancesController) InstanceExistsByProviderID(_ context.Context, providerID string) (bool, error) {
	klog.Infof("InstanceExistsByProviderID: providerID %q", providerID)
	machine, err := metal.GetMachineFromProviderID(i.client, providerID)
	if err != nil {
		return false, err
	}
	return machine.Allocation != nil, nil
}
func ( i * InstancesController ) InstanceExistsByProviderID ( _ context . Context , providerID string ) ( bool , error ) { klog . Infof ( " " , providerID ) machine , err := metal . GetMachineFromProviderID ( i . client , providerID ) if err != nil { return false , err } return machine . Allocation != nil , nil }
InstanceExistsByProviderID returns true if the instance for the given provider exists.
InstanceExistsByProviderID returns true if the instance for the given provider exists .