Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for forbidden (0.13 sec)

  1. plugin/pkg/admission/noderestriction/admission_test.go

    		node.Labels = map[string]string{}
    	}
    	if value == "" {
    		value = "value"
    	}
    	// node restriction labels are forbidden
    	node.Labels["node-restriction.kubernetes.io/foo"] = value
    	node.Labels["foo.node-restriction.kubernetes.io/foo"] = value
    	// arbitrary kubernetes labels are forbidden on update
    	node.Labels["other.kubernetes.io/foo"] = value
    	node.Labels["other.k8s.io/foo"] = value
    	return node
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 73.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation.go

    			detail += " " + v.disallowDefaultsReason
    		}
    		allErrs = append(allErrs, field.Forbidden(fldPath.Child("default"), detail))
    	}
    
    	if schema.ID != "" {
    		allErrs = append(allErrs, field.Forbidden(fldPath.Child("id"), "id is not supported"))
    	}
    
    	if schema.AdditionalItems != nil {
    		allErrs = append(allErrs, field.Forbidden(fldPath.Child("additionalItems"), "additionalItems is not supported"))
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 82.6K bytes
    - Viewed (0)
  3. pkg/apis/core/v1/defaults_test.go

    	}
    	// New defaults under PodTemplateSpec are only acceptable if they would not be applied when reading data from a previous release.
    	// Forbidden: adding a new field `MyField *bool` and defaulting it to a non-nil value
    	// Forbidden: defaulting an existing field `MyField *bool` when it was previously not defaulted
    	// Forbidden: changing an existing default value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  4. pkg/apis/admissionregistration/validation/validation.go

    			allErrors = append(allErrors, field.Invalid(fldPath.Child("name"), pr.Name, msg))
    		}
    
    		if pr.Selector != nil {
    			allErrors = append(allErrors, field.Forbidden(fldPath.Child("name"), `name and selector are mutually exclusive`))
    		}
    	}
    
    	if pr.Selector != nil {
    		labelSelectorValidationOpts := metav1validation.LabelSelectorValidationOptions{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 56.6K bytes
    - Viewed (0)
  5. src/net/http/fs_test.go

    	redirect := false
    	name := "file.txt"
    	fs := issue12991FS{}
    	ExportServeFile(rec, r, fs, name, redirect)
    	if body := rec.Body.String(); !strings.Contains(body, "403") || !strings.Contains(body, "Forbidden") {
    		t.Errorf("wanted 403 forbidden message; got: %s", body)
    	}
    }
    
    type issue12991FS struct{}
    
    func (issue12991FS) Open(string) (File, error) { return issue12991File{}, nil }
    
    type issue12991File struct{ File }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  6. src/runtime/mprof.go

    	// of the future array of every memRecord struct
    	profMemFutureLock [len(memRecord{}.future)]mutex
    )
    
    // All memory allocations are local and do not escape outside of the profiler.
    // The profiler is forbidden from referring to garbage-collected memory.
    
    const (
    	// profile types
    	memProfile bucketType = 1 + iota
    	blockProfile
    	mutexProfile
    
    	// size of bucket hash table
    	buckHashSize = 179999
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  7. pkg/controller/statefulset/stateful_set_utils_test.go

    	testCases := []struct {
    		maxUnavailable         *intstr.IntOrString
    		replicaCount           int
    		expectedMaxUnavailable int
    	}{
    		// it wouldn't hurt to also test 0 and 0%, even if they should have been forbidden by API validation.
    		{maxUnavailable: nil, replicaCount: 10, expectedMaxUnavailable: 1},
    		{maxUnavailable: ptr.To(intstr.FromInt32(3)), replicaCount: 10, expectedMaxUnavailable: 3},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 50.9K bytes
    - Viewed (0)
  8. tests/integration/security/authz_test.go

    	// Fill in the defaults; we need this to get the dest protocol
    	b.opts.FillDefaultsOrFail(t)
    	if b.allow {
    		b.opts.Check = check.And(check.OK(), check.ReachedTargetClusters(t))
    	} else {
    		b.opts.Check = check.Forbidden(b.opts.Port.Protocol)
    	}
    	return b
    }
    
    func (b *authzTest) BuildForPorts(t framework.TestContext, ports ...echo.Port) authzTests {
    	out := make(authzTests, 0, len(ports))
    	for _, p := range ports {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  9. pkg/volume/csi/csi_attacher_test.go

    			shouldFail: true, // All other API errors should be propagated to caller
    			reactor: func(action core.Action) (handled bool, ret runtime.Object, err error) {
    				// return Forbidden to all DELETE requests
    				if action.Matches("delete", "volumeattachments") {
    					return true, nil, apierrors.NewForbidden(action.GetResource().GroupResource(), action.GetNamespace(), fmt.Errorf("mock error"))
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  10. cmd/bucket-handlers.go

    // The operation returns a 200 OK if the bucket exists and you
    // have permission to access it. Otherwise, the operation might
    // return responses such as 404 Not Found and 403 Forbidden.
    func (api objectAPIHandlers) HeadBucketHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := newContext(r, w, "HeadBucket")
    
    	defer logger.AuditLog(ctx, w, r, mustGetClaimsFromToken(r))
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 61.2K bytes
    - Viewed (0)
Back to top