config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: MIT Imports: 4 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 {
	ReconcilationInterval       time.Duration `json:"-"`
	ReconcilationIntervalHelper string        `json:"reconcilationInterval"`
	RestartInterval             time.Duration `json:"-"`
	RestartIntervalHelper       string        `json:"restartInterval"`
	Include                     Matcher       `json:"include"`
	Exclude                     Matcher       `json:"exclude"`
}

Config represents the configuration of this service

func GetConfig

func GetConfig(cf string) (*Config, error)

GetConfig reads and parses the configuration from the configuration file

type Matcher

type Matcher struct {
	Enabled   bool       `json:"enabled"`
	Selectors []Selector `json:"selectors"`
}

type Selector

type Selector struct {
	Namespace   string            `json:"namespace"`
	MatchLabels map[string]string `json:"matchLabels"`
}

Jump to

Keyboard shortcuts

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