Documentation ¶
Index ¶
- Variables
- func NewDeploymentAvailablePoller(deployment *Deployment) lifecycle.RetryLoader
- func NewDeploymentPatcher(upd, orig *Deployment) lifecycle.Persister
- type Deployment
- func (d *Deployment) AvailableCondition() (appsv1.DeploymentCondition, bool)
- func (d *Deployment) Condition(typ appsv1.DeploymentConditionType) (appsv1.DeploymentCondition, bool)
- func (d *Deployment) Copy() *Deployment
- func (d *Deployment) Delete(ctx context.Context, cl client.Client, opts ...lifecycle.DeleteOption) (bool, error)
- func (d *Deployment) LabelAnnotateFrom(ctx context.Context, from metav1.Object)
- func (d *Deployment) Load(ctx context.Context, cl client.Client) (bool, error)
- func (d *Deployment) Owned(ctx context.Context, owner lifecycle.TypedObject) error
- func (d *Deployment) Persist(ctx context.Context, cl client.Client) error
- func (d *Deployment) ProgressingCondition() (appsv1.DeploymentCondition, bool)
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 (d *Deployment) Condition(typ appsv1.DeploymentConditionType) (appsv1.DeploymentCondition, bool)
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) Owned ¶
func (d *Deployment) Owned(ctx context.Context, owner lifecycle.TypedObject) error
func (*Deployment) ProgressingCondition ¶
func (d *Deployment) ProgressingCondition() (appsv1.DeploymentCondition, bool)
Click to show internal directories.
Click to hide internal directories.