kubernetesk8s.io/kubernetes/test/utils/ktesting Index | Files

package ktesting

import "k8s.io/kubernetes/test/utils/ktesting"

Package ktesting is a wrapper around k8s.io/klog/v2/ktesting. It provides those (and only those) functions that test code in Kubernetes should use, plus better dumping of complex datatypes. It adds the klog command line flags and increases the default verbosity to 5.

Index

Functions

func NewTestContext

func NewTestContext(tl ktesting.TL) (klog.Logger, context.Context)

NewTestContext is a wrapper around ktesting.NewTestContext with settings specific to Kubernetes.

func SetDefaultVerbosity

func SetDefaultVerbosity(v int)

SetDefaultVerbosity can be called during init to modify the default log verbosity of the program.

Source Files

ktesting.go

Version
v1.27.14
Published
May 14, 2024
Platform
darwin/amd64
Imports
6 packages
Last checked
48 seconds ago

Tools for package owners.