testutils

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package testutils contains helper function used for the unit-tests.

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.

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
	ReconcileFrequency *metav1.Duration
}

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