func (vol *VolumeResource) SetAppliedStatus(status resourcestatus.ResourceStatus) bool {
	vol.lock.Lock()
	defer vol.lock.Unlock()

	if vol.appliedStatusUnsafe != resourcestatus.ResourceStatus(VolumeStatusNone) {
		// return false to indicate the set operation failed
		return false
	}

	vol.appliedStatusUnsafe = status
	return true
}
func (vol *VolumeResource) SetAppliedStatus(status resourcestatus.ResourceStatus) bool {
	vol.lock.Lock()
	defer vol.lock.Unlock()

	if vol.appliedStatusUnsafe != resourcestatus.ResourceStatus(VolumeStatusNone) {
		
		return false
	}

	vol.appliedStatusUnsafe = status
	return true
}
func ( vol * VolumeResource ) SetAppliedStatus ( status resourcestatus . ResourceStatus ) bool { vol . lock . Lock ( ) defer vol . lock . Unlock ( ) if vol . appliedStatusUnsafe != resourcestatus . ResourceStatus ( VolumeStatusNone ) { // return false to indicate the set operation failed return false } vol . appliedStatusUnsafe = status return true }
// SetAppliedStatus sets the applied status of resource and returns whether
// the resource is already in a transition
SetAppliedStatus sets the applied status of resource and returns whether the resource is already in a transition