Help us shape the future of Go! Take the 2026 Go Developer Survey

deployment

package
v0.1.0 Latest Latest
Warning

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

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

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