config

package
v0.0.0-...-ab60f3c Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 11 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 {
	HealthProbeBindAddress string         `yaml:"healthProbeBindAddress"`
	Job                    Job            `yaml:"job"`
	LeaderElection         LeaderElection `yaml:"leaderElection"`
	Metrics                Metrics        `yaml:"metrics"`
	Webhook                Webhook        `yaml:"webhook"`
	Worker                 Worker         `yaml:"worker"`
}

func ParseFile

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

func (*Config) ManagerOptions

func (c *Config) ManagerOptions(logger logr.Logger) *manager.Options

type Job

type Job struct {
	GCDelay time.Duration `yaml:"gcDelay,omitempty"`
}

type LeaderElection

type LeaderElection struct {
	Enabled    bool   `yaml:"enabled"`
	ResourceID string `yaml:"resourceID"`
}

type Metrics

type Metrics struct {
	BindAddress      string `yaml:"bindAddress"`
	DisableHTTP2     bool   `yaml:"disableHTTP2"`
	EnableAuthnAuthz bool   `yaml:"enableAuthnAuthz"`
	SecureServing    bool   `yaml:"secureServing"`
}

type Webhook

type Webhook struct {
	DisableHTTP2 bool `yaml:"disableHTTP2"`
	Port         int  `yaml:"port"`
}

type Worker

type Worker struct {
	RunAsUser        *int64  `yaml:"runAsUser"`
	SELinuxType      string  `yaml:"seLinuxType"`
	FirmwareHostPath *string `yaml:"firmwareHostPath,omitempty"`
}

Jump to

Keyboard shortcuts

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