config

package
v0.0.0-...-010ac7f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ApiVersion     string               `yaml:"apiVersion"`
	Kind           string               `yaml:"kind"`
	Health         HealthConfig         `yaml:"health"`
	Metrics        MetricsConfig        `yaml:"metrics"`
	Webhook        WebhookConfig        `yaml:"webhook"`
	LeaderElection LeaderElectionConfig `yaml:"leaderElection"`
}

func ParseFile

func ParseFile(path string) (*Config, error)

func (*Config) ManagerOptions

func (c *Config) ManagerOptions() *manager.Options

type HealthConfig

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

type LeaderElectionConfig

type LeaderElectionConfig struct {
	Enabled    bool   `yaml:"leaderElect"`
	ResourceID string `yaml:"resourceName"`
}

type MetricsConfig

type MetricsConfig struct {
	MetricsBindAddress string `yaml:"bindAddress"`
}

type WebhookConfig

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

Jump to

Keyboard shortcuts

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