Documentation
¶
Index ¶
Constants ¶
View Source
const ( Yellow = "\033[33m" Green = "\033[32m" Red = "\033[31m" Reset = "\033[0m" Blue = "\033[34m" Cyan = "\033[36m" )
ANSI escape codes for colors
Variables ¶
This section is empty.
Functions ¶
func CreateDeploymentSpinner ¶
func LoadKubeConfig ¶
LoadKubeConfig loads the kubeconfig from the default location
func PromptConfirmation ¶
func PromptK8sContext ¶
PromptK8sContext retrieves Kubernetes contexts from kubeconfig.
func RemoveInstallerEntry ¶
Types ¶
type InstallerEntry ¶
type InstallerEntry struct {
Name string `yaml:"name"`
Namespace string `yaml:"namespace"`
Version string `yaml:"version"`
Status string `yaml:"status"` // todo ideally should be a heartbeat
}
InstallerEntry represents an entry in the installer.yaml file
func PromptClusterSelection ¶
func PromptClusterSelection(entries []InstallerEntry) (InstallerEntry, error)
func ReadInstallerConfigMap ¶
func ReadInstallerConfigMap() ([]InstallerEntry, error)
ReadInstallerConfigMap fetches and parses installer data from a ConfigMap
Click to show internal directories.
Click to hide internal directories.