test

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: 6 Imported by: 0

Documentation

Overview

Package test contains unit-test helper functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExtendedDaemonSet

func NewExtendedDaemonSet(ns, name string, options *NewExtendedDaemonSetOptions) *datadoghqv1alpha1.ExtendedDaemonSet

NewExtendedDaemonSet return new ExtendedDDaemonset instance for test purpose.

func NewExtendedDaemonSetReplicaSet

func NewExtendedDaemonSetReplicaSet(ns, name string, options *NewExtendedDaemonSetReplicaSetOptions) *datadoghqv1alpha1.ExtendedDaemonSetReplicaSet

NewExtendedDaemonSetReplicaSet returns new ExtendedDaemonSetReplicaSet instance for testing purpose.

func NewExtendedDaemonsetSetting

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

NewExtendedDaemonsetSetting returns new ExtendedDaemonsetSetting instance.

Types

type NewExtendedDaemonSetOptions

type NewExtendedDaemonSetOptions struct {
	CreationTime    *time.Time
	Annotations     map[string]string
	Labels          map[string]string
	RollingUpdate   *datadoghqv1alpha1.ExtendedDaemonSetSpecStrategyRollingUpdate
	Canary          *datadoghqv1alpha1.ExtendedDaemonSetSpecStrategyCanary
	Status          *datadoghqv1alpha1.ExtendedDaemonSetStatus
	PodTemplateSpec *corev1.PodTemplateSpec
}

NewExtendedDaemonSetOptions set of option for the ExtendedDaemonset creation.

type NewExtendedDaemonSetReplicaSetOptions

type NewExtendedDaemonSetReplicaSetOptions struct {
	CreationTime *time.Time
	Annotations  map[string]string
	Labels       map[string]string
	GenerateName string
	OwnerRefName string
	Status       *datadoghqv1alpha1.ExtendedDaemonSetReplicaSetStatus
}

NewExtendedDaemonSetReplicaSetOptions set of option for the ExtendedDaemonsetReplicaSet creation.

type NewExtendedDaemonsetSettingOptions

type NewExtendedDaemonsetSettingOptions struct {
	CreationTime        time.Time
	Selector            map[string]string
	Resources           map[string]corev1.ResourceRequirements
	SelectorRequirement []metav1.LabelSelectorRequirement
}

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