Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addDefaultMetadata (0.15 sec)

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

    	for _, existingRole := range existingRoles {
    		if role.Name == existingRole.Name {
    			klog.Fatalf("role %q was already registered in %q", role.Name, namespace)
    		}
    	}
    
    	role.Namespace = namespace
    	addDefaultMetadata(&role)
    	existingRoles = append(existingRoles, role)
    	namespaceRoles[namespace] = existingRoles
    }
    
    func addNamespaceRoleBinding(namespace string, roleBinding rbacv1.RoleBinding) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 16 11:54:27 UTC 2020
    - 7.4K bytes
    - Viewed (0)
  2. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go

    	metadata.SetAnnotations(annotations)
    }
    
    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.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 19:25:10 UTC 2024
    - 34.4K bytes
    - Viewed (0)
Back to top