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 ¶
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).
Click to show internal directories.
Click to hide internal directories.