Documentation ¶
Overview ¶
Package extendeddaemonset contains ExtendedDaemonset controller logic.
Index ¶
- func IsCanaryDeploymentEnded(specCanary *datadoghqv1alpha1.ExtendedDaemonSetSpecStrategyCanary, ...) (bool, time.Duration)
- func IsCanaryDeploymentFailed(dsAnnotations map[string]string, ...) bool
- func IsCanaryDeploymentPaused(dsAnnotations map[string]string, ...) (bool, datadoghqv1alpha1.ExtendedDaemonSetStatusReason)
- func IsCanaryDeploymentUnpaused(dsAnnotations map[string]string) bool
- func IsCanaryDeploymentValid(dsAnnotations map[string]string, rsName string) bool
- func IsRollingUpdatePaused(dsAnnotations map[string]string) bool
- func IsRolloutFrozen(dsAnnotations map[string]string) bool
- type Reconciler
- type ReconcilerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCanaryDeploymentEnded ¶
func IsCanaryDeploymentEnded(specCanary *datadoghqv1alpha1.ExtendedDaemonSetSpecStrategyCanary, rs *datadoghqv1alpha1.ExtendedDaemonSetReplicaSet, now time.Time) (bool, time.Duration)
IsCanaryDeploymentEnded used to know if the Canary duration has finished. If the duration is completed: return true If the duration is not completed: return false and the remaining duration.
func IsCanaryDeploymentFailed ¶
func IsCanaryDeploymentFailed(dsAnnotations map[string]string, ers *datadoghqv1alpha1.ExtendedDaemonSetReplicaSet) bool
IsCanaryDeploymentFailed checks if the Canary deployment has been failed.
func IsCanaryDeploymentPaused ¶
func IsCanaryDeploymentPaused(dsAnnotations map[string]string, ers *datadoghqv1alpha1.ExtendedDaemonSetReplicaSet) (bool, datadoghqv1alpha1.ExtendedDaemonSetStatusReason)
IsCanaryDeploymentPaused checks if the Canary deployment has been paused.
func IsCanaryDeploymentUnpaused ¶ added in v0.5.0
IsCanaryDeploymentUnpaused checks if the Canary deployment has been manually unpaused.
func IsCanaryDeploymentValid ¶
IsCanaryDeploymentValid used to know if the Canary deployment has been declared valid even if its duration has not finished yet. If the ExtendedDaemonSet has the corresponding annotation: return true.
func IsRollingUpdatePaused ¶ added in v0.6.0
IsRollingUpdatePaused checks if a rolling update has been paused.
func IsRolloutFrozen ¶ added in v0.6.0
IsRolloutFrozen checks if a rollout has been freezed.
Types ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler is the internal reconciler for ExtendedDaemonSet.
func NewReconciler ¶
func NewReconciler(options ReconcilerOptions, client client.Client, scheme *runtime.Scheme, log logr.Logger, recorder record.EventRecorder) (*Reconciler, error)
NewReconciler returns a reconciler for DatadogAgent.
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a ExtendedDaemonSet object and makes changes based on the state read and what is in the ExtendedDaemonSet.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
type ReconcilerOptions ¶
type ReconcilerOptions struct{}
ReconcilerOptions provides options read from command line.
Directories ¶
Path | Synopsis |
---|---|
Package conditions contains status conditions helpers.
|
Package conditions contains status conditions helpers. |