kubeproxy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const UnreserveTip = "ignore"

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeProxyLitekubeOptions

type KubeProxyLitekubeOptions struct {
}

options for Litekube to start kube-controller-manager

func NewKubeProxyLitekubeOptions

func NewKubeProxyLitekubeOptions() *KubeProxyLitekubeOptions

func (*KubeProxyLitekubeOptions) AddTips

func (opt *KubeProxyLitekubeOptions) AddTips(section *help.Section)

type KubeProxyOptions

type KubeProxyOptions struct {
	ReservedOptions     map[string]string             `yaml:"reserve"`
	ProfessionalOptions *KubeProxyProfessionalOptions `yaml:"professional"`
	Options             *KubeProxyLitekubeOptions     `yaml:"options"`
	IgnoreOptions       map[string]string             `yaml:"-"`
}

struct to store args from input

func NewKubeProxyOptions

func NewKubeProxyOptions() *KubeProxyOptions

func (*KubeProxyOptions) CheckReservedOptions

func (opt *KubeProxyOptions) CheckReservedOptions() error

delete keys already be disable or define in other block

func (*KubeProxyOptions) HelpSection

func (opt *KubeProxyOptions) HelpSection() *help.Section

func (*KubeProxyOptions) PrintFlags

func (opt *KubeProxyOptions) PrintFlags(prefix string, printFunc func(format string, a ...interface{}) error) error

print all flags

func (*KubeProxyOptions) ToMap

func (opt *KubeProxyOptions) ToMap() (map[string]string, error)

type KubeProxyProfessionalOptions

type KubeProxyProfessionalOptions struct {
	HostnameOverride string `yaml:"hostname-override"`
	ClusterCidr      string `yaml:"cluster-cidr"`
	ProxyMode        string `yaml:"proxy-mode"`
	Kubeconfig       string `yaml:"kubeconfig"`
}

Empirically assigned parameters are not recommended

var DefaultKPPO KubeProxyProfessionalOptions = KubeProxyProfessionalOptions{
	ProxyMode: "ipvs",
}

func NewKubeProxyProfessionalOptions

func NewKubeProxyProfessionalOptions() *KubeProxyProfessionalOptions

func (*KubeProxyProfessionalOptions) AddTips

func (opt *KubeProxyProfessionalOptions) AddTips(section *help.Section)

type PrintFunc

type PrintFunc func(format string, a ...interface{}) error

Jump to

Keyboard shortcuts

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