Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for volumeLifecycleModes (0.35 sec)

  1. staging/src/k8s.io/api/testdata/v1.29.0/storage.k8s.io.v1beta1.CSIDriver.yaml

      fsGroupPolicy: fsGroupPolicyValue
      podInfoOnMount: true
      requiresRepublish: true
      seLinuxMount: true
      storageCapacity: true
      tokenRequests:
      - audience: audienceValue
        expirationSeconds: 2
      volumeLifecycleModes:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 04:12:07 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. pkg/apis/storage/validation/validation.go

    	allErrs = append(allErrs, apimachineryvalidation.ValidateImmutableField(new.Spec.VolumeLifecycleModes, old.Spec.VolumeLifecycleModes, field.NewPath("spec", "volumeLifecycleModes"))...)
    
    	return allErrs
    }
    
    // ValidateCSIDriverSpec tests that the specified CSIDriverSpec
    // has valid data.
    func validateCSIDriverSpec(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 00:47:13 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  3. pkg/apis/storage/validation/validation_test.go

    	}, {
    		name: "invalid volume lifecycle mode",
    		modify: func(new *storage.CSIDriver) {
    			new.Spec.VolumeLifecycleModes = []storage.VolumeLifecycleMode{
    				"no-such-mode",
    			}
    		},
    	}, {
    		name: "volume lifecycle modes not set",
    		modify: func(new *storage.CSIDriver) {
    			new.Spec.VolumeLifecycleModes = nil
    		},
    	}, {
    		name: "VolumeLifecyclePersistent removed",
    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

    	// more modes may be added in the future.
    	//
    	// This field is immutable.
    	//
    	// +optional
    	// +listType=atomic
    	VolumeLifecycleModes []VolumeLifecycleMode `json:"volumeLifecycleModes,omitempty" protobuf:"bytes,3,opt,name=volumeLifecycleModes"`
    
    	// storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage
    	// capacity that the driver deployment will report by creating
    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/zz_generated.deepcopy.go

    		**out = **in
    	}
    	if in.PodInfoOnMount != nil {
    		in, out := &in.PodInfoOnMount, &out.PodInfoOnMount
    		*out = new(bool)
    		**out = **in
    	}
    	if in.VolumeLifecycleModes != nil {
    		in, out := &in.VolumeLifecycleModes, &out.VolumeLifecycleModes
    		*out = make([]VolumeLifecycleMode, len(*in))
    		copy(*out, *in)
    	}
    	if in.StorageCapacity != nil {
    		in, out := &in.StorageCapacity, &out.StorageCapacity
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:26:35 UTC 2023
    - 19.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/storage/v1/types.go

    	//
    	// This field is beta.
    	// This field is immutable.
    	//
    	// +optional
    	// +listType=set
    	VolumeLifecycleModes []VolumeLifecycleMode `json:"volumeLifecycleModes,omitempty" protobuf:"bytes,3,opt,name=volumeLifecycleModes"`
    
    	// storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage
    	// capacity that the driver deployment will report by creating
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 32K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/storage/v1/generated.pb.go

    		} else {
    			dAtA[i] = 0
    		}
    		i--
    		dAtA[i] = 0x20
    	}
    	if len(m.VolumeLifecycleModes) > 0 {
    		for iNdEx := len(m.VolumeLifecycleModes) - 1; iNdEx >= 0; iNdEx-- {
    			i -= len(m.VolumeLifecycleModes[iNdEx])
    			copy(dAtA[i:], m.VolumeLifecycleModes[iNdEx])
    			i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumeLifecycleModes[iNdEx])))
    			i--
    			dAtA[i] = 0x1a
    		}
    	}
    	if m.PodInfoOnMount != nil {
    		i--
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 133.8K bytes
    - Viewed (0)
  8. pkg/volume/csi/csi_mounter.go

    	case containsVolumeMode(csiDriver.Spec.VolumeLifecycleModes, c.volumeLifecycleMode):
    		// Explicitly listed.
    		return nil
    	default:
    		return fmt.Errorf("volume mode %q not supported by driver %s (only supports %q)", c.volumeLifecycleMode, driver, csiDriver.Spec.VolumeLifecycleModes)
    	}
    }
    
    // containsVolumeMode checks whether the given volume mode is listed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 30 10:47:59 UTC 2024
    - 21K bytes
    - Viewed (1)
  9. staging/src/k8s.io/api/storage/v1beta1/generated.pb.go

    		} else {
    			dAtA[i] = 0
    		}
    		i--
    		dAtA[i] = 0x20
    	}
    	if len(m.VolumeLifecycleModes) > 0 {
    		for iNdEx := len(m.VolumeLifecycleModes) - 1; iNdEx >= 0; iNdEx-- {
    			i -= len(m.VolumeLifecycleModes[iNdEx])
    			copy(dAtA[i:], m.VolumeLifecycleModes[iNdEx])
    			i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumeLifecycleModes[iNdEx])))
    			i--
    			dAtA[i] = 0x1a
    		}
    	}
    	if m.PodInfoOnMount != nil {
    		i--
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 133.9K bytes
    - Viewed (0)
  10. pkg/apis/storage/types.go

    	// via a command line parameter of the driver.
    	//
    	// This field was immutable in Kubernetes < 1.29 and now is mutable.
    	//
    	// +optional
    	PodInfoOnMount *bool
    
    	// VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
    	// The default if the list is empty is "Persistent", which is the usage
    	// defined by the CSI specification and implemented in Kubernetes via the usual
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 13 20:24:57 UTC 2023
    - 29.4K bytes
    - Viewed (0)
Back to top