preview

package
v0.59.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package preview implements the `rad workspace create --preview` command. It reuses the runner from the parent create package and only overrides the environment validation step so that the workspace is bound to a Radius.Core/environments resource (v20250801preview) instead of an Applications.Core/environments resource.

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 an instance of the command and runner for the `rad workspace create --preview` command.

The preview command behaves identically to `rad workspace create`, but binds the workspace to a Radius.Core/environments resource (v20250801preview) instead of an Applications.Core/environments resource.

Types

type Runner

type Runner struct {
	*workspace_create.Runner

	// RadiusCoreClientFactory validates the Radius.Core/environments resource. When nil,
	// it is initialized lazily from the workspace connection. Tests may pre-populate it.
	RadiusCoreClientFactory *corerpv20250801.ClientFactory
}

Runner is the runner implementation for the `rad workspace create --preview` command.

It embeds the legacy create.Runner and overrides only the environment validation step. All other workspace-creation behaviour (kube context, install check, group lookup, persistence) is inherited unchanged.

func NewRunner

func NewRunner(factory framework.Factory) *Runner

NewRunner creates a new instance of the `rad workspace create --preview` runner.

Jump to

Keyboard shortcuts

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