Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for ExpandVolumeDevice (0.35 sec)

  1. pkg/volume/flexvolume/expander.go

    limitations under the License.
    */
    
    package flexvolume
    
    import (
    	"fmt"
    	"strconv"
    
    	"k8s.io/apimachinery/pkg/api/resource"
    	"k8s.io/kubernetes/pkg/volume"
    )
    
    func (plugin *flexVolumePlugin) ExpandVolumeDevice(spec *volume.Spec, newSize resource.Quantity, oldSize resource.Quantity) (resource.Quantity, error) {
    	call := plugin.NewDriverCall(expandVolumeCmd)
    	call.AppendSpec(spec, plugin.host, nil)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 14:21:44 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  2. pkg/volume/noop_expandable_plugin.go

    )
    
    type noopExpandableVolumePluginInstance struct {
    	spec *Spec
    }
    
    var _ ExpandableVolumePlugin = &noopExpandableVolumePluginInstance{}
    
    func (n *noopExpandableVolumePluginInstance) ExpandVolumeDevice(spec *Spec, newSize resource.Quantity, oldSize resource.Quantity) (resource.Quantity, error) {
    	return newSize, nil
    }
    
    func (n *noopExpandableVolumePluginInstance) Init(host VolumeHost) error {
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. pkg/volume/flexvolume/expander-defaults.go

    )
    
    type expanderDefaults struct {
    	plugin *flexVolumePlugin
    }
    
    func newExpanderDefaults(plugin *flexVolumePlugin) *expanderDefaults {
    	return &expanderDefaults{plugin}
    }
    
    func (e *expanderDefaults) ExpandVolumeDevice(spec *volume.Spec, newSize resource.Quantity, oldSize resource.Quantity) (resource.Quantity, error) {
    	klog.Warning(logPrefix(e.plugin), "using default expand for volume ", spec.Name(), ", to size ", newSize, " from ", oldSize)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 16 11:54:27 UTC 2020
    - 2K bytes
    - Viewed (0)
  4. pkg/volume/portworx/portworx.go

    			plugin:  plugin,
    		},
    		options: options,
    	}, nil
    }
    
    func (plugin *portworxVolumePlugin) RequiresFSResize() bool {
    	return false
    }
    
    func (plugin *portworxVolumePlugin) ExpandVolumeDevice(
    	spec *volume.Spec,
    	newSize resource.Quantity,
    	oldSize resource.Quantity) (resource.Quantity, error) {
    	klog.V(4).Infof("Expanding: %s from %v to %v", spec.Name(), oldSize, newSize)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  5. pkg/volume/plugins.go

    }
    
    // ExpandableVolumePlugin is an extended interface of VolumePlugin and is used for volumes that can be
    // expanded via control-plane ExpandVolumeDevice call.
    type ExpandableVolumePlugin interface {
    	VolumePlugin
    	ExpandVolumeDevice(spec *Spec, newSize resource.Quantity, oldSize resource.Quantity) (resource.Quantity, error)
    	RequiresFSResize() bool
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  6. pkg/volume/util/operationexecutor/operation_generator.go

    		statusSize := pvc.Status.Capacity[v1.ResourceStorage]
    		pvSize := pv.Spec.Capacity[v1.ResourceStorage]
    		if pvSize.Cmp(newSize) < 0 {
    			updatedSize, expandErr := volumePlugin.ExpandVolumeDevice(
    				volumeSpec,
    				newSize,
    				statusSize)
    			if expandErr != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
  7. pkg/volume/testing/testing.go

    	}, nil
    }
    
    func (plugin *FakeVolumePlugin) GetDeviceMountRefs(deviceMountPath string) ([]string, error) {
    	return []string{}, nil
    }
    
    // Expandable volume support
    func (plugin *FakeVolumePlugin) ExpandVolumeDevice(spec *volume.Spec, newSize resource.Quantity, oldSize resource.Quantity) (resource.Quantity, error) {
    	return resource.Quantity{}, nil
    }
    
    func (plugin *FakeVolumePlugin) RequiresFSResize() bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
Back to top