extendeddaemonset

package
v0.2.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new ExtendedDaemonSet Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

func AddMetrics

func AddMetrics(mgr manager.Manager, h metrics.Handler) error

AddMetrics add ExtentedDaemonSet metrics

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 ReconcileExtendedDaemonSet

type ReconcileExtendedDaemonSet struct {
	// contains filtered or unexported fields
}

ReconcileExtendedDaemonSet reconciles a ExtendedDaemonSet object

func (*ReconcileExtendedDaemonSet) Reconcile

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.

Jump to

Keyboard shortcuts

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