Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for seLinuxMountContext (0.28 sec)

  1. pkg/kubelet/volumemanager/reconciler/reconstruct.go

    				SELinuxMountContext: volume.seLinuxMountContext,
    			}
    
    			_, err = rc.actualStateOfWorld.CheckAndMarkVolumeAsUncertainViaReconstruction(markVolumeOpts)
    			if err != nil {
    				klog.ErrorS(err, "Could not add pod to volume information to actual state of world", "pod", klog.KObj(volume.pod))
    				continue
    			}
    			seLinuxMountContext = volume.seLinuxMountContext
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:23:12 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. pkg/kubelet/volumemanager/reconciler/reconciler_common.go

    	for _, mountedVolume := range rc.actualStateOfWorld.GetAllMountedVolumes() {
    		if !rc.desiredStateOfWorld.PodExistsInVolume(mountedVolume.PodName, mountedVolume.VolumeName, mountedVolume.SELinuxMountContext) {
    			// Volume is mounted, unmount it
    			klog.V(5).InfoS(mountedVolume.GenerateMsgDetailed("Starting operationExecutor.UnmountVolume", ""))
    			err := rc.operationExecutor.UnmountVolume(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:23:12 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  3. pkg/volume/util/operationexecutor/operation_executor.go

    	MarkDeviceAsMounted(volumeName v1.UniqueVolumeName, devicePath, deviceMountPath, seLinuxMountContext string) error
    
    	// MarkDeviceAsUncertain marks device state in global mount path as uncertain
    	MarkDeviceAsUncertain(volumeName v1.UniqueVolumeName, devicePath, deviceMountPath, seLinuxMountContext string) error
    
    	// Marks the specified volume as having its global mount unmounted.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/cache/desired_state_of_world.go

    	// volumes that should be attached to this node.
    	// If a pod with the same unique name does not exist under the specified
    	// volume, false is returned.
    	VolumeExists(volumeName v1.UniqueVolumeName, seLinuxMountContext string) bool
    
    	// PodExistsInVolume returns true if the given pod exists in the list of
    	// podsToMount for the given volume in the cache.
    	// If a pod with the same unique name does not exist under the specified
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  5. pkg/kubelet/volumemanager/cache/actual_state_of_world_test.go

    		if volume.VolumeName == expectedVolumeName {
    			if volume.SELinuxMountContext == expectedSELinuxContext {
    				return
    			}
    			t.Errorf(
    				"Volume %q has wrong SELinux context. Expected %q, got %q",
    				expectedVolumeName,
    				expectedSELinuxContext,
    				volume.SELinuxMountContext)
    		}
    	}
    
    	t.Fatalf(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  6. pkg/volume/csi/csi_mounter_test.go

    		volDataKey.nodeName:            nodeName,
    		volDataKey.attachmentID:        getAttachmentName(volumeID, driverName, nodeName),
    		volDataKey.volumeLifecycleMode: lifecycleMode,
    		volDataKey.seLinuxMountContext: seLinuxMountContext,
    	}
    	if err := os.MkdirAll(mountPath, 0755); err != nil {
    		return fmt.Errorf("failed to create dir for volume info file: %s", err)
    	}
    	if err := saveVolumeData(mountPath, volDataFileName, volData); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  7. pkg/volume/csi/csi_plugin.go

    	var ret volume.ReconstructedVolume
    	if utilfeature.DefaultFeatureGate.Enabled(features.SELinuxMountReadWriteOncePod) {
    		ret.SELinuxMountContext = volData[volDataKey.seLinuxMountContext]
    	}
    
    	// If mode is VolumeLifecycleEphemeral, use constructVolSourceSpec
    	// to construct volume source spec. If mode is VolumeLifecyclePersistent,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  8. pkg/volume/fc/fc.go

    		fcVolume.VolumeSource.FC.TargetWWNs, *fcVolume.VolumeSource.FC.Lun, fcVolume.VolumeSource.FC.WWIDs)
    	return volume.ReconstructedVolume{
    		Spec:                volume.NewSpecFromVolume(fcVolume),
    		SELinuxMountContext: mountContext,
    	}, nil
    }
    
    // ConstructBlockVolumeSpec creates a new volume.Spec with following steps.
    //   - Searches a file whose name is {pod uuid} under volume plugin directory.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  9. pkg/volume/csi/csi_plugin_test.go

    			}
    
    			if rec.Spec.Name() != tc.specVolID {
    				t.Errorf("Unexpected spec name constructed %s", rec.Spec.Name())
    			}
    
    			if rec.SELinuxMountContext != tc.expectedSELinuxContext {
    				t.Errorf("Expected SELinux context %q, got %q", tc.expectedSELinuxContext, rec.SELinuxMountContext)
    			}
    		})
    	}
    }
    
    func TestPluginConstructVolumeSpecWithInline(t *testing.T) {
    	testCases := []struct {
    		name       string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  10. pkg/volume/util/operationexecutor/operation_generator.go

    			OuterVolumeSpecName: volumeToMount.OuterVolumeSpecName,
    			VolumeGidVolume:     volumeToMount.VolumeGidValue,
    			VolumeSpec:          volumeToMount.VolumeSpec,
    			VolumeMountState:    VolumeMounted,
    			SELinuxMountContext: volumeToMount.SELinuxLabel,
    		}
    		if mountErr != nil {
    			og.checkForFailedMount(volumeToMount, mountErr)
    			og.markVolumeErrorState(volumeToMount, markOpts, mountErr, actualStateOfWorld)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
Back to top