extendeddaemonset

package
v0.6.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package extendeddaemonset contains ExtendedDaemonset controller logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCanaryDeploymentEnded

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

IsCanaryDeploymentPaused checks if the Canary deployment has been paused.

func IsCanaryDeploymentUnpaused added in v0.5.0

func IsCanaryDeploymentUnpaused(dsAnnotations map[string]string) bool

IsCanaryDeploymentUnpaused checks if the Canary deployment has been manually unpaused.

func IsCanaryDeploymentValid

func IsCanaryDeploymentValid(dsAnnotations map[string]string, rsName string) bool

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

func IsRollingUpdatePaused(dsAnnotations map[string]string) bool

IsRollingUpdatePaused checks if a rolling update has been paused.

func IsRolloutFrozen added in v0.6.0

func IsRolloutFrozen(dsAnnotations map[string]string) bool

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.

Jump to

Keyboard shortcuts

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