Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 220 for FlexVolume (0.18 sec)

  1. pkg/volume/flexvolume/util.go

    	if spec.Volume != nil && spec.Volume.FlexVolume != nil {
    		return spec.Volume.FlexVolume.Driver, nil
    	}
    	if spec.PersistentVolume != nil && spec.PersistentVolume.Spec.FlexVolume != nil {
    		return spec.PersistentVolume.Spec.FlexVolume.Driver, nil
    	}
    	return "", errNotFlexVolume
    }
    
    func getFSType(spec *volume.Spec) (string, error) {
    	if spec.Volume != nil && spec.Volume.FlexVolume != nil {
    		return spec.Volume.FlexVolume.FSType, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 14 13:58:56 UTC 2021
    - 4.8K bytes
    - Viewed (0)
  2. cluster/gce/gci/flexvolume_node_setup.sh

    # limitations under the License.
    
    # Sets up FlexVolume drivers on GCE COS instances using mounting utilities packaged in a Google
    # Container Registry image.
    # The user-provided FlexVolume driver(s) must be under /flexvolume of the image filesystem.
    # For example, the driver k8s/nfs must be located at /flexvolume/k8s~nfs/nfs .
    #
    # This script should be used on a clean instance, with no FlexVolume installed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 13 17:58:51 UTC 2020
    - 5.8K bytes
    - Viewed (0)
  3. pkg/volume/flexvolume/plugin.go

    	flexVolume := &api.Volume{
    		Name: volumeName,
    		VolumeSource: api.VolumeSource{
    			FlexVolume: &api.FlexVolumeSource{
    				Driver: plugin.driverName,
    			},
    		},
    	}
    	return volume.ReconstructedVolume{
    		Spec: volume.NewSpecFromVolume(flexVolume),
    	}, nil
    }
    
    func (plugin *flexVolumePlugin) SupportsMountOption() bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  4. pkg/volume/flexvolume/probe.go

    			klog.Errorf("Flexvolume prober watch: %s", err)
    		}
    	}, func(err error) {
    		klog.Errorf("Received an error from watcher: %s", err)
    	})
    	if err != nil {
    		return fmt.Errorf("error initializing watcher: %s", err)
    	}
    
    	if err := prober.addWatchRecursive(prober.pluginDir); err != nil {
    		return fmt.Errorf("error adding watch on Flexvolume directory: %s", err)
    	}
    
    	prober.watcher.Run()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 28 11:14:00 UTC 2023
    - 9K bytes
    - Viewed (0)
  5. pkg/api/v1/persistentvolume/util.go

    			return false
    		}
    	case source.FlexVolume != nil:
    		if source.FlexVolume.SecretRef != nil {
    			// previously persisted PV objects use claimRef namespace
    			ns := getClaimRefNamespace(pv)
    			if len(source.FlexVolume.SecretRef.Namespace) > 0 {
    				// use the secret namespace if namespace is set
    				ns = source.FlexVolume.SecretRef.Namespace
    			}
    			if !visitor(ns, source.FlexVolume.SecretRef.Name, true /* kubeletVisible */) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 05 03:36:23 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  6. pkg/volume/flexvolume/volume.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package flexvolume
    
    import (
    	"k8s.io/mount-utils"
    	utilstrings "k8s.io/utils/strings"
    
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/kubernetes/pkg/volume"
    )
    
    type flexVolume struct {
    	// driverName is the name of the plugin driverName.
    	driverName string
    	// Driver executable used to setup the volume.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 17 04:51:24 UTC 2020
    - 1.6K bytes
    - Viewed (0)
  7. pkg/volume/flexvolume/unmounter.go

    limitations under the License.
    */
    
    package flexvolume
    
    import (
    	"fmt"
    	"os"
    
    	"k8s.io/klog/v2"
    	"k8s.io/mount-utils"
    	"k8s.io/utils/exec"
    
    	"k8s.io/kubernetes/pkg/volume"
    )
    
    // FlexVolumeUnmounter is the disk that will be cleaned by this plugin.
    type flexVolumeUnmounter struct {
    	*flexVolume
    	// Runner used to teardown the volume.
    	runner exec.Interface
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 14 13:58:56 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  8. pkg/volume/flexvolume/plugin-defaults.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package flexvolume
    
    import (
    	"k8s.io/klog/v2"
    
    	"k8s.io/kubernetes/pkg/volume"
    )
    
    type pluginDefaults flexVolumePlugin
    
    func logPrefix(plugin *flexVolumePlugin) string {
    	return "flexVolume driver " + plugin.driverName + ": "
    }
    
    func (plugin *pluginDefaults) GetVolumeName(spec *volume.Spec) (string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 13 13:42:07 UTC 2021
    - 1021 bytes
    - Viewed (0)
  9. pkg/volume/flexvolume/probe_test.go

    limitations under the License.
    */
    
    package flexvolume
    
    import (
    	"fmt"
    	"path/filepath"
    	goruntime "runtime"
    	"strings"
    	"testing"
    
    	"github.com/fsnotify/fsnotify"
    	"github.com/stretchr/testify/assert"
    	utilfs "k8s.io/kubernetes/pkg/util/filesystem"
    	"k8s.io/kubernetes/pkg/volume"
    	"k8s.io/utils/exec"
    )
    
    const (
    	pluginDir       = "/flexvolume"
    	driverName      = "fake-driver"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 28 11:14:00 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  10. pkg/volume/flexvolume/mounter-defaults.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package flexvolume
    
    import (
    	"k8s.io/klog/v2"
    
    	"k8s.io/kubernetes/pkg/volume"
    )
    
    type mounterDefaults flexVolumeMounter
    
    // SetUpAt is part of the volume.Mounter interface.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 24 15:56:30 UTC 2022
    - 1.5K bytes
    - Viewed (0)
Back to top