Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for valid (0.04 sec)

  1. pkg/apis/resource/validation/validation_resourceclaim_test.go

    				return claim
    			},
    		},
    		"valid-add-allocation": {
    			oldClaim: validClaim,
    			update: func(claim *resource.ResourceClaim) *resource.ResourceClaim {
    				claim.Status.DriverName = "valid"
    				claim.Status.Allocation = &resource.AllocationResult{
    					ResourceHandles: []resource.ResourceHandle{
    						{
    							DriverName: "valid",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  2. cmd/object-api-options.go

    }
    
    func getAndValidateAttributesOpts(ctx context.Context, w http.ResponseWriter, r *http.Request, bucket, object string) (opts ObjectOptions, valid bool) {
    	var argumentName string
    	var argumentValue string
    	var apiErr APIError
    	var err error
    	valid = true
    
    	defer func() {
    		if valid {
    			return
    		}
    
    		errResp := objectAttributesErrorResponse{
    			ArgumentName:  &argumentName,
    			ArgumentValue: &argumentValue,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  3. pkg/apis/resource/validation/validation.go

    		allErrs = append(allErrs, corevalidation.ValidateNodeSelector(resourceClass.SuitableNodes, field.NewPath("suitableNodes"))...)
    	}
    
    	return allErrs
    }
    
    // ValidateClassUpdate tests if an update to ResourceClass is valid.
    func ValidateClassUpdate(resourceClass, oldClass *resource.ResourceClass) field.ErrorList {
    	allErrs := corevalidation.ValidateObjectMetaUpdate(&resourceClass.ObjectMeta, &oldClass.ObjectMeta, field.NewPath("metadata"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.3K bytes
    - Viewed (0)
  4. pkg/kubelet/network/dns/dns_test.go

    		},
    		{
    			desc:            "valid DNSClusterFirstWithHostNet without hostnetwork",
    			hasClusterDNS:   true,
    			dnsPolicy:       v1.DNSClusterFirstWithHostNet,
    			expectedDNSType: podDNSCluster,
    		},
    		{
    			desc:            "valid DNSDefault without hostnetwork",
    			dnsPolicy:       v1.DNSDefault,
    			expectedDNSType: podDNSHost,
    		},
    		{
    			desc:            "valid DNSDefault with hostnetwork",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go

    		},
    		"kubeconfig exist and is valid": {
    			existingKubeConfig: config,
    			kubeConfig:         config,
    			expectedError:      false,
    		},
    		"kubeconfig exist and is valid even if its CA contains whitespace": {
    			existingKubeConfig: configWhitespace,
    			kubeConfig:         config,
    			expectedError:      false,
    		},
    		"kubeconfig exist and is valid even if its CA is provided as an external file": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  6. pkg/apis/resource/validation/validation_resourceclass_test.go

    		},
    		DriverName: driverName,
    	}
    }
    
    func TestValidateClass(t *testing.T) {
    	goodName := "foo"
    	now := metav1.Now()
    	goodParameters := resource.ResourceClassParametersReference{
    		Name:      "valid",
    		Namespace: "valid",
    		Kind:      "foo",
    	}
    	badName := "!@#$%^"
    	badValue := "spaces not allowed"
    	badAPIGroup := "example.com/v1"
    	goodAPIGroup := "example.com"
    
    	scenarios := map[string]struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  7. cmd/erasure-healing-common_test.go

    				nil, nil, nil, nil, nil, nil, nil, nil,
    			},
    			_tamperBackend: noTamper,
    		},
    		{
    			modTimes:     modTimesThreeNone,
    			expectedTime: threeNanoSecs,
    			errs: []error{
    				// Disks that have a valid xl.meta.
    				nil, nil, nil, nil, nil, nil, nil, nil,
    				nil, nil, nil, nil, nil,
    				// Some disks can't access xl.meta.
    				errFileNotFound, errDiskAccessDenied, errDiskNotFound,
    			},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 23K bytes
    - Viewed (0)
  8. src/crypto/x509/oid_test.go

    }
    
    func TestOID(t *testing.T) {
    	for _, v := range oidTests {
    		oid, ok := newOIDFromDER(v.raw)
    		if ok != v.valid {
    			t.Errorf("newOIDFromDER(%v) = (%v, %v); want = (OID, %v)", v.raw, oid, ok, v.valid)
    			continue
    		}
    
    		if !ok {
    			continue
    		}
    
    		if str := oid.String(); str != v.str {
    			t.Errorf("(%#v).String() = %v, want; %v", oid, str, v.str)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 19:10:38 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. src/cmd/go/internal/help/helpdoc.go

    	GOARM
    		For GOARCH=arm, the ARM architecture for which to compile.
    		Valid values are 5, 6, 7.
    		The value can be followed by an option specifying how to implement floating point instructions.
    		Valid options are ,softfloat (default for 5) and ,hardfloat (default for 6 and 7).
    	GOARM64
    		For GOARCH=arm64, the ARM64 architecture for which to compile.
    		Valid values are v8.0 (default), v8.{1-9}, v9.{0-5}.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  10. pkg/apis/resource/validation/validation_resourceclaimtemplate_test.go

    					"apps.kubernetes.io/name": "test",
    				}
    				return template
    			}(),
    		},
    		"bad-labels": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top