sandbox

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultConfig = &Config{
		Port: "6443",
	}
)
View Source
var (
	DefaultTeardownFlags = &TeardownFlags{}
)

Functions

This section is empty.

Types

type Config

type Config struct {
	DeprecatedSource string `json:"source" pflag:",deprecated, path of your source code, please build images with local daemon"`

	// Flytectl sandbox only supports Flyte version available in Github release https://github.com/flyteorg/flyte/tags.
	// Flytectl sandbox will only work for v0.10.0+.
	// Default value dind represents the latest release.
	Version string `json:"version" pflag:",Version of flyte. Only supports flyte releases greater than v0.10.0"`

	// Optionally it is possible to specify a specific fqn for the docker image with the tag. This should be
	// Flyte compliant sandbox image. Usually useful, if you want to push the image to your own registry and relaunch
	// from there.
	Image string `json:"image" pflag:",Optional. Provide a fully qualified path to a Flyte compliant docker image."`

	// Default value false represents that Flytectl will not use the latest pre-release if it exists.
	Prerelease bool `json:"pre" pflag:",Optional. Pre release Version of flyte will be used for sandbox."`

	// Agent Service
	DisableAgent bool `json:"disable-agent" pflag:",Optional. Disable the agent service."`

	// Connector Service
	DisableConnector bool `json:"disable-connector" pflag:",Optional. Disable the connector service."`

	// Optionally it is possible to pass in environment variables to sandbox container.
	Env []string `json:"env" pflag:",Optional. Provide Env variable in key=value format which can be passed to sandbox container."`

	// Optionally it is possible to use local sandbox image
	// Flytectl will not pull the image from the registry if the local flag passes. It is usually useful while testing your local images without pushing them to a registry.
	ImagePullPolicy docker.ImagePullPolicy `json:"imagePullPolicy" pflag:",Optional. Defines the image pull behavior [Always/IfNotPresent/Never]"`

	ImagePullOptions docker.ImagePullOptions `json:"imagePullOptions" pflag:",Optional. Defines image pull options (e.g. auth)"`

	// It's used for development. Users are able to start flyte locally via single binary and save the data to the minio or postgres in the sandbox.
	Dev    bool `json:"dev" pflag:",Optional. Only start minio and postgres in the sandbox."`
	DryRun bool `` /* 178-byte string literal not displayed */

	Force bool `json:"force" pflag:",Optional. Forcefully delete existing sandbox cluster if it exists."`

	// Allow user to specify the port for the sandbox
	Port string `json:"port" pflag:",Optional. Specify the port for the Kubernetes in the sandbox."`
}

Config holds configuration flags for sandbox command.

func (Config) GetK8sEndpoint added in v0.9.3

func (c Config) GetK8sEndpoint() string

func (Config) GetPFlagSet

func (cfg Config) GetPFlagSet(prefix string) *pflag.FlagSet

GetPFlagSet will return strongly types pflags for all fields in Config and its nested types. The format of the flags is json-name.json-sub-name... etc.

type TeardownFlags

type TeardownFlags struct {
	Volume bool
}

func (*TeardownFlags) GetPFlagSet

func (f *TeardownFlags) GetPFlagSet(prefix string) *pflag.FlagSet

Jump to

Keyboard shortcuts

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