cluster

package
v1.23.6 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: Apache-2.0 Imports: 15 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAllDynamicResources added in v1.13.0

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

CreateAllDynamicResources creates all dynamic cluster-wide resources

func CreateAllStaticResources added in v1.13.0

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

CreateAllStaticResources creates all static 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 CreateDynamicResourceGroup added in v1.13.0

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

CreateDynamicResourceGroup creates all dynamic cluster resources for a specific group/component

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 CreateStaticResourceGroup added in v1.13.0

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

CreateStaticResourceGroup creates all static cluster resources for a specific group/component

func GetClusterRolePolicyRules added in v1.12.0

func GetClusterRolePolicyRules() []rbacv1.PolicyRule

GetClusterRolePolicyRules returns all cluster PolicyRules

func NewCdiConfigCrd added in v1.21.0

func NewCdiConfigCrd() *extv1.CustomResourceDefinition

NewCdiConfigCrd - provides CDIConfig CRD

func NewDataVolumeCrd added in v1.21.0

func NewDataVolumeCrd() *extv1.CustomResourceDefinition

NewDataVolumeCrd - provides DataVolume CRD

Types

type FactoryArgs

type FactoryArgs struct {
	Namespace string
	Client    client.Client
	Logger    logr.Logger
}

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