Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for clusterRoleBindings (0.39 sec)

  1. pkg/registry/rbac/rest/storage_rbac.go

    		storage[resource] = clusterrolepolicybased.NewStorage(clusterRolesStorage, p.Authorizer, authorizationRuleResolver)
    	}
    
    	// clusterrolebindings
    	if resource := "clusterrolebindings"; apiResourceConfigSource.ResourceEnabled(rbacapiv1.SchemeGroupVersion.WithResource(resource)) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 14 03:25:19 UTC 2022
    - 18.5K bytes
    - Viewed (0)
  2. pkg/registry/rbac/validation/rule.go

    	r := StaticRoles{
    		roles:               roles,
    		roleBindings:        roleBindings,
    		clusterRoles:        clusterRoles,
    		clusterRoleBindings: clusterRoleBindings,
    	}
    	return newMockRuleResolver(&r), &r
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 02 16:51:16 UTC 2020
    - 11.6K bytes
    - Viewed (0)
  3. plugin/pkg/auth/authorizer/rbac/rbac_test.go

    	bootstrapBindings = append(bootstrapBindings, bootstrappolicy.ClusterRoleBindings()...)
    	bootstrapBindings = append(bootstrapBindings, bootstrappolicy.ControllerRoleBindings()...)
    
    	clusterRoles := []*rbacv1.ClusterRole{}
    	for i := range bootstrapRoles {
    		clusterRoles = append(clusterRoles, &bootstrapRoles[i])
    	}
    	clusterRoleBindings := []*rbacv1.ClusterRoleBinding{}
    	for i := range bootstrapBindings {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 21.1K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go

    				client.PrependReactor("create", "clusterrolebindings", func(action clientgotesting.Action) (bool, runtime.Object, error) {
    					return true, nil, apierrors.NewAlreadyExists(
    						schema.GroupResource{}, "name")
    				})
    			},
    			setupSuperAdminClient: func(client *clientsetfake.Clientset) {
    				client.PrependReactor("create", "clusterrolebindings", func(action clientgotesting.Action) (bool, runtime.Object, error) {
    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. staging/src/k8s.io/api/rbac/v1alpha1/types.go

    }
    
    // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
    
    // ClusterRoleBindingList is a collection of ClusterRoleBindings.
    // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.22.
    type ClusterRoleBindingList struct {
    	metav1.TypeMeta `json:",inline"`
    	// Standard object's metadata.
    	// +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 22:49:19 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/rbac/v1/types.go

    // ClusterRoleBindingList is a collection of ClusterRoleBindings
    type ClusterRoleBindingList struct {
    	metav1.TypeMeta `json:",inline"`
    	// Standard object's metadata.
    	// +optional
    	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    
    	// Items is a list of ClusterRoleBindings
    	Items []ClusterRoleBinding `json:"items" protobuf:"bytes,2,rep,name=items"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/rbac/v1beta1/types.go

    limitations under the License.
    */
    
    package v1beta1
    
    import (
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    )
    
    // Authorization is calculated against
    // 1. evaluation of ClusterRoleBindings - short circuit on match
    // 2. evaluation of RoleBindings in the namespace requested - short circuit on match
    // 3. deny by default
    
    const (
    	APIGroupAll    = "*"
    	ResourceAll    = "*"
    	VerbAll        = "*"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 22:49:19 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/util/apiclient/idempotency_test.go

    				client.PrependReactor("create", "clusterrolebindings", func(clientgotesting.Action) (bool, runtime.Object, error) {
    					return true, nil, nil
    				})
    			},
    			expectedError: false,
    		},
    		{
    			name: "create clusterrolebinding returns error",
    			setupClient: func(client *clientsetfake.Clientset) {
    				client.PrependReactor("create", "clusterrolebindings", func(clientgotesting.Action) (bool, runtime.Object, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  9. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go

    			},
    		})
    	}
    
    	addClusterRoleLabel(roles)
    	return roles
    }
    
    const systemNodeRoleName = "system:node"
    
    // ClusterRoleBindings return default rolebindings to the default roles
    func ClusterRoleBindings() []rbacv1.ClusterRoleBinding {
    	rolebindings := []rbacv1.ClusterRoleBinding{
    		rbacv1helpers.NewClusterBinding("cluster-admin").Groups(user.SystemPrivilegedGroup).BindingOrDie(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 19:25:10 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/util/apiclient/idempotency.go

    			ctx := context.Background()
    			if _, err := client.RbacV1().ClusterRoleBindings().Create(ctx, clusterRoleBinding, metav1.CreateOptions{}); err != nil {
    				if !apierrors.IsAlreadyExists(err) {
    					lastError = errors.Wrap(err, "unable to create ClusterRoleBinding")
    					return false, nil
    				}
    				if _, err := client.RbacV1().ClusterRoleBindings().Update(ctx, clusterRoleBinding, metav1.UpdateOptions{}); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top