testutils

package
v0.4.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 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
	UseEDS              bool
	APIKey              string
}

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