controllermanager

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 ControllerManagerLitekubeOptions

type ControllerManagerLitekubeOptions struct {
	AllocateNodeCidrs            bool   `yaml:"allocate-node-cidrs"`
	ClusterCidr                  string `yaml:"cluster-cidr"`
	Profiling                    bool   `yaml:"profiling"`
	UseServiceAccountCredentials bool   `yaml:"use-service-account-credentials"`
}

options for Litekube to start kube-controller-manager

var DefaultCMLO ControllerManagerLitekubeOptions = ControllerManagerLitekubeOptions{
	AllocateNodeCidrs:            true,
	ClusterCidr:                  "172.17.0.0/16",
	Profiling:                    false,
	UseServiceAccountCredentials: true,
}

func NewControllerManagerLitekubeOptions

func NewControllerManagerLitekubeOptions() *ControllerManagerLitekubeOptions

func (*ControllerManagerLitekubeOptions) AddTips

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

type ControllerManagerOptions

type ControllerManagerOptions struct {
	ReservedOptions     map[string]string                     `yaml:"reserve"`
	ProfessionalOptions *ControllerManagerProfessionalOptions `yaml:"professional"`
	Options             *ControllerManagerLitekubeOptions     `yaml:"options"`
	IgnoreOptions       map[string]string                     `yaml:"-"`
}

struct to store args from input

func NewControllerManagerOptions

func NewControllerManagerOptions() *ControllerManagerOptions

func (*ControllerManagerOptions) CheckReservedOptions

func (opt *ControllerManagerOptions) CheckReservedOptions() error

delete keys already be disable or define in other block

func (*ControllerManagerOptions) HelpSection

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

func (*ControllerManagerOptions) PrintFlags

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

print all flags

func (*ControllerManagerOptions) ToMap

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

type ControllerManagerProfessionalOptions

type ControllerManagerProfessionalOptions struct {
	BindAddress                               string `yaml:"bind-address"`
	SecurePort                                uint16 `yaml:"secure-port"`
	LeaderElect                               bool   `yaml:"leader-elect"`
	ConfigureCloudRoutes                      bool   `yaml:"configure-cloud-routes"`
	Controllers                               string `yaml:"controllers"`
	FeatureGates                              string `yaml:"feature-gates"`
	Kubeconfig                                string `yaml:"kubeconfig"`
	AuthorizationKubeconfig                   string `yaml:"authorization-kubeconfig"`
	AuthenticationKubeconfig                  string `yaml:"authentication-kubeconfig"`
	ServiceAccountPrivateKeyFile              string `yaml:"service-account-private-key-file"`
	RootCaFile                                string `yaml:"root-ca-file"`
	ClusterSigningKubeApiserverClientCertFile string `yaml:"cluster-signing-kube-apiserver-client-cert-file"`
	ClusterSigningKubeApiserverClientKeyFile  string `yaml:"cluster-signing-kube-apiserver-client-key-file"`
	ClusterSigningKubeletClientCertFile       string `yaml:"cluster-signing-kubelet-client-cert-file"`
	ClusterSigningKubeletClientKeyFile        string `yaml:"cluster-signing-kubelet-client-key-file"`
	ClusterSigningKubeletServingCertFile      string `yaml:"cluster-signing-kubelet-serving-cert-file"`
	ClusterSigningKubeletServingKeyFile       string `yaml:"cluster-signing-kubelet-serving-key-file"`
	ClusterSigningLegacyUnknownCertFile       string `yaml:"cluster-signing-legacy-unknown-cert-file"`
	ClusterSigningLegacyUnknownKeyFile        string `yaml:"cluster-signing-legacy-unknown-key-file"`
}

Empirically assigned parameters are not recommended

var DefaultCMPO ControllerManagerProfessionalOptions = ControllerManagerProfessionalOptions{
	BindAddress:          "0.0.0.0",
	SecurePort:           10257,
	LeaderElect:          false,
	ConfigureCloudRoutes: false,
	Controllers:          "*,-service,-route,-cloud-node-lifecycle",
	FeatureGates:         "JobTrackingWithFinalizers=true",
}

func NewControllerManagerProfessionalOptions

func NewControllerManagerProfessionalOptions() *ControllerManagerProfessionalOptions

func (*ControllerManagerProfessionalOptions) AddTips

func (opt *ControllerManagerProfessionalOptions) 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