config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

type APIServer struct {
	ExtraArgs map[string]string `yaml:"extraArgs"`
}

type Audit

type Audit struct {
	Address string
}

type Config

type Config struct {
	Registry           Registry
	Audit              Audit
	Feature            Feature
	Kubelet            Kubelet           `yaml:"kubelet"`
	APIServer          APIServer         `yaml:"apiServer"`
	ControllerManager  ControllerManager `yaml:"controllerManager"`
	Scheduler          Scheduler         `yaml:"scheduler"`
	SupportK8sVersion  []string
	CustomRegistry     string
	EnableCustomCert   bool
	EnableCustomImages bool
}

func NewDefaultConfig

func NewDefaultConfig() *Config

func (*Config) AddFlags

func (r *Config) AddFlags(fs *pflag.FlagSet)

func (*Config) ImageFullName

func (r *Config) ImageFullName(name, tag string) string

func (*Config) IsK8sSupport

func (r *Config) IsK8sSupport(version string) bool

func (*Config) KubeAllImageFullName

func (r *Config) KubeAllImageFullName(name, tag string) string

func (*Config) KubeProxyImagesName

func (r *Config) KubeProxyImagesName(tag string) string

func (*Config) NeedSetHosts

func (r *Config) NeedSetHosts() bool

type ControllerManager

type ControllerManager struct {
	ExtraArgs map[string]string `yaml:"extraArgs"`
}

type Feature

type Feature struct {
	SkipConditions []string
}

type Kubelet

type Kubelet struct {
	ExtraArgs map[string]string `yaml:"extraArgs"`
}

type Registry

type Registry struct {
	Prefix    string
	IP        string
	Domain    string
	Namespace string
}

type Scheduler

type Scheduler struct {
	ExtraArgs map[string]string `yaml:"extraArgs"`
}

Jump to

Keyboard shortcuts

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