installutils

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: 10 Imported by: 0

Documentation

Overview

Package installutils implements some utility functions for the liqo install providers

Index

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

func CheckEndpoint(endpoint string, config *rest.Config) (bool, error)

CheckEndpoint checks if the provided endpoint end the endpoint contained in the rest.Config point to the same server.

func CheckStringFlagIsSet

func CheckStringFlagIsSet(flags *flag.FlagSet, name string) (string, error)

CheckStringFlagIsSet checks that a string flag is set and returns its value.

func GetInterfaceMap

func GetInterfaceMap(in map[string]string) map[string]interface{}

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

func GetOldClusterName(ctx context.Context, k8sClient kubernetes.Interface) (string, error)

GetOldClusterName returns the cluster name used in the previous installation (if any).

func GetStringMap added in v0.3.2

func GetStringMap(in map[string]interface{}) map[string]string

GetStringMap converts a map of [string]interface{} to a map of [string]string.

func MergeMaps added in v0.3.2

func MergeMaps(baseMap, patchMap map[string]interface{}) (resultMap map[string]interface{}, err error)

MergeMaps merges two maps recursively writing the result to resultMap. In case keys are found in both maps, patchMap's values will be chosen over baseMap's.

Types

This section is empty.

Jump to

Keyboard shortcuts

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