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 KubeContext string Chart string Reinstall bool Set []string SetFile []string }
Runner is the Runner implementation for the `rad install kubernetes` command.
func NewRunner ¶
NewRunner creates a new Runner struct with Helm and Output fields initialized with the HelmInterface and Output objects returned by the Factory's GetHelmInterface and GetOutput methods respectively.
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. It then returns any errors that occur during the installation.