deployment

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 11 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeploymentWithName

func GetDeploymentWithName(
	ctx context.Context,
	h *helper.Helper,
	name string,
	namespace string,
) (*appsv1.Deployment, error)

GetDeploymentWithName func

Types

type Deployment

type Deployment struct {
	// contains filtered or unexported fields
}

Deployment -

func NewDeployment

func NewDeployment(
	deployment *appsv1.Deployment,
	timeout time.Duration,
) *Deployment

NewDeployment returns an initialized Deployment.

func (*Deployment) CreateOrPatch

func (d *Deployment) CreateOrPatch(
	ctx context.Context,
	h *helper.Helper,
) (ctrl.Result, error)

CreateOrPatch - creates or patches a deployment, reconciles after Xs if object won't exist.

func (*Deployment) Delete

func (d *Deployment) Delete(
	ctx context.Context,
	h *helper.Helper,
) error

Delete - delete a deployment.

func (*Deployment) GetDeployment

func (d *Deployment) GetDeployment() appsv1.Deployment

GetDeployment - get the deployment object.

Jump to

Keyboard shortcuts

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