kubeadm

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package kubeadm implements the logic to install Liqo on a kubeadm-based cluster

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFlags

func GenerateFlags(command *cobra.Command)

GenerateFlags generates the set of specific subpath and flags are accepted for a specific provider.

func NewProvider

func NewProvider() provider.InstallProviderInterface

NewProvider initializes a new Kubeadm struct.

Types

type Kubeadm

type Kubeadm struct {
	provider.GenericProvider
	APIServer   string
	Config      *rest.Config
	PodCIDR     string
	ServiceCIDR string
	K8sClient   kubernetes.Interface
}

Kubeadm contains the parameters required to install Liqo on a kubeadm cluster and a dedicated client to fetch those values.

func (*Kubeadm) ExtractChartParameters

func (k *Kubeadm) ExtractChartParameters(ctx context.Context, config *rest.Config, _ *provider.CommonArguments) error

ExtractChartParameters fetches the parameters used to customize the Liqo installation on a specific cluster of a given provider.

func (*Kubeadm) UpdateChartValues

func (k *Kubeadm) UpdateChartValues(values map[string]interface{})

UpdateChartValues patches the values map with the values required for the selected cluster.

func (*Kubeadm) ValidateCommandArguments

func (k *Kubeadm) ValidateCommandArguments(flags *flag.FlagSet) (err error)

ValidateCommandArguments validates specific arguments passed to the install command.

Jump to

Keyboard shortcuts

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