Documentation ¶
Overview ¶
Package installutils implements some utility functions for the liqo install providers
Index ¶
- Constants
- func CheckEndpoint(endpoint string, config *rest.Config) (bool, error)
- func CheckStringFlagIsSet(flags *flag.FlagSet, name string) (string, error)
- func GetInterfaceMap(in map[string]string) map[string]interface{}
- func GetInterfaceSlice(in []string) []interface{}
- func GetOldClusterName(ctx context.Context, k8sClient kubernetes.Interface) (string, error)
- func GetStringMap(in map[string]interface{}) map[string]string
- func MergeMaps(baseMap, patchMap map[string]interface{}) (resultMap map[string]interface{}, err error)
Constants ¶
View Source
const ( // LiqoctlInstallShortHelp contains the short help message for install Liqoctl command. LiqoctlInstallShortHelp = "Install Liqo on a selected cluster" // LiqoctlInstallLongHelp contains the long help message for install Liqoctl command. LiqoctlInstallLongHelp = `Install Liqo on a selected cluster` // LiqoctlInstallCommand contains the use command for the Liqo installation command. LiqoctlInstallCommand = "install" // LiqoNamespace contains the default namespace for Liqo installation. LiqoNamespace = "liqo" // LiqoChartFullName indicates the name where the Liqo chart can be retrieved. LiqoChartFullName = "liqo/liqo" // LiqoReleaseName indicates the default release name when installing the Liqo chart. LiqoReleaseName = "liqo" )
Variables ¶
This section is empty.
Functions ¶
func CheckEndpoint ¶
CheckEndpoint checks if the provided endpoint end the endpoint contained in the rest.Config point to the same server.
func CheckStringFlagIsSet ¶
CheckStringFlagIsSet checks that a string flag is set and returns its value.
func GetInterfaceMap ¶
GetInterfaceMap casts a map of [string]string to a map of [string]interface{}.
func GetInterfaceSlice ¶
func GetInterfaceSlice(in []string) []interface{}
GetInterfaceSlice casts a slice of string to a slice in interface{}.
func GetOldClusterName ¶ added in v0.3.2
GetOldClusterName returns the cluster name used in the previous installation (if any).
func GetStringMap ¶ added in v0.3.2
GetStringMap converts a map of [string]interface{} to a map of [string]string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.