appsv1

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DeploymentKind = appsv1.SchemeGroupVersion.WithKind("Deployment")
)
View Source
var (
	ErrDeploymentNotAvailable = errors.New("deployment not available")
)

Functions

func NewDeploymentAvailablePoller

func NewDeploymentAvailablePoller(deployment *Deployment) lifecycle.RetryLoader

func NewDeploymentPatcher

func NewDeploymentPatcher(upd, orig *Deployment) lifecycle.Persister

Types

type Deployment

type Deployment struct {
	Key    client.ObjectKey
	Object *appsv1.Deployment
}

func NewDeployment

func NewDeployment(key client.ObjectKey) *Deployment

func NewDeploymentFromObject

func NewDeploymentFromObject(obj *appsv1.Deployment) *Deployment

func (*Deployment) AvailableCondition

func (d *Deployment) AvailableCondition() (appsv1.DeploymentCondition, bool)

func (*Deployment) Condition

func (*Deployment) Copy

func (d *Deployment) Copy() *Deployment

func (*Deployment) Delete

func (d *Deployment) Delete(ctx context.Context, cl client.Client, opts ...lifecycle.DeleteOption) (bool, error)

func (*Deployment) LabelAnnotateFrom

func (d *Deployment) LabelAnnotateFrom(ctx context.Context, from metav1.Object)

func (*Deployment) Load

func (d *Deployment) Load(ctx context.Context, cl client.Client) (bool, error)

func (*Deployment) Owned

func (d *Deployment) Owned(ctx context.Context, owner lifecycle.TypedObject) error

func (*Deployment) Persist

func (d *Deployment) Persist(ctx context.Context, cl client.Client) error

func (*Deployment) ProgressingCondition

func (d *Deployment) ProgressingCondition() (appsv1.DeploymentCondition, bool)

Jump to

Keyboard shortcuts

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