utils

package
v0.0.0-...-75c98a3 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

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
}

Jump to

Keyboard shortcuts

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