utils

package
v1.0.0-2021-09-09-19-0... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterSetLabel string = "cluster.open-cluster-management.io/clusterset"
	ClusterSetRole  string = "cluster.open-cluster-management.io/role"
)

Variables

This section is empty.

Functions

func GenerateClustersetSubjects

func GenerateClustersetSubjects(cache *cache.AuthCache) map[string][]rbacv1.Subject

func GenerateObjectSubjectMap

func GenerateObjectSubjectMap(clustersetToObjects *helpers.ClusterSetMapper, clustersetToSubject map[string][]rbacv1.Subject) map[string][]rbacv1.Subject

GenerateObjectSubjectMap generate the map which key is object and value is subjects, which means these users/groups in subjects has permission for this object.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL