Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 147 for dataSourceRef (0.28 sec)

  1. pkg/api/persistentvolumeclaim/util.go

    		if pvcSpec.DataSourceRef.Namespace == nil || len(*pvcSpec.DataSourceRef.Namespace) == 0 {
    			// Using the new way of setting a data source
    			pvcSpec.DataSource = &core.TypedLocalObjectReference{
    				Kind: pvcSpec.DataSourceRef.Kind,
    				Name: pvcSpec.DataSourceRef.Name,
    			}
    			if pvcSpec.DataSourceRef.APIGroup != nil {
    				apiGroup := *pvcSpec.DataSourceRef.APIGroup
    				pvcSpec.DataSource.APIGroup = &apiGroup
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:18:56 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. pkg/registry/core/persistentvolumeclaim/strategy_test.go

    			want:       nil,
    		},
    		"any disabled with volume ds ref": {
    			dataSourceRef: volumeDataSourceRef,
    		},
    		"any disabled with snapshot ds ref": {
    			dataSourceRef: snapshotDataSourceRef,
    		},
    		"any disabled with generic ds ref": {
    			dataSourceRef: genericDataSourceRef,
    		},
    		"any disabled with invalid ds ref": {
    			dataSourceRef: coreDataSourceRef,
    		},
    		"any enabled with empty ds": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  3. pkg/api/persistentvolumeclaim/util_test.go

    			spec:       core.PersistentVolumeClaimSpec{DataSourceRef: xnsVolumeDataSourceRef},
    			anyEnabled: true,
    			xnsEnabled: true,
    			wantRef:    xnsVolumeDataSourceRef,
    		},
    		"both any and xns enabled with xns volume ds when xns volume exists in oldSpec": {
    			spec:       core.PersistentVolumeClaimSpec{DataSourceRef: xnsVolumeDataSourceRef},
    			oldSpec:    core.PersistentVolumeClaimSpec{DataSourceRef: xnsVolumeDataSourceRef},
    			anyEnabled: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  4. pkg/registry/core/persistentvolumeclaim/storage/storage_test.go

    				pvc.Spec.DataSource = dataSource.DeepCopy()
    			}
    			if test.dataSourceRef {
    				pvc.Spec.DataSourceRef = dataSourceRef.DeepCopy()
    			}
    			var expectDataSource *api.TypedLocalObjectReference
    			if test.want {
    				expectDataSource = &dataSource
    			}
    			var expectDataSourceRef *api.TypedObjectReference
    			if test.wantRef {
    				expectDataSourceRef = &dataSourceRef
    			}
    
    			// Method under test
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/client-go/applyconfigurations/core/v1/persistentvolumeclaimspec.go

    	DataSource                *TypedLocalObjectReferenceApplyConfiguration  `json:"dataSource,omitempty"`
    	DataSourceRef             *TypedObjectReferenceApplyConfiguration       `json:"dataSourceRef,omitempty"`
    	VolumeAttributesClassName *string                                       `json:"volumeAttributesClassName,omitempty"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:26:35 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  6. pkg/registry/core/persistentvolumeclaim/strategy.go

    	// VolumeSnapshot) if certain conditions are met.
    	pvcutil.EnforceDataSourceBackwardsCompatibility(&pvc.Spec, nil)
    
    	// Second copy dataSource -> dataSourceRef or dataSourceRef -> dataSource if one of them
    	// is nil and the other is non-nil
    	pvcutil.NormalizeDataSources(&pvc.Spec)
    }
    
    func (persistentvolumeclaimStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 20:58:25 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  7. pkg/registry/core/persistentvolumeclaim/storage/storage.go

    func (r *REST) defaultOnReadPvc(pvc *api.PersistentVolumeClaim) {
    	if pvc == nil {
    		return
    	}
    
    	// We set dataSourceRef to the same value as dataSource at creation time now,
    	// but for pre-existing PVCs with data sources, the dataSourceRef field will
    	// be blank, so we fill it in here at read time.
    	pvcutil.NormalizeDataSources(&pvc.Spec)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:19 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/testdata/v1.30.0/core.v1.PersistentVolumeClaim.yaml

      selfLink: selfLinkValue
      uid: uidValue
    spec:
      accessModes:
      - accessModesValue
      dataSource:
        apiGroup: apiGroupValue
        kind: kindValue
        name: nameValue
      dataSourceRef:
        apiGroup: apiGroupValue
        kind: kindValue
        name: nameValue
        namespace: namespaceValue
      resources:
        limits:
          limitsKey: "0"
        requests:
          requestsKey: "0"
      selector:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/testdata/HEAD/core.v1.PersistentVolumeClaim.yaml

      selfLink: selfLinkValue
      uid: uidValue
    spec:
      accessModes:
      - accessModesValue
      dataSource:
        apiGroup: apiGroupValue
        kind: kindValue
        name: nameValue
      dataSourceRef:
        apiGroup: apiGroupValue
        kind: kindValue
        name: nameValue
        namespace: namespaceValue
      resources:
        limits:
          limitsKey: "0"
        requests:
          requestsKey: "0"
      selector:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:26:35 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/v1.29.0/core.v1.PersistentVolumeClaim.yaml

      selfLink: selfLinkValue
      uid: uidValue
    spec:
      accessModes:
      - accessModesValue
      dataSource:
        apiGroup: apiGroupValue
        kind: kindValue
        name: nameValue
      dataSourceRef:
        apiGroup: apiGroupValue
        kind: kindValue
        name: nameValue
        namespace: namespaceValue
      resources:
        limits:
          limitsKey: "0"
        requests:
          requestsKey: "0"
      selector:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 04:12:07 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top