testutils

package
v0.4.0-rc.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDaemonset

func NewDaemonset(ns, name, image string, options *NewDaemonsetOptions) *appsv1.DaemonSet

NewDaemonset returns new ExtendedDaemonSet instance

func NewExtendedDaemonset

func NewExtendedDaemonset(ns, name, image string, options *NewExtendedDaemonsetOptions) *datadoghqv1alpha1.ExtendedDaemonSet

NewExtendedDaemonset returns new ExtendedDaemonSet instance

func NewExtendedDaemonsetSetting

func NewExtendedDaemonsetSetting(ns, name, reference string, options *NewExtendedDaemonsetSettingOptions) *datadoghqv1alpha1.ExtendedDaemonsetSetting

NewExtendedDaemonsetSetting returns new ExtendedDaemonsetSetting instance

func NewNode

func NewNode(name string, labels map[string]string) *corev1.Node

NewNode returns a fake, but ready, K8S node

func UpdateDaemonSetFunc

func UpdateDaemonSetFunc(client client.Client, namespace, name string, updateFunc func(ds *appsv1.DaemonSet), retryInterval, timeout time.Duration) error

UpdateDaemonSetFunc used to update a DaemonSet with retry and timeout policy

func UpdateExtendedDaemonSetFunc

func UpdateExtendedDaemonSetFunc(client client.Client, namespace, name string, updateFunc func(eds *datadoghqv1alpha1.ExtendedDaemonSet), retryInterval, timeout time.Duration) error

UpdateExtendedDaemonSetFunc used to update a ExtendedDaemonSet with retry and timeout policy

Types

type NewDaemonsetOptions

type NewDaemonsetOptions struct {
	ExtraLabels map[string]string
}

NewDaemonsetOptions used to provide creation options to the NewdDaemonset function

type NewExtendedDaemonsetOptions

type NewExtendedDaemonsetOptions struct {
	ExtraLabels      map[string]string
	ExtraAnnotations map[string]string
	CanaryStrategy   *datadoghqv1alpha1.ExtendedDaemonSetSpecStrategyCanary
	RollingUpdate    *datadoghqv1alpha1.ExtendedDaemonSetSpecStrategyRollingUpdate
}

NewExtendedDaemonsetOptions used to provide creation options to the NewExtendedDaemonset function

type NewExtendedDaemonsetSettingOptions

type NewExtendedDaemonsetSettingOptions struct {
	Selector  map[string]string
	Resources map[string]corev1.ResourceRequirements
}

NewExtendedDaemonsetSettingOptions used to provide creation options to the NewExtendedDaemonsetSetting function

Jump to

Keyboard shortcuts

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