shared

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Ports = PortMappings{
		HostApiServerPort: 6443,
		HostNatsPort:      4222,
		HostHttpPort:      80,
		HostHttpsPort:     443,
	}
	NetbirdToken    string
	NetbirdSetupKey string

	KubeConfig                string
	KubeConfigRestConfig      *rest.Config
	CloudKubeConfig           string
	CloudKubeConfigRestConfig *rest.Config
	ConfigPath                string
	EdgeNodesNum              = 2
	ClusterName               = "edgefarm"
	CloudClusterName          = "edgefarm"
	ClusterType               string
	ClusterConfig             *v1alpha1.Cluster
	StatePath                 string = "~/.edgefarm-local-up/state.json"
)

Functions

func AddSharedFlags

func AddSharedFlags(flagset *pflag.FlagSet)

func EvaluateKubeConfigPath

func EvaluateKubeConfigPath() error

func Expand

func Expand(path string) (string, error)

func Remove added in v1.9.0

func Remove(path string) error

func Stat added in v1.9.0

func Stat(path string) (os.FileInfo, error)

Types

type ArgsType

type ArgsType struct {
	Deploy bool
	Skip   SkipFlags
	Only   OnlyFlags
}
var (
	Args ArgsType
)

type OnlyFlags

type OnlyFlags struct {
	KubeProxy            bool
	CoreDNS              bool
	Flannel              bool
	CertManager          bool
	Kyverno              bool
	Ingress              bool
	Crossplane           bool
	VaultOperator        bool
	Metacontroller       bool
	Vault                bool
	EdgeFarmCore         bool
	EdgeFarmApplications bool
	EdgeFarmNetwork      bool
	EdgeFarmMonitor      bool
}

type PortMappings

type PortMappings struct {
	HostApiServerPort int
	HostNatsPort      int
	HostHttpPort      int
	HostHttpsPort     int
}

type SkipFlags

type SkipFlags struct {
	Deploy               bool
	KubeProxy            bool
	CoreDNS              bool
	Flannel              bool
	CertManager          bool
	Kyverno              bool
	Crossplane           bool
	VaultOperator        bool
	Metacontroller       bool
	Vault                bool
	EdgeFarmCore         bool
	EdgeFarmApplications bool
	EdgeFarmNetwork      bool
	EdgeFarmMonitor      bool
	Ingress              bool
}

func ConvertOnlyToSkip

func ConvertOnlyToSkip(only OnlyFlags) SkipFlags

Jump to

Keyboard shortcuts

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