operator

package
v1.10.7 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//ControllerImageDefault - default value
	ControllerImageDefault = "cdi-controller"
	//ImporterImageDefault - default value
	ImporterImageDefault = "cdi-importer"
	//ClonerImageDefault - default value
	ClonerImageDefault = "cdi-cloner"
	//APIServerImageDefault - default value
	APIServerImageDefault = "cdi-apiserver"
	//UploadProxyImageDefault - default value
	UploadProxyImageDefault = "cdi-uploadproxy"
	//UploadServerImageDefault - default value
	UploadServerImageDefault = "cdi-uploadserver"
	// OperatorImageDefault - default value
	OperatorImageDefault = "cdi-operator"
)
View Source
const (
	//OperatorRBAC - operator rbac
	OperatorRBAC string = "operator-rbac"
	//OperatorDeployment - operator deployment
	OperatorDeployment string = "operator-deployment"
	//OperatorCdiCRD - operator CRDs
	OperatorCdiCRD string = "operator-cdi-crd"
	//OperatorConfigMapCR - operartor configmap
	OperatorConfigMapCR string = "operator-configmap-cr"
	//OperatorCSV - operator csv
	OperatorCSV string = "operator-csv"
)

Variables

This section is empty.

Functions

func CreateAllOperatorResources

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

CreateAllOperatorResources creates all cluster-wide resources

func CreateOperatorResourceGroup

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

CreateOperatorResourceGroup creates all cluster resources fr a specific group/component

func GetOperatorClusterRules

func GetOperatorClusterRules() *[]rbacv1.PolicyRule

GetOperatorClusterRules returnes operator cluster rules

func GetOperatorDeploymentSpec

func GetOperatorDeploymentSpec(args *FactoryArgs) *appsv1.DeploymentSpec

GetOperatorDeploymentSpec returns operator deployment spce

func IsFactoryResource

func IsFactoryResource(codeGroup string) bool

IsFactoryResource returns true id codeGroupo belolngs to factory functions

func NewCdiCrd

NewCdiCrd - provides CDI CRD

func NewCdiOperatorClusterRole

func NewCdiOperatorClusterRole() *rbacv1.ClusterRole

NewCdiOperatorClusterRole - provides operator clusterRole

func NewCdiOperatorDeployment

func NewCdiOperatorDeployment(namespace string, repository string, tag string, imagePullPolicy string, verbosity string, cdiImages *CdiImages) (*appsv1.Deployment, error)

NewCdiOperatorDeployment - provides operator deployment spec

func NewClusterServiceVersion added in v1.10.2

func NewClusterServiceVersion(data *NewClusterServiceVersionData) (*csvv1.ClusterServiceVersion, error)

NewClusterServiceVersion - generates CSV for CDI

Types

type CdiImages

type CdiImages struct {
	ControllerImage   string
	ImporterImage     string
	ClonerImage       string
	APIServerImage    string
	UplodaProxyImage  string
	UplodaServerImage string
	OperatorImage     string
}

CdiImages - images to be provied to cdi operator

func (*CdiImages) FillDefaults

func (ci *CdiImages) FillDefaults() *CdiImages

FillDefaults - fill image names with defaults

type FactoryArgs

type FactoryArgs struct {
	OperatorImage          string `required:"true" split_words:"true"`
	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
	CsvVersion             string `required:"true"`
	ReplacesCsvVersion     string
}

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

type NewClusterServiceVersionData added in v1.10.2

type NewClusterServiceVersionData struct {
	CsvVersion         string
	ReplacesCsvVersion string
	Namespace          string
	ImagePullPolicy    string
	IconBase64         string
	Verbosity          string

	DockerPrefix string
	DockerTag    string

	CdiImageNames *CdiImages
}

NewClusterServiceVersionData - Data arguments used to create CDI's CSV manifest

Jump to

Keyboard shortcuts

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