kubernetes

package
v0.26.5 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(factory framework.Factory) (*cobra.Command, framework.Runner)

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
}

Runner is the Runner implementation for the `rad install kubernetes` command.

func NewRunner

func NewRunner(factory framework.Factory) *Runner

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

func (r *Runner) Run(ctx context.Context) error

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.

func (*Runner) Validate

func (r *Runner) Validate(cmd *cobra.Command, args []string) error

Validate runs validation for the `rad install kubernetes` command.

Jump to

Keyboard shortcuts

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