Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 286 for forbidden (0.33 sec)

  1. pkg/apis/core/validation/validation.go

    			allErrs = append(allErrs, field.Forbidden(field.NewPath("spec", "volumeAttributesClassName"), "update is forbidden when the VolumeAttributesClass feature gate is disabled"))
    		}
    		if opts.EnableVolumeAttributesClass {
    			if oldPv.Spec.VolumeAttributesClassName != nil && newPv.Spec.VolumeAttributesClassName == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
  2. pkg/apis/flowcontrol/validation/validation_test.go

    			field.Forbidden(field.NewPath("spec").Child("rules").Index(0).Child("subjects").Index(0).Child("user"), "user is forbidden when subject kind is not 'User'"),
    			field.Forbidden(field.NewPath("spec").Child("rules").Index(0).Child("subjects").Index(0).Child("group"), "group is forbidden when subject kind is not 'Group'"),
    		},
    	}, {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 54.7K bytes
    - Viewed (0)
  3. pkg/apis/scheduling/validation/validation.go

    	if strings.HasPrefix(pc.Name, scheduling.SystemPriorityClassPrefix) {
    		if is, err := schedulingapiv1.IsKnownSystemPriorityClass(pc.Name, pc.Value, pc.GlobalDefault); !is {
    			allErrs = append(allErrs, field.Forbidden(field.NewPath("metadata", "name"), "priority class names with '"+scheduling.SystemPriorityClassPrefix+"' prefix are reserved for system use only. error: "+err.Error()))
    		}
    	} else if pc.Value > scheduling.HighestUserDefinablePriority {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 07:30:47 UTC 2022
    - 3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/errors.go

    )
    
    // Avoid emitting errors that look like valid HTML. Quotes are okay.
    var sanitizer = strings.NewReplacer(`&`, "&amp;", `<`, "&lt;", `>`, "&gt;")
    
    // Forbidden renders a simple forbidden error
    func Forbidden(ctx context.Context, attributes authorizer.Attributes, w http.ResponseWriter, req *http.Request, reason string, s runtime.NegotiatedSerializer) {
    	msg := sanitizer.Replace(forbiddenMessage(attributes))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 21 16:18:47 UTC 2018
    - 2.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/sources/process/ProviderCompatibleBaseExecSpecTestBase.groovy

            where:
            ignoreExitValue << [true, false]
        }
    
        def "setting input stream is forbidden"() {
            when:
            specUnderTest.setStandardInput(new ByteArrayInputStream())
            then:
            thrown UnsupportedOperationException
        }
    
        def "setting output stream is forbidden"() {
            when:
            specUnderTest.setStandardOutput(new ByteArrayOutputStream())
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        /*
         * TODO(cpovirk): move ForwardingTestCase somewhere common, and use it to
         * test the forwarded methods
         */
      }
    
      @AndroidIncompatible // Mocking ExecutorService is forbidden there. TODO(b/218700094): Don't mock.
      public void testListeningDecorator_noWrapExecuteTask() {
        ExecutorService delegate = mock(ExecutorService.class);
        ListeningExecutorService service = listeningDecorator(delegate);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 28.2K bytes
    - Viewed (0)
  7. pkg/apis/storage/validation/validation.go

    		allErrs = append(allErrs, field.Forbidden(field.NewPath("parameters"), "updates to parameters are forbidden."))
    	}
    
    	if storageClass.Provisioner != oldStorageClass.Provisioner {
    		allErrs = append(allErrs, field.Forbidden(field.NewPath("provisioner"), "updates to provisioner are forbidden."))
    	}
    
    	if *storageClass.ReclaimPolicy != *oldStorageClass.ReclaimPolicy {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 00:47:13 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/authorization/authorizerfactory/builtin.go

    // which always says no to an authorization request.
    // It is useful in unit tests to force an operation to be forbidden.
    type alwaysDenyAuthorizer struct{}
    
    func (alwaysDenyAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes) (decision authorizer.Decision, reason string, err error) {
    	return authorizer.DecisionNoOpinion, "Everything is forbidden.", nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 3.2K bytes
    - Viewed (0)
  9. cmd/import-boss/testdata/transitive/allowed/file.go

    package allowed
    
    import (
    	_ "k8s.io/kubernetes/cmd/import-boss/testdata/transitive/allowed/a2"
    	_ "k8s.io/kubernetes/cmd/import-boss/testdata/transitive/forbidden/f2"
    	_ "k8s.io/kubernetes/cmd/import-boss/testdata/transitive/neither/n2"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:36 UTC 2024
    - 259 bytes
    - Viewed (0)
  10. pkg/test/framework/components/authz/provider.go

    		default:
    			// Deny
    			return check.And(check.Forbidden(protocol.GRPC),
    				check.ErrorContains("desc = denied by ext_authz for not found header "+
    					"`x-ext-authz: allow` in the request"))
    		}
    	case opts.Port.Protocol.IsTCP():
    		if expectAllowed {
    			return check.NoError()
    		}
    		// Deny
    		return check.Forbidden(protocol.TCP)
    	default:
    		// HTTP
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 23 16:02:21 UTC 2022
    - 5.9K bytes
    - Viewed (0)
Back to top