Documentation ¶
Index ¶
- Constants
- func CreateAllOperatorResources(args *FactoryArgs) ([]runtime.Object, error)
- func CreateOperatorResourceGroup(group string, args *FactoryArgs) ([]runtime.Object, error)
- func GetOperatorClusterRules() *[]rbacv1.PolicyRule
- func GetOperatorDeploymentSpec(args *FactoryArgs) *appsv1.DeploymentSpec
- func IsFactoryResource(codeGroup string) bool
- func NewCdiCrd() *extv1beta1.CustomResourceDefinition
- func NewCdiOperatorClusterRole() *rbacv1.ClusterRole
- func NewCdiOperatorDeployment(namespace string, repository string, tag string, imagePullPolicy string, ...) (*appsv1.Deployment, error)
- func NewClusterServiceVersion(data *NewClusterServiceVersionData) (*csvv1.ClusterServiceVersion, error)
- type CdiImages
- type FactoryArgs
- type NewClusterServiceVersionData
Constants ¶
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" )
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 ¶
IsFactoryResource returns true id codeGroupo belolngs to factory functions
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 ¶
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 CDILogo 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