Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Forbidden (0.18 sec)

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

    							Resource: "pods",
    							Name:     "foo",
    							UID:      "1",
    						})
    				}
    				return claim
    			},
    		},
    		"invalid-reserved-for-not-shared": {
    			wantFailures: field.ErrorList{field.Forbidden(field.NewPath("status", "reservedFor"), "may not be reserved more than once")},
    			oldClaim: func() *resource.ResourceClaim {
    				claim := validAllocatedClaim.DeepCopy()
    				claim.Status.Allocation.Shareable = false
    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. testing/architecture-test/src/test/java/org/gradle/architecture/test/ArchUnitFixture.java

                        } else {
                            events.add(new SimpleConditionEvent(method, true, method.getFullName() + " is not using forbidden Nullable"));
                        }
                    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  3. pkg/apis/resource/validation/validation.go

    		if resourceClaim.Status.Allocation == nil {
    			allErrs = append(allErrs, field.Forbidden(fldPath.Child("reservedFor"), "may not be specified when `allocated` is not set"))
    		} else {
    			if !resourceClaim.Status.Allocation.Shareable && len(resourceClaim.Status.ReservedFor) > 1 {
    				allErrs = append(allErrs, field.Forbidden(fldPath.Child("reservedFor"), "may not be reserved more than once"))
    			}
    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. cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go

    						schema.GroupResource{}, "name", errors.New(""))
    				})
    			},
    			expectedError: true,
    		},
    		{
    			// A "create" call against a real server can return a forbidden error and a non-nil CRB
    			name: "admin.conf: handle forbidden error and returned CRBs, when the super-admin.conf client is nil",
    			setupAdminClient: func(client *clientsetfake.Clientset) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go

    			if _, err := adminClient.RbacV1().ClusterRoleBindings().Create(
    				ctx,
    				clusterRoleBinding,
    				metav1.CreateOptions{},
    			); err != nil {
    				if apierrors.IsForbidden(err) {
    					// If it encounters a forbidden error this means that the API server was reached
    					// but the CRB is missing - i.e. the admin.conf user does not have permissions
    					// to create its own permission RBAC yet.
    					return true, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 27K bytes
    - Viewed (0)
Back to top