Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 125 for rbacv1 (0.12 sec)

  1. pkg/registry/rbac/validation/rule.go

    type StaticRoles struct {
    	roles               []*rbacv1.Role
    	roleBindings        []*rbacv1.RoleBinding
    	clusterRoles        []*rbacv1.ClusterRole
    	clusterRoleBindings []*rbacv1.ClusterRoleBinding
    }
    
    func (r *StaticRoles) GetRole(namespace, name string) (*rbacv1.Role, error) {
    	if len(namespace) == 0 {
    		return nil, errors.New("must provide namespace when getting role")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 02 16:51:16 UTC 2020
    - 11.6K bytes
    - Viewed (0)
  2. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go

    }
    
    func eventsRule() rbacv1.PolicyRule {
    	return rbacv1helpers.NewRule("create", "update", "patch").Groups(legacyGroup, eventsGroup).Resources("events").RuleOrDie()
    }
    
    func buildControllerRoles() ([]rbacv1.ClusterRole, []rbacv1.ClusterRoleBinding) {
    	// controllerRoles is a slice of roles used for controllers
    	controllerRoles := []rbacv1.ClusterRole{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 19:25:10 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  3. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go

    }
    
    func addClusterRoleLabel(roles []rbacv1.ClusterRole) {
    	for i := range roles {
    		addDefaultMetadata(&roles[i])
    	}
    	return
    }
    
    func addClusterRoleBindingLabel(rolebindings []rbacv1.ClusterRoleBinding) {
    	for i := range rolebindings {
    		addDefaultMetadata(&rolebindings[i])
    	}
    	return
    }
    
    // NodeRules returns node policy rules, it is slice of rbacv1.PolicyRule.
    func NodeRules() []rbacv1.PolicyRule {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 19:25:10 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  4. plugin/pkg/auth/authorizer/rbac/rbac_test.go

    		case rbacv1.UserKind, rbacv1.GroupKind:
    			r.Subjects[i].APIGroup = rbacv1.GroupName
    		default:
    			panic(fmt.Errorf("invalid kind %s", r.Subjects[i].Kind))
    		}
    	}
    	return r
    }
    
    func newRoleBinding(namespace, roleName string, bindType uint16, subjects ...string) *rbacv1.RoleBinding {
    	r := &rbacv1.RoleBinding{ObjectMeta: metav1.ObjectMeta{Namespace: namespace}}
    
    	switch bindType {
    	case bindToRole:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 21.1K bytes
    - Viewed (0)
  5. pkg/registry/rbac/rest/storage_rbac.go

    	clusterrolebindingpolicybased "k8s.io/kubernetes/pkg/registry/rbac/clusterrolebinding/policybased"
    	clusterrolebindingstore "k8s.io/kubernetes/pkg/registry/rbac/clusterrolebinding/storage"
    	"k8s.io/kubernetes/pkg/registry/rbac/role"
    	rolepolicybased "k8s.io/kubernetes/pkg/registry/rbac/role/policybased"
    	rolestore "k8s.io/kubernetes/pkg/registry/rbac/role/storage"
    	"k8s.io/kubernetes/pkg/registry/rbac/rolebinding"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 14 03:25:19 UTC 2022
    - 18.5K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/apiclient/idempotency.go

    func CreateOrUpdateRole(client clientset.Interface, role *rbac.Role) error {
    	var lastError error
    	err := wait.PollUntilContextTimeout(context.Background(),
    		apiCallRetryInterval, kubeadmapi.GetActiveTimeouts().KubernetesAPICall.Duration,
    		true, func(_ context.Context) (bool, error) {
    			ctx := context.Background()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  7. plugin/pkg/auth/authorizer/node/node_authorizer.go

    	identifier nodeidentifier.NodeIdentifier
    	nodeRules  []rbacv1.PolicyRule
    
    	// allows overriding for testing
    	features featuregate.FeatureGate
    }
    
    var _ = authorizer.Authorizer(&NodeAuthorizer{})
    var _ = authorizer.RuleResolver(&NodeAuthorizer{})
    
    // NewAuthorizer returns a new node authorizer
    func NewAuthorizer(graph *Graph, identifier nodeidentifier.NodeIdentifier, rules []rbacv1.PolicyRule) *NodeAuthorizer {
    	return &NodeAuthorizer{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 16K bytes
    - Viewed (0)
  8. pkg/controlplane/instance.go

    	eventsv1 "k8s.io/api/events/v1"
    	networkingapiv1 "k8s.io/api/networking/v1"
    	networkingapiv1alpha1 "k8s.io/api/networking/v1alpha1"
    	nodev1 "k8s.io/api/node/v1"
    	policyapiv1 "k8s.io/api/policy/v1"
    	rbacv1 "k8s.io/api/rbac/v1"
    	resourcev1alpha2 "k8s.io/api/resource/v1alpha2"
    	schedulingapiv1 "k8s.io/api/scheduling/v1"
    	storageapiv1 "k8s.io/api/storage/v1"
    	storageapiv1alpha1 "k8s.io/api/storage/v1alpha1"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:50:04 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go

    		crbExists          bool
    		clusterRoleBinding = &rbac.ClusterRoleBinding{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: kubeadmconstants.ClusterAdminsGroupAndClusterRoleBinding,
    			},
    			RoleRef: rbac.RoleRef{
    				APIGroup: rbac.GroupName,
    				Kind:     "ClusterRole",
    				Name:     "cluster-admin",
    			},
    			Subjects: []rbac.Subject{
    				{
    					Kind: rbac.GroupKind,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 27K bytes
    - Viewed (0)
  10. pilot/pkg/security/authz/builder/builder.go

    	"istio.io/istio/pkg/wellknown"
    )
    
    var rbacPolicyMatchNever = &rbacpb.Policy{
    	Permissions: []*rbacpb.Permission{{Rule: &rbacpb.Permission_NotRule{
    		NotRule: &rbacpb.Permission{Rule: &rbacpb.Permission_Any{Any: true}},
    	}}},
    	Principals: []*rbacpb.Principal{{Identifier: &rbacpb.Principal_NotId{
    		NotId: &rbacpb.Principal{Identifier: &rbacpb.Principal_Any{Any: true}},
    	}}},
    }
    
    // General setting to control behavior
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 20 22:15:12 UTC 2023
    - 12.6K bytes
    - Viewed (0)
Back to top