Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for FileFSGroupPolicy (0.56 sec)

  1. pkg/registry/storage/csidriver/strategy_test.go

    	}
    	enabled := true
    	disabled := false
    	gcp := "gcp"
    	noneFsGroupPolicy := storage.NoneFSGroupPolicy
    	readWriteOnceWithFSTypeFSGroupPolicy := storage.ReadWriteOnceWithFSTypeFSGroupPolicy
    	fileFSGroupPolicy := storage.FileFSGroupPolicy
    	driverWithPodInfoOnMountEnabled := &storage.CSIDriver{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: "foo",
    		},
    		Spec: storage.CSIDriverSpec{
    			PodInfoOnMount: &enabled,
    		},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_mounter_test.go

    		args   args
    		want   bool
    	}{
    		{
    			name: "empty all",
    			args: args{},
    			want: false,
    		},
    		{
    			name: "driverPolicy is FileFSGroupPolicy",
    			args: args{
    				fsGroup:      new(int64),
    				driverPolicy: storage.FileFSGroupPolicy,
    			},
    			want: true,
    		},
    		{
    			name: "driverPolicy is ReadWriteOnceWithFSTypeFSGroupPolicy",
    			args: args{
    				fsGroup:      new(int64),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  3. pkg/apis/storage/validation/validation_test.go

    			new.Spec.PodInfoOnMount = &podInfoOnMount
    		},
    	}, {
    		name: "change FSGroupPolicy",
    		modify: func(new *storage.CSIDriver) {
    			fileFSGroupPolicy := storage.FileFSGroupPolicy
    			new.Spec.FSGroupPolicy = &fileFSGroupPolicy
    		},
    	}}
    	for _, test := range successCases {
    		t.Run(test.name, func(t *testing.T) {
    			new := old.DeepCopy()
    			test.modify(new)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 69.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/storage/v1beta1/types.go

    	// This is the default behavior if no other FSGroupPolicy is defined.
    	ReadWriteOnceWithFSTypeFSGroupPolicy FSGroupPolicy = "ReadWriteOnceWithFSType"
    
    	// FileFSGroupPolicy indicates that CSI driver supports volume ownership
    	// and permission change via fsGroup, and Kubernetes will change the permissions
    	// and ownership of every file in the volume to match the user requested fsGroup in
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:32 UTC 2023
    - 33.1K bytes
    - Viewed (0)
  5. pkg/apis/storage/types.go

    	// This is the default behavior if no other FSGroupPolicy is defined.
    	ReadWriteOnceWithFSTypeFSGroupPolicy FSGroupPolicy = "ReadWriteOnceWithFSType"
    
    	// FileFSGroupPolicy indicates that CSI driver supports volume ownership
    	// and permission change via fsGroup, and Kubernetes will change the permissions
    	// and ownership of every file in the volume to match the user requested fsGroup in
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 13 20:24:57 UTC 2023
    - 29.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/storage/v1/types.go

    	// This is the default behavior if no other FSGroupPolicy is defined.
    	ReadWriteOnceWithFSTypeFSGroupPolicy FSGroupPolicy = "ReadWriteOnceWithFSType"
    
    	// FileFSGroupPolicy indicates that CSI driver supports volume ownership
    	// and permission change via fsGroup, and Kubernetes will change the permissions
    	// and ownership of every file in the volume to match the user requested fsGroup in
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 32K bytes
    - Viewed (0)
  7. pkg/volume/csi/csi_mounter.go

    	if fsGroup == nil || driverPolicy == storage.NoneFSGroupPolicy || c.readOnly {
    		return false
    	}
    
    	if driverPolicy == storage.FileFSGroupPolicy {
    		return true
    	}
    
    	if fsType == "" {
    		klog.V(4).Info(log("mounter.SetupAt WARNING: skipping fsGroup, fsType not provided"))
    		return false
    	}
    
    	if c.spec.PersistentVolume != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 30 10:47:59 UTC 2024
    - 21K bytes
    - Viewed (1)
  8. pkg/apis/storage/validation/validation.go

    		allErrs = append(allErrs, field.Required(fldPath, ""))
    	}
    
    	return allErrs
    }
    
    var supportedFSGroupPolicy = sets.NewString(string(storage.ReadWriteOnceWithFSTypeFSGroupPolicy), string(storage.FileFSGroupPolicy), string(storage.NoneFSGroupPolicy))
    
    // validateFSGroupPolicy tests if FSGroupPolicy contains an appropriate value.
    func validateFSGroupPolicy(fsGroupPolicy *storage.FSGroupPolicy, fldPath *field.Path) field.ErrorList {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 00:47:13 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top