testutils

package
v0.6.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugPrint

func DebugPrint(writer io.Writer, obj interface{})

DebugPrint prints a JSON representation of a compatible obj to given writer

func NewDatadogAgent

func NewDatadogAgent(ns, name, image string, options *NewDatadogAgentOptions) *datadoghqv1alpha1.DatadogAgent

NewDatadogAgent returns new DatadogAgent instance with is config hash

func NewNode

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

NewNode returns a fake, but ready, K8S node

Types

type NewDatadogAgentOptions

type NewDatadogAgentOptions struct {
	ExtraLabels                  map[string]string
	ExtraAnnotations             map[string]string
	ClusterAgentEnabled          bool
	OrchestratorExplorerDisabled bool
	UseEDS                       bool
	APIKey                       string
	AppKey                       string
	CustomConfig                 *datadoghqv1alpha1.CustomConfigSpec
	SecuritySpec                 *datadoghqv1alpha1.SecuritySpec
	VolumeMounts                 []v1.VolumeMount
}

NewDatadogAgentOptions used to provide creation options to the NewDatadogAgent function

Jump to

Keyboard shortcuts

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