Documentation ¶
Overview ¶
Package provider contains the interface required to support the Liqo install for a given provider.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Providers = []string{"kubeadm", "kind", "k3s", "eks", "gke", "aks", "openshift"}
Providers list of providers supported by liqoctl.
Functions ¶
This section is empty.
Types ¶
type CommonArguments ¶
type CommonArguments struct { Version string Debug bool Timeout time.Duration DumpValues bool DumpValuesPath string DryRun bool CommonValues map[string]interface{} Devel bool DisableEndpointCheck bool ChartPath string }
CommonArguments encapsulates all the arguments common across install providers.
func ValidateCommonArguments ¶
func ValidateCommonArguments(providerName string, flags *flag.FlagSet) (*CommonArguments, error)
ValidateCommonArguments validates install common arguments. If the inputs are valid, it returns a *CommonArgument with all the parameters contents.
type GenericProvider ¶
type GenericProvider struct { ReservedSubnets []string ClusterLabels map[string]string ClusterName string }
GenericProvider includes the fields and the logic required by every install provider.
func (*GenericProvider) ValidateGenericCommandArguments ¶
func (p *GenericProvider) ValidateGenericCommandArguments(flags *flag.FlagSet) (err error)
ValidateGenericCommandArguments validates the flags required by every install provider.
type InstallProviderInterface ¶
type InstallProviderInterface interface { // ValidateCommandArguments validates the flags passed as arguments to the install command ValidateCommandArguments(*flag.FlagSet) error // ExtractChartParameters retrieves the install parameters required for a correct installation. This may require // instantiating extra clients to interact with cloud provider or the target cluster. ExtractChartParameters(context.Context, *rest.Config, *CommonArguments) error // UpdateChartValues patches the values map of a selected chart, modifying keys and entries to correctly install Liqo on a given // provider UpdateChartValues(values map[string]interface{}) }
InstallProviderInterface defines the methods required to support the Liqo install for a given provider.