config

package
v0.0.0-...-3881267 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 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 {
	*Labels            `yaml:"labels"`
	*Paths             `yaml:"paths"`
	PreflightResources *Resources `yaml:"preflightResources"`
	WatchedResources   *Resources `yaml:"watchedResources"`
	CleanUpResources   *Resources `yaml:"cleanUpResources"`

	Client *kubernetes.Clientset
	Log    *logrus.Entry
}

func New

func New(configPath string, logLevel logrus.Level, kubeFactory cmdutil.Factory) (*Config, error)

type Labels

type Labels struct {
	CalicoCilium      string `yaml:"calico-cilium"`
	Rolled            string `yaml:"rolled"`
	CNIPriorityCalico string `yaml:"cni-priority-calico"`
	CNIPriorityCilium string `yaml:"cni-priority-cilium"`

	Cilium   string `yaml:"cilium"`
	Migrated string `yaml:"migrated"`

	Value string `yaml:"value"`
}

type Paths

type Paths struct {
	KnetStress string `yaml:"knet-stress"`
	Cilium     string `yaml:"cilium"`
	Multus     string `yaml:"multus"`
}

type Resources

type Resources struct {
	DaemonSets   map[string][]string `yaml:"daemonsets"`
	Deployments  map[string][]string `yaml:"deployments"`
	StatefulSets map[string][]string `yaml:"statefulsets"`
}

Jump to

Keyboard shortcuts

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