- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for ReadWriteOncePod (0.32 sec)
-
pkg/scheduler/framework/plugins/volumerestrictions/volume_restrictions.go
ErrReasonReadWriteOncePodConflict = "node has pod using PersistentVolumeClaim with the same name and ReadWriteOncePod access mode" ) // preFilterState computed at PreFilter and used at Filter. type preFilterState struct { // Names of the pod's volumes using the ReadWriteOncePod access mode. readWriteOncePodPVCs sets.Set[string]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 20 17:40:39 UTC 2023 - 12.5K bytes - Viewed (1) -
pkg/kubelet/volumemanager/cache/desired_state_of_world_test.go
PersistentVolume: &v1.PersistentVolume{ ObjectMeta: metav1.ObjectMeta{ Name: "basicPV", }, Spec: v1.PersistentVolumeSpec{ AccessModes: []v1.PersistentVolumeAccessMode{v1.ReadWriteOncePod}, }, }, } podName := util.GetUniquePodName(pod) seLinuxContainerContexts := []*v1.SELinuxOptions{&seLinux} // Act generatedVolumeName, err := dsw.AddPodToVolume(
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 34K bytes - Viewed (0) -
pkg/apis/core/helper/helpers_test.go
} if !ContainsAccessMode(modes, core.ReadWriteMany) { t.Errorf("Expected mode %s, but got %+v", core.ReadWriteMany, modes) } if !ContainsAccessMode(modes, core.ReadWriteOncePod) { t.Errorf("Expected mode %s, but got %+v", core.ReadWriteOncePod, modes) } } func TestRemoveDuplicateAccessModes(t *testing.T) { modes := []core.PersistentVolumeAccessMode{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 28 07:31:28 UTC 2023 - 9.2K bytes - Viewed (0) -
pkg/apis/core/v1/helper/helpers.go
if ContainsAccessMode(modes, v1.ReadOnlyMany) { modesStr = append(modesStr, "ROX") } if ContainsAccessMode(modes, v1.ReadWriteMany) { modesStr = append(modesStr, "RWX") } if ContainsAccessMode(modes, v1.ReadWriteOncePod) { modesStr = append(modesStr, "RWOP") } return strings.Join(modesStr, ",") } // GetAccessModesFromString returns an array of AccessModes from a string created by GetAccessModesAsString
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 23:03:54 UTC 2024 - 11.4K bytes - Viewed (0) -
pkg/volume/csi/csi_client_test.go
expectedMappedAccessMode: csipbv1.VolumeCapability_AccessMode_MULTI_NODE_MULTI_WRITER, }, { name: "with ReadWriteOncePod and incapable driver", singleNodeMultiWriterSet: false, accessMode: api.ReadWriteOncePod, expectedMappedAccessMode: csipbv1.VolumeCapability_AccessMode_SINGLE_NODE_WRITER, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 33.9K bytes - Viewed (0) -
pkg/kubelet/volumemanager/populator/desired_state_of_world_populator_test.go
newContainerSELinuxOpts: fullOpts, pluginSupportsSELinux: true, expectedContext: "system_u:object_r:container_file_t:s0:c1,c2", }, { name: "RWOP with plugin with SELinux with partial context in pod", accessModes: []v1.PersistentVolumeAccessMode{v1.ReadWriteOncePod}, newContainerSELinuxOpts: partialOpts,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 51.4K bytes - Viewed (0) -
pkg/apis/core/v1/helper/helpers_test.go
} if !ContainsAccessMode(modes, v1.ReadWriteMany) { t.Errorf("Expected mode %s, but got %+v", v1.ReadWriteMany, modes) } if !ContainsAccessMode(modes, v1.ReadWriteOncePod) { t.Errorf("Expected mode %s, but got %+v", v1.ReadWriteOncePod, modes) } } func TestRemoveDuplicateAccessModes(t *testing.T) { modes := []v1.PersistentVolumeAccessMode{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 23:03:54 UTC 2024 - 16.9K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumerestrictions/volume_restrictions_test.go
AccessModes: []v1.PersistentVolumeAccessMode{v1.ReadWriteOncePod}, }, } readWriteOncePodPVC2 := &v1.PersistentVolumeClaim{ ObjectMeta: metav1.ObjectMeta{ Namespace: "default", Name: "claim-with-rwop-2", }, Spec: v1.PersistentVolumeClaimSpec{ AccessModes: []v1.PersistentVolumeAccessMode{v1.ReadWriteOncePod}, }, } readWriteManyPVC := &v1.PersistentVolumeClaim{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 20 17:40:39 UTC 2023 - 17.3K bytes - Viewed (0) -
pkg/apis/core/helper/helpers.go
modesStr = append(modesStr, "ROX") } if ContainsAccessMode(modes, core.ReadWriteMany) { modesStr = append(modesStr, "RWX") } if ContainsAccessMode(modes, core.ReadWriteOncePod) { modesStr = append(modesStr, "RWOP") } return strings.Join(modesStr, ",") } // GetAccessModesFromString returns an array of AccessModes from a string created by GetAccessModesAsString
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 28 07:31:28 UTC 2023 - 16.1K bytes - Viewed (0) -
pkg/volume/util/selinux.go
if utilfeature.DefaultFeatureGate.Enabled(features.SELinuxMount) { return true } // Only SELinuxMountReadWriteOncePod feature enabled if !v1helper.ContainsAccessMode(volumeSpec.PersistentVolume.Spec.AccessModes, v1.ReadWriteOncePod) { return false } return true } // AddSELinuxMountOption adds -o context="XYZ" mount option to a given list func AddSELinuxMountOption(options []string, seLinuxContext string) []string {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 20 14:40:21 UTC 2024 - 6.3K bytes - Viewed (0)