Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 247 for fsGroup (0.17 sec)

  1. releasenotes/notes/drop-legacy-fsgroup-injection.yaml

    John Howard <******@****.***> 1682631570 -0700
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 27 21:39:30 UTC 2023
    - 227 bytes
    - Viewed (0)
  2. pkg/volume/volume_linux.go

    )
    
    // SetVolumeOwnership modifies the given volume to be owned by
    // fsGroup, and sets SetGid so that newly created files are owned by
    // fsGroup. If fsGroup is nil nothing is done.
    func SetVolumeOwnership(mounter Mounter, dir string, fsGroup *int64, fsGroupChangePolicy *v1.PodFSGroupChangePolicy, completeFunc func(types.CompleteFuncParam)) error {
    	if fsGroup == nil {
    		return nil
    	}
    
    	timer := time.AfterFunc(30*time.Second, func() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_mounter_test.go

    			fsType:   "",
    		},
    		{
    			name: "default fstype  with fsgroup (should not apply fsgroup)",
    			accessModes: []corev1.PersistentVolumeAccessMode{
    				corev1.ReadWriteOnce,
    			},
    			readOnly:   false,
    			fsType:     "",
    			setFsGroup: true,
    			fsGroup:    3000,
    		},
    		{
    			name: "fstype, fsgroup, RWM, ROM provided (should not apply fsgroup)",
    			accessModes: []corev1.PersistentVolumeAccessMode{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  4. pkg/volume/volume_linux_test.go

    	fsGroup := int64(3000)
    	currentUid := os.Geteuid()
    	if currentUid != 0 {
    		t.Skip("running as non-root")
    	}
    	currentGid := os.Getgid()
    
    	tests := []struct {
    		description string
    		fsGroup     *int64
    		setupFunc   func(path string) error
    		assertFunc  func(path string) error
    	}{
    		{
    			description: "fsGroup=nil",
    			fsGroup:     nil,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  5. pkg/volume/flexvolume/mounter.go

    		os.Remove(dir)
    		return err
    	}
    
    	// Implicit parameters
    	if mounterArgs.FsGroup != nil {
    		extraOptions[optionFSGroup] = strconv.FormatInt(int64(*mounterArgs.FsGroup), 10)
    	}
    
    	call.AppendSpec(f.spec, f.plugin.host, extraOptions)
    
    	_, err = call.Run()
    	if isCmdNotSupportedErr(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. pkg/volume/csi/csi_mounter.go

    	}
    
    	if driverSupportsCSIVolumeMountGroup {
    		klog.V(3).Infof("Driver %s supports applying FSGroup (has VOLUME_MOUNT_GROUP node capability). Delegating FSGroup application to the driver through NodePublishVolume.", c.driverName)
    		nodePublishFSGroupArg = mounterArgs.FsGroup
    	}
    
    	var selinuxLabelMount bool
    	if utilfeature.DefaultFeatureGate.Enabled(features.SELinuxMountReadWriteOncePod) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 30 10:47:59 UTC 2024
    - 21K bytes
    - Viewed (0)
  7. staging/src/k8s.io/client-go/applyconfigurations/core/v1/podsecuritycontext.go

    	return b
    }
    
    // WithFSGroup sets the FSGroup field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    // If called multiple times, the FSGroup field is set to the value of the last call.
    func (b *PodSecurityContextApplyConfiguration) WithFSGroup(value int64) *PodSecurityContextApplyConfiguration {
    	b.FSGroup = &value
    	return b
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. pkg/volume/csi/csi_client_test.go

    		}
    	} else {
    		mountVolume := &csipbv1.VolumeCapability_MountVolume{
    			FsType:     fsType,
    			MountFlags: mountOptions,
    		}
    		if fsGroup != nil {
    			mountVolume.VolumeMountGroup = strconv.FormatInt(*fsGroup, 10 /* base */)
    		}
    		req.VolumeCapability.AccessType = &csipbv1.VolumeCapability_Mount{
    			Mount: mountVolume,
    		}
    	}
    
    	_, err := c.nodeClient.NodePublishVolume(ctx, req)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  9. pkg/volume/csi/csi_client.go

    		nodeID string,
    		maxVolumePerNode int64,
    		accessibleTopology map[string]string,
    		err error)
    
    	// The caller is responsible for checking whether the driver supports
    	// applying FSGroup by calling NodeSupportsVolumeMountGroup().
    	// If the driver does not, fsGroup must be set to nil.
    	NodePublishVolume(
    		ctx context.Context,
    		volumeid string,
    		readOnly bool,
    		stagingTargetPath string,
    		targetPath string,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 20 10:15:36 UTC 2022
    - 22.1K bytes
    - Viewed (0)
  10. pkg/securitycontext/accessors_test.go

    	api "k8s.io/kubernetes/pkg/apis/core"
    	"k8s.io/utils/pointer"
    )
    
    func TestPodSecurityContextAccessor(t *testing.T) {
    	fsGroup := int64(2)
    	runAsUser := int64(1)
    	runAsGroup := int64(1)
    	runAsNonRoot := true
    
    	testcases := []*api.PodSecurityContext{
    		nil,
    		{},
    		{FSGroup: &fsGroup},
    		{HostIPC: true},
    		{HostNetwork: true},
    		{HostPID: true},
    		{RunAsNonRoot: &runAsNonRoot},
    		{RunAsUser: &runAsUser},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 22 16:15:27 UTC 2023
    - 27.8K bytes
    - Viewed (0)
Back to top