Documentation ¶
Index ¶
- Variables
- func NewDeploymentAvailablePoller(deployment *Deployment) lifecycle.RetryLoader
- func NewDeploymentPatcher(upd, orig *Deployment) lifecycle.Persister
- func NewReplicaSetPatcher(upd, orig *ReplicaSet) lifecycle.Persister
- func NewStatefulSetPatcher(upd, orig *StatefulSet) lifecycle.Persister
- type Deployment
- type ReplicaSet
- type StatefulSet
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DeploymentKind = appsv1.SchemeGroupVersion.WithKind("Deployment")
)
View Source
var (
ErrDeploymentNotAvailable = errors.New("deployment not available")
)
View Source
var (
ReplicaSetKind = appsv1.SchemeGroupVersion.WithKind("ReplicaSet")
)
View Source
var (
StatefulSetKind = appsv1.SchemeGroupVersion.WithKind("StatefulSet")
)
Functions ¶
func NewDeploymentAvailablePoller ¶
func NewDeploymentAvailablePoller(deployment *Deployment) lifecycle.RetryLoader
func NewDeploymentPatcher ¶
func NewDeploymentPatcher(upd, orig *Deployment) lifecycle.Persister
func NewReplicaSetPatcher ¶ added in v0.4.0
func NewReplicaSetPatcher(upd, orig *ReplicaSet) lifecycle.Persister
func NewStatefulSetPatcher ¶ added in v0.6.5
func NewStatefulSetPatcher(upd, orig *StatefulSet) lifecycle.Persister
Types ¶
type Deployment ¶
type Deployment struct { *helper.NamespaceScopedAPIObject 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) ProgressingCondition ¶
func (d *Deployment) ProgressingCondition() (appsv1.DeploymentCondition, bool)
type ReplicaSet ¶ added in v0.4.0
type ReplicaSet struct { *helper.NamespaceScopedAPIObject Key client.ObjectKey Object *appsv1.ReplicaSet }
func NewReplicaSet ¶ added in v0.4.0
func NewReplicaSet(key client.ObjectKey) *ReplicaSet
func NewReplicaSetFromObject ¶ added in v0.4.0
func NewReplicaSetFromObject(obj *appsv1.ReplicaSet) *ReplicaSet
func (*ReplicaSet) Copy ¶ added in v0.4.0
func (rs *ReplicaSet) Copy() *ReplicaSet
type StatefulSet ¶ added in v0.6.5
type StatefulSet struct { *helper.NamespaceScopedAPIObject Key client.ObjectKey Object *appsv1.StatefulSet }
func NewStatefulSet ¶ added in v0.6.5
func NewStatefulSet(key client.ObjectKey) *StatefulSet
func NewStatefulSetFromObject ¶ added in v0.6.5
func NewStatefulSetFromObject(obj *appsv1.StatefulSet) *StatefulSet
func (*StatefulSet) Copy ¶ added in v0.6.5
func (ss *StatefulSet) Copy() *StatefulSet
Click to show internal directories.
Click to hide internal directories.