utils

package
v1.94.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeduplicateWarnings added in v1.16.0

func DeduplicateWarnings()

DeduplicateWarnings configures a client-go warning handler that deduplicates API warnings in order to not spam production logs of gardener components.

func InitRun added in v1.84.0

func InitRun(cmd *cobra.Command, opts Options, name string) (logr.Logger, error)

InitRun initializes the run command by completing and validating the options, creating and settings a logger, printing all command line flags, and configuring command settings.

Types

type Options added in v1.84.0

type Options interface {
	// Complete completes the options.
	Complete() error
	// Validate validates the options.
	Validate() error
	// LogConfig returns the logging config.
	LogConfig() (logLevel, logFormat string)
}

Options is an interface for options.

Jump to

Keyboard shortcuts

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