kubernetes

package
v0.52.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: Apache-2.0 Imports: 14 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 for uninstalling Radius from a Kubernetes cluster, which takes in a factory object and returns a Cobra command and a Runner object.

Types

type Runner

type Runner struct {
	Helm        helm.Interface
	Output      output.Interface
	Kubernetes  kubernetes.Interface
	Connections connections.Factory
	Prompter    prompt.Interface

	KubeContext string
	Purge       bool
	AssumeYes   bool
}

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

func NewRunner

func NewRunner(factory framework.Factory) *Runner

NewRunner creates an instance of the runner for the `rad uninstall kubernetes` command.

func (*Runner) Run

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

Run checks if Radius is installed on the Kubernetes cluster, and if so, uninstalls it, logging a success message if successful. It returns an error if an error occurs during the uninstallation.

func (*Runner) Validate

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

Validate checks the command and arguments passed to it and returns an error if any of them are invalid.

Jump to

Keyboard shortcuts

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