flags

package
v0.0.0-...-6a1af5e Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogStartupConfig

func LogStartupConfig(parsedFlags any, loggingConfig *LoggingConfig)

Types

type ClientSets

type ClientSets struct {
	Resource *draclient.Client
	Core     coreclientset.Interface
	Nvidia   nvclientset.Interface
}

type FeatureGateConfig

type FeatureGateConfig struct{}

FeatureGateConfig manages the unified feature gate registry containing both project-specific and standard Kubernetes feature gates.

func NewFeatureGateConfig

func NewFeatureGateConfig() *FeatureGateConfig

NewFeatureGateConfig creates a new unified feature gate configuration.

func (*FeatureGateConfig) Flags

func (f *FeatureGateConfig) Flags() []cli.Flag

Flags returns the CLI flags for the unified feature gate configuration.

type KubeClientConfig

type KubeClientConfig struct {
	KubeConfig   string
	KubeAPIQPS   float64
	KubeAPIBurst int
}

func (*KubeClientConfig) Flags

func (k *KubeClientConfig) Flags() []cli.Flag

func (*KubeClientConfig) NewClientSetConfig

func (k *KubeClientConfig) NewClientSetConfig() (*rest.Config, error)

func (*KubeClientConfig) NewClientSets

func (k *KubeClientConfig) NewClientSets() (ClientSets, error)

type LoggingConfig

type LoggingConfig struct {
	// contains filtered or unexported fields
}

func NewLoggingConfig

func NewLoggingConfig() *LoggingConfig

NewLoggingConfig creates a new logging configuration.

func (*LoggingConfig) Apply

func (l *LoggingConfig) Apply() error

Apply should be called in a cli.App.Before directly after parsing command line flags and before running any code which emits log entries. It uses the global feature gate singleton.

func (*LoggingConfig) Flags

func (l *LoggingConfig) Flags() []cli.Flag

Flags returns the flags for logging configuration (NOT including feature gates).

Jump to

Keyboard shortcuts

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