Documentation
¶
Index ¶
- func Add(mgr manager.Manager) error
- func AddMetrics(mgr manager.Manager, h metrics.Handler) error
- 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 IsCanaryDeploymentValid(dsAnnotations map[string]string, rsName string) bool
- type ReconcileExtendedDaemonSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
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 ¶
AddMetrics add ExtentedDaemonSet metrics
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 ¶
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 ¶
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.