testutils

package
v0.6.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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