Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,943 for subjects (0.14 sec)

  1. pkg/apis/rbac/v1/helpers.go

    		r.ClusterRoleBinding.Subjects = append(r.ClusterRoleBinding.Subjects, rbacv1.Subject{APIGroup: rbacv1.GroupName, Kind: rbacv1.GroupKind, Name: group})
    	}
    	return r
    }
    
    func (r *ClusterRoleBindingBuilder) Users(users ...string) *ClusterRoleBindingBuilder {
    	for _, user := range users {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 18 15:37:57 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/match_test.go

    		Subjects: []flowcontrol.Subject{{Kind: flowcontrol.SubjectKindUser,
    			User: &flowcontrol.UserSubject{Name: "goodu"}}},
    		ResourceRules: []flowcontrol.ResourcePolicyRule{{
    			Verbs:      []string{"goodverb"},
    			APIGroups:  []string{"goodapig"},
    			Resources:  []string{"goodrscs"},
    			Namespaces: []string{"goodns"}}}}, {
    		Subjects: []flowcontrol.Subject{{Kind: flowcontrol.SubjectKindGroup,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  3. pkg/registry/rbac/validation/rule_test.go

    			index:     2,
    			testCase:  "multiple subjects with a service account that matches",
    		},
    		{
    			subjects: []rbacv1.Subject{
    				{Kind: rbacv1.UserKind, Name: "*"},
    			},
    			user:      &user.DefaultInfo{Name: "foobar"},
    			namespace: "default",
    			appliesTo: false,
    			testCase:  "* user subject name doesn't match all users",
    		},
    		{
    			subjects: []rbacv1.Subject{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/apis/flowcontrol/bootstrap/default.go

    		ans[idx] = flowcontrol.Subject{
    			Kind: flowcontrol.SubjectKindUser,
    			User: &flowcontrol.UserSubject{
    				Name: name,
    			},
    		}
    	}
    	return ans
    }
    
    func kubeSystemServiceAccount(names ...string) []flowcontrol.Subject {
    	subjects := []flowcontrol.Subject{}
    	for _, name := range names {
    		subjects = append(subjects, flowcontrol.Subject{
    			Kind: flowcontrol.SubjectKindServiceAccount,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  5. pkg/apis/rbac/v1beta1/helpers.go

    	for _, group := range groups {
    		r.ClusterRoleBinding.Subjects = append(r.ClusterRoleBinding.Subjects, rbacv1beta1.Subject{Kind: rbacv1beta1.GroupKind, Name: group})
    	}
    	return r
    }
    
    func (r *ClusterRoleBindingBuilder) Users(users ...string) *ClusterRoleBindingBuilder {
    	for _, user := range users {
    		r.ClusterRoleBinding.Subjects = append(r.ClusterRoleBinding.Subjects, rbacv1beta1.Subject{Kind: rbacv1beta1.UserKind, Name: user})
    	}
    	return r
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 18 15:37:57 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  6. 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'"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 54.7K bytes
    - Viewed (0)
  7. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/controller-role-bindings.yaml

        name: system:controller:attachdetach-controller
      roleRef:
        apiGroup: rbac.authorization.k8s.io
        kind: ClusterRole
        name: system:controller:attachdetach-controller
      subjects:
      - kind: ServiceAccount
        name: attachdetach-controller
        namespace: kube-system
    - apiVersion: rbac.authorization.k8s.io/v1
      kind: ClusterRoleBinding
      metadata:
        annotations:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/phases/bootstraptoken/node/tlsbootstrap_test.go

    					Name: constants.NodeKubeletBootstrap,
    				},
    				RoleRef: rbac.RoleRef{
    					APIGroup: rbac.GroupName,
    					Kind:     "ClusterRole",
    					Name:     constants.NodeBootstrapperClusterRoleName,
    				},
    				Subjects: []rbac.Subject{
    					{
    						Kind: rbac.GroupKind,
    						Name: constants.NodeBootstrapTokenAuthGroup,
    					},
    				},
    			}),
    		},
    		{
    			name: "Create new ClusterRoleBindings",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 04:16:31 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  9. pkg/apis/rbac/v1alpha1/helpers.go

    	for _, group := range groups {
    		r.ClusterRoleBinding.Subjects = append(r.ClusterRoleBinding.Subjects, rbacv1alpha1.Subject{Kind: rbacv1alpha1.GroupKind, Name: group})
    	}
    	return r
    }
    
    func (r *ClusterRoleBindingBuilder) Users(users ...string) *ClusterRoleBindingBuilder {
    	for _, user := range users {
    		r.ClusterRoleBinding.Subjects = append(r.ClusterRoleBinding.Subjects, rbacv1alpha1.Subject{Kind: rbacv1alpha1.UserKind, Name: user})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 18 15:37:57 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  10. pkg/apis/rbac/validation/validation_test.go

    				Subjects:   []rbac.Subject{{Name: "good", Kind: rbac.ServiceAccountKind}},
    			},
    			T: field.ErrorTypeRequired,
    			F: "subjects[0].namespace",
    		},
    		"missing subject name": {
    			A: rbac.ClusterRoleBinding{
    				ObjectMeta: metav1.ObjectMeta{Name: "master"},
    				RoleRef:    rbac.RoleRef{APIGroup: rbac.GroupName, Kind: "ClusterRole", Name: "valid"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 14.1K bytes
    - Viewed (0)
Back to top