Documentation ¶
Index ¶
- Constants
- type ControllerManagerLitekubeOptions
- type ControllerManagerOptions
- func (opt *ControllerManagerOptions) CheckReservedOptions() error
- func (opt *ControllerManagerOptions) HelpSection() *help.Section
- func (opt *ControllerManagerOptions) PrintFlags(prefix string, printFunc func(format string, a ...interface{}) error) error
- func (opt *ControllerManagerOptions) ToMap() (map[string]string, error)
- type ControllerManagerProfessionalOptions
- type PrintFunc
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
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)
Click to show internal directories.
Click to hide internal directories.