helper

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCRDDef

func CreateCRDDef() *extv1.CustomResourceDefinition

CreateCRDDef creates the hostpath provisioner CRD definition.

func CreateOperatorContainer

func CreateOperatorContainer(name, image, verbosity string, pullPolicy corev1.PullPolicy) corev1.Container

CreateOperatorContainer creates container spec for the operator pod.

func CreateOperatorDeployment

func CreateOperatorDeployment(name, namespace, matchKey, matchValue, serviceAccount string, numReplicas int32) *appsv1.Deployment

CreateOperatorDeployment creates deployment

func CreateOperatorDeploymentSpec

func CreateOperatorDeploymentSpec(name, namespace, matchKey, matchValue, serviceAccount string, numReplicas int32) *appsv1.DeploymentSpec

CreateOperatorDeploymentSpec creates deployment

func CreateOperatorEnvVar

func CreateOperatorEnvVar(repo, deployClusterResources, operatorImage, provisionerImage, pullPolicy string) *[]corev1.EnvVar

CreateOperatorEnvVar creates the operator container environment variables based on the passed in parameters

func WithOperatorLabels

func WithOperatorLabels(labels map[string]string) map[string]string

WithOperatorLabels aggregates common lables

Types

This section is empty.

Jump to

Keyboard shortcuts

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