Documentation ¶
Index ¶
- Constants
- func DefaultOptionsForComponentAndVersion(component string, version semver.Version) (map[string]string, error)
- func ExtraConfigForComponent(component string, opts util.ExtraOptionSlice, version semver.Version) (map[string]string, error)
- func NewKubeletConfig(k8s bootstrapper.KubernetesConfig) (string, error)
- func ParseKubernetesVersion(version string) (semver.Version, error)
- func VersionIsBetween(version, gte, lte semver.Version) bool
- type ComponentExtraArgs
- type KubeadmBootstrapper
- func (k *KubeadmBootstrapper) GetClusterLogs(follow bool) (string, error)
- func (k *KubeadmBootstrapper) GetClusterStatus() (string, error)
- func (k *KubeadmBootstrapper) RestartCluster(k8s bootstrapper.KubernetesConfig) error
- func (k *KubeadmBootstrapper) SetupCerts(k8s bootstrapper.KubernetesConfig) error
- func (k *KubeadmBootstrapper) StartCluster(k8s bootstrapper.KubernetesConfig) error
- func (k *KubeadmBootstrapper) UpdateCluster(cfg bootstrapper.KubernetesConfig) error
- type VersionedExtraOption
Constants ¶
View Source
const ( Kubelet = "kubelet" Apiserver = "apiserver" Scheduler = "scheduler" ControllerManager = "controller-manager" )
These are the components that can be configured through the "extra-config"
Variables ¶
This section is empty.
Functions ¶
func DefaultOptionsForComponentAndVersion ¶ added in v0.22.3
func ExtraConfigForComponent ¶ added in v0.22.3
func ExtraConfigForComponent(component string, opts util.ExtraOptionSlice, version semver.Version) (map[string]string, error)
ExtraConfigForComponent generates a map of flagname-value pairs for a k8s component.
func NewKubeletConfig ¶ added in v0.22.3
func NewKubeletConfig(k8s bootstrapper.KubernetesConfig) (string, error)
func ParseKubernetesVersion ¶ added in v0.22.3
func VersionIsBetween ¶ added in v0.22.3
Types ¶
type ComponentExtraArgs ¶ added in v0.22.3
func NewComponentExtraArgs ¶ added in v0.22.3
func NewComponentExtraArgs(opts util.ExtraOptionSlice, version semver.Version) ([]ComponentExtraArgs, error)
type KubeadmBootstrapper ¶
type KubeadmBootstrapper struct {
// contains filtered or unexported fields
}
func NewKubeadmBootstrapper ¶
func NewKubeadmBootstrapper(api libmachine.API) (*KubeadmBootstrapper, error)
func (*KubeadmBootstrapper) GetClusterLogs ¶
func (k *KubeadmBootstrapper) GetClusterLogs(follow bool) (string, error)
TODO(r2d4): Should this aggregate all the logs from the control plane? Maybe subcommands for each component? minikube logs apiserver?
func (*KubeadmBootstrapper) GetClusterStatus ¶
func (k *KubeadmBootstrapper) GetClusterStatus() (string, error)
TODO(r2d4): This should most likely check the health of the apiserver
func (*KubeadmBootstrapper) RestartCluster ¶
func (k *KubeadmBootstrapper) RestartCluster(k8s bootstrapper.KubernetesConfig) error
func (*KubeadmBootstrapper) SetupCerts ¶
func (k *KubeadmBootstrapper) SetupCerts(k8s bootstrapper.KubernetesConfig) error
func (*KubeadmBootstrapper) StartCluster ¶
func (k *KubeadmBootstrapper) StartCluster(k8s bootstrapper.KubernetesConfig) error
func (*KubeadmBootstrapper) UpdateCluster ¶
func (k *KubeadmBootstrapper) UpdateCluster(cfg bootstrapper.KubernetesConfig) error
type VersionedExtraOption ¶ added in v0.22.3
type VersionedExtraOption struct { // The flag and component that will be set Option util.ExtraOption // This flag will only be applied to versions before or equal to this version // If it is the default value, it will have no upper bound on versions the // flag is applied to LessThanOrEqual semver.Version // The flag will only be applied to versions after or equal to this version // If it is the default value, it will have no lower bound on versions the // flag is applied to GreaterThanOrEqual semver.Version }
VersionedExtraOption holds information on flags to apply to a specific range of versions
Click to show internal directories.
Click to hide internal directories.