Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDeployment ¶
func CreateDeployment(ctx context.Context, depOpts DeploymentOptions) (*appsv1.Deployment, error)
func GetRequiredDeployment ¶
func GetRequiredDeployment(deploymentAsset string, spec *operatorapi.OperatorSpec, nodeSelector map[string]string, tolerations []corev1.Toleration, replacers ...*strings.Replacer) (*appsv1.Deployment, error)
GetRequiredDeployment returns a deployment from given assset after replacing necessary strings and setting correct log level.
Types ¶
type DeploymentOptions ¶
type DeploymentOptions struct { Required *appsv1.Deployment ControllerName string OpStatus *operatorapi.OperatorStatus EventRecorder events.Recorder KubeClient kubernetes.Interface OperatorClient v1helpers.OperatorClient TargetVersion string VersionGetter status.VersionGetter VersionName string }
Click to show internal directories.
Click to hide internal directories.