managerconfig

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(filepath string, scheme *runtime.Scheme) (manager.Options, error)

Load loads the config yaml from the provided path and converts it to manger.Options struct.

Types

type Config

type Config struct {
	Health         HealthCfg         `yaml:"health"`
	Metrics        ServerConfig      `yaml:"metrics"`
	Pprof          ServerConfig      `yaml:"pprof"`
	Webhook        WebhookCfg        `yaml:"webhook"`
	LeaderElection LeaderElectionCfg `yaml:"leaderElection"`
}

Config holds internal config that is used to create manger.Options struct.

type HealthCfg

type HealthCfg struct {
	HealthProbeBindAddress string `yaml:"healthProbeBindAddress"`
}

HealthCfg holds internal config for health options of manger.Options struct.

type LeaderElectionCfg

type LeaderElectionCfg struct {
	LeaderElect  bool   `yaml:"leaderElect"`
	ResourceName string `yaml:"resourceName"`
}

LeaderElectionCfg holds internal config for leader election options of manger.Options struct.

type ServerConfig added in v0.2.5

type ServerConfig struct {
	BindAddress string `yaml:"bindAddress"`
}

MetricsCfg holds internal config for metrics options of manger.Options struct.

type WebhookCfg

type WebhookCfg struct {
	Port int `yaml:"port"`
}

WebhookCfg holds internal config for webhook options of manger.Options struct.

Jump to

Keyboard shortcuts

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