cluster

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 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 string = "cdi-rbac"
	//APIServerRBAC - groupCode to generate only apiserver rbac manifest
	APIServerRBAC string = "apiserver-rbac"
	//UploadProxyRBAC - groupCode to generate only apiserver rbac manifest
	UploadProxyRBAC string = "uploadproxy-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 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 {
	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