cluster

package
v1.10.6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: Apache-2.0 Imports: 6 Imported by: 8

Documentation

Index

Constants

View Source
const (
	//CdiRBAC - groupCode to generate only operator rbac manifest
	CdiRBAC = "cdi-rbac"
	//APIServerRBAC - groupCode to generate only apiserver rbac manifest
	APIServerRBAC = "apiserver-rbac"
	//UploadProxyRBAC - groupCode to generate only apiserver rbac manifest
	UploadProxyRBAC = "uploadproxy-rbac"
	//ControllerRBAC - groupCode to generate only controller rbac manifest
	ControllerRBAC = "controller-rbac"
	//CRDResources - groupCode to generate only resources' manifest
	CRDResources = "crd-resources"
	//AggregateRoles = groupCode to generate only aggregate roles
	AggregateRoles = "aggregate-roles"
)

Variables

This section is empty.

Functions

func CreateAllResources

func CreateAllResources(args *FactoryArgs) ([]runtime.Object, error)

CreateAllResources creates all cluster-wide resources

func CreateClusterRole added in v1.9.0

func CreateClusterRole(name string) *rbacv1.ClusterRole

CreateClusterRole create cluster role

func CreateClusterRoleBinding added in v1.9.0

func CreateClusterRoleBinding(name, roleRef, serviceAccount, serviceAccountNamespace string) *rbacv1.ClusterRoleBinding

CreateClusterRoleBinding create cluster role binding

func CreateOperatorClusterRole added in v1.10.3

func CreateOperatorClusterRole(name string) *rbacv1.ClusterRole

CreateOperatorClusterRole create cluster role

func CreateOperatorClusterRoleBinding added in v1.10.3

func CreateOperatorClusterRoleBinding(name, roleRef, serviceAccount, serviceAccountNamespace string) *rbacv1.ClusterRoleBinding

CreateOperatorClusterRoleBinding create cluster role binding for operator

func CreateResourceGroup

func CreateResourceGroup(group string, args *FactoryArgs) ([]runtime.Object, error)

CreateResourceGroup creates all cluster resources fr a specific group/component

func GetAPIServerClusterRolePermissions added in v1.9.0

func GetAPIServerClusterRolePermissions() []rbacv1.PolicyRule

GetAPIServerClusterRolePermissions generates permissions for operator

func GetControllerPermissions added in v1.9.0

func GetControllerPermissions() []rbacv1.PolicyRule

GetControllerPermissions geberates rules for cdi controller

func GetUploadProxyRolePermissions added in v1.9.3

func GetUploadProxyRolePermissions() []rbacv1.PolicyRule

GetUploadProxyRolePermissions generates permissions for operator

func IsFactoryResource added in v1.9.0

func IsFactoryResource(codeGroup string) bool

IsFactoryResource returns true id codeGroupo belolngs to factory functions

Types

type FactoryArgs

type FactoryArgs struct {
	Namespace string
}

FactoryArgs contains the required parameters to generate all cluster-scoped resources

Jump to

Keyboard shortcuts

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