Documentation ¶
Index ¶
- Constants
- func AreDaemonSetPodsReady(newStatus *appsv1.DaemonSetStatus) bool
- func SetBaseValues(interval, timeout time.Duration)
- type ObjectKey
- type Waiter
- func (wt Waiter) ForDaemonSetDeleted(ctx context.Context, namespace, name string) error
- func (wt Waiter) ForDaemonSetReady(ctx context.Context, ds *appsv1.DaemonSet) (*appsv1.DaemonSet, error)
- func (wt Waiter) ForDaemonSetReadyByKey(ctx context.Context, key ObjectKey) (*appsv1.DaemonSet, error)
- func (wt Waiter) ForDeploymentComplete(ctx context.Context, dp *appsv1.Deployment) (*appsv1.Deployment, error)
- func (wt Waiter) ForDeploymentCompleteByKey(ctx context.Context, key ObjectKey, replicas int32) (*appsv1.Deployment, error)
- func (wt Waiter) ForDeploymentDeleted(ctx context.Context, namespace, name string) error
- func (wt Waiter) ForNamespaceDeleted(ctx context.Context, namespace string) error
- func (wt *Waiter) Interval(iv time.Duration) *Waiter
- func (wt *Waiter) String() string
- func (wt *Waiter) Timeout(tt time.Duration) *Waiter
Constants ¶
View Source
const ( // found by trial and error, no hard math behind, can change anytime DefaultPollInterval = 2 * time.Second DefaultPollTimeout = 2 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func AreDaemonSetPodsReady ¶ added in v0.10.0
func AreDaemonSetPodsReady(newStatus *appsv1.DaemonSetStatus) bool
func SetBaseValues ¶ added in v0.15.0
Types ¶
type ObjectKey ¶ added in v0.10.0
func ObjectKeyFromObject ¶ added in v0.10.0
func (ObjectKey) AsKey ¶ added in v0.10.0
func (ok ObjectKey) AsKey() types.NamespacedName
type Waiter ¶ added in v0.11.0
type Waiter struct { Cli client.Client Log logr.Logger PollTimeout time.Duration PollInterval time.Duration }
func (Waiter) ForDaemonSetDeleted ¶ added in v0.11.0
func (Waiter) ForDaemonSetReady ¶ added in v0.11.0
func (Waiter) ForDaemonSetReadyByKey ¶ added in v0.11.0
func (Waiter) ForDeploymentComplete ¶ added in v0.11.0
func (wt Waiter) ForDeploymentComplete(ctx context.Context, dp *appsv1.Deployment) (*appsv1.Deployment, error)
func (Waiter) ForDeploymentCompleteByKey ¶ added in v0.11.0
func (Waiter) ForDeploymentDeleted ¶ added in v0.11.0
func (Waiter) ForNamespaceDeleted ¶ added in v0.11.0
Click to show internal directories.
Click to hide internal directories.