Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
NewCommand creates a new Cobra command and a new Runner object, which is used to install Radius onto a Kubernetes cluster. It also adds flags to the command for setting values, reinstalling, and specifying a Helm chart.
Types ¶
type Runner ¶
type Runner struct {
Helm helm.Interface
Output output.Interface
ConnectionFactory connections.Factory
KubernetesInterface cli_kubernetes.Interface
KubeContext string
// Radius
Chart string
Set []string
SetFile []string
// Contour
ContourDisabled bool
ContourChart string
ContourSet []string
ContourSetFile []string
Reinstall bool
}
Runner is the Runner implementation for the `rad install kubernetes` command.
func NewRunner ¶
NewRunner creates a new Runner struct with Helm, Output, ConnectionFactory and KubernetesInterface fields initialized from the supplied factory.
func (*Runner) Run ¶
Run checks if a Radius installation exists, and if it does, it either skips the installation or reinstalls it depending on the "Reinstall" flag. If no installation is found, it installs the version of Radius corresponding to the cli version. After a successful install or reinstall it ensures the default resource group and environment exist, creating each only when it is missing so existing user customizations are preserved. It returns any errors that occur during these steps.