cluster

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 5 Imported by: 8

Documentation

Index

Constants

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

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 bunding

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 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 {
	DockerRepo             string `required:"true" split_words:"true"`
	DockerTag              string `required:"true" split_words:"true"`
	DeployClusterResources string `required:"true" split_words:"true"`
	ControllerImage        string `required:"true" split_words:"true"`
	ImporterImage          string `required:"true" split_words:"true"`
	ClonerImage            string `required:"true" split_words:"true"`
	APIServerImage         string `required:"true" envconfig:"apiserver_image"`
	UploadProxyImage       string `required:"true" split_words:"true"`
	UploadServerImage      string `required:"true" split_words:"true"`
	Verbosity              string `required:"true"`
	PullPolicy             string `required:"true" split_words:"true"`
	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