Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for NewRule (0.17 sec)

  1. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go

    			Rules: []rbacv1.PolicyRule{
    				rbacv1helpers.NewRule("list", "watch").Groups(legacyGroup).Resources("persistentvolumes", "persistentvolumeclaims").RuleOrDie(),
    				rbacv1helpers.NewRule("get", "list", "watch").Groups(legacyGroup).Resources("nodes").RuleOrDie(),
    				rbacv1helpers.NewRule("patch", "update").Groups(legacyGroup).Resources("nodes/status").RuleOrDie(),
    				rbacv1helpers.NewRule("list", "watch").Groups(legacyGroup).Resources("pods").RuleOrDie(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 19:25:10 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  2. plugin/pkg/auth/authorizer/rbac/rbac_test.go

    			},
    		},
    		{
    			// Non-resource-url tests
    			clusterRoles: []*rbacv1.ClusterRole{
    				newClusterRole("non-resource-url-getter", newRule("get", "", "", "/apis")),
    				newClusterRole("non-resource-url", newRule("*", "", "", "/apis")),
    				newClusterRole("non-resource-url-prefix", newRule("get", "", "", "/apis/*")),
    			},
    			clusterRoleBindings: []*rbacv1.ClusterRoleBinding{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 21.1K bytes
    - Viewed (0)
  3. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go

    				rbacv1helpers.NewRule("create").Groups(coordinationGroup).Resources("leases").RuleOrDie(),
    				rbacv1helpers.NewRule("get", "update").Groups(coordinationGroup).Resources("leases").Names("kube-controller-manager").RuleOrDie(),
    				// Fundamental resources.
    				rbacv1helpers.NewRule("create").Groups(legacyGroup).Resources("secrets", "serviceaccounts").RuleOrDie(),
    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/bootstrappolicy/namespace_policy.go

    			rbacv1helpers.NewRule("watch").Groups(legacyGroup).Resources("configmaps").RuleOrDie(),
    			rbacv1helpers.NewRule("get", "update").Groups(legacyGroup).Resources("configmaps").Names("kube-controller-manager").RuleOrDie(),
    		},
    	})
    	addNamespaceRole(metav1.NamespaceSystem, rbacv1.Role{
    		// role for the leader locking on supplied configmap
    		ObjectMeta: metav1.ObjectMeta{Name: "system::leader-locking-kube-scheduler"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 16 11:54:27 UTC 2020
    - 7.4K bytes
    - Viewed (0)
  5. pkg/apis/rbac/helpers_test.go

    	role := &rbac.Role{
    		Rules: []rbac.PolicyRule{
    			rbac.NewRule("verb").Groups("g").Resources("foo").RuleOrDie(),
    			rbac.NewRule("verb").URLs("/foo").RuleOrDie(),
    		},
    	}
    	clusterRole := &rbac.ClusterRole{
    		Rules: []rbac.PolicyRule{
    			rbac.NewRule("verb").Groups("g").Resources("foo").RuleOrDie(),
    			rbac.NewRule("verb").URLs("/foo").RuleOrDie(),
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  6. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy_test.go

    var viewEscalatingNamespaceResources = []rbacv1.PolicyRule{
    	rbacv1helpers.NewRule(bootstrappolicy.Read...).Groups("").Resources("pods/attach").RuleOrDie(),
    	rbacv1helpers.NewRule(bootstrappolicy.Read...).Groups("").Resources("pods/proxy").RuleOrDie(),
    	rbacv1helpers.NewRule(bootstrappolicy.Read...).Groups("").Resources("pods/exec").RuleOrDie(),
    	rbacv1helpers.NewRule(bootstrappolicy.Read...).Groups("").Resources("pods/portforward").RuleOrDie(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:45:31 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  7. plugin/pkg/auth/authorizer/rbac/subject_locator_test.go

    			superUser: "foo",
    			clusterRoles: []*rbacv1.ClusterRole{
    				newClusterRole("admin", newRule("*", "*", "*", "*")),
    			},
    			clusterRoleBindings: []*rbacv1.ClusterRoleBinding{
    				newClusterRoleBinding("admin", "User:super-admin", "Group:super-admins"),
    			},
    			roles: []*rbacv1.Role{
    				newRole("admin", "ns1", newRule("get", "*", "Pods", "*")),
    			},
    			roleBindings: []*rbacv1.RoleBinding{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 22 12:17:05 UTC 2018
    - 5.6K bytes
    - Viewed (0)
  8. pkg/registry/rbac/clusterrole/policybased/storage.go

    	if !ok {
    		return nil
    	}
    	return svp.StorageVersion()
    }
    
    var _ rest.StorageVersionProvider = &Storage{}
    
    var fullAuthority = []rbac.PolicyRule{
    	rbac.NewRule("*").Groups("*").Resources("*").RuleOrDie(),
    	rbac.NewRule("*").URLs("*").RuleOrDie(),
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 10:11:16 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  9. cni/pkg/iptables/iptables_linux.go

    		// A very similar mechanism is used for sidecar TPROXY.
    		//
    		// TODO largely identical/copied from tools/istio-iptables/pkg/capture/run_linux.go
    		inpodMarkRule := netlink.NewRule()
    		inpodMarkRule.Family = family
    		inpodMarkRule.Table = RouteTableInbound
    		inpodMarkRule.Mark = InpodTProxyMark
    		inpodMarkRule.Mask = InpodTProxyMask
    		inpodMarkRule.Priority = 32764
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. tools/istio-iptables/pkg/capture/run_linux.go

    			families := []int{unix.AF_INET}
    			if cfg.EnableIPv6 {
    				families = append(families, unix.AF_INET6)
    			}
    			for _, family := range families {
    				r := netlink.NewRule()
    				r.Family = family
    				r.Table = tproxyTable
    				r.Mark = tproxyMark
    				if err := netlink.RuleAdd(r); err != nil {
    					return fmt.Errorf("failed to configure netlink rule: %v", err)
    				}
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top