extendeddaemonset

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

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) bool

IsCanaryDeploymentFailed checks if the Canary deployment has been failed

func IsCanaryDeploymentPaused

func IsCanaryDeploymentPaused(dsAnnotations map[string]string) (bool, datadoghqv1alpha1.ExtendedDaemonSetStatusReason)

IsCanaryDeploymentPaused checks if the Canary deployment has been paused

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

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

Jump to

Keyboard shortcuts

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