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 ¶
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.