launcher

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: MPL-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TerraformCommands = append(nonStateCommandNames, "state")

Functions

func AddCommandsToRoot

func AddCommandsToRoot(root *cobra.Command, opts *cmdutil.Options)

Add commands to root as subcommands (and subcommands' subcommands, and so on)

Types

type LauncherOptions

type LauncherOptions struct {
	*cmdutil.Options

	*client.Client

	Path        string
	Namespace   string
	Workspace   string
	KubeContext string
	RunName     string

	// Space delimited command to be run on pod
	Command string
	// Stok Workspace's WorkspaceSpec
	WorkspaceSpec v1alpha1.WorkspaceSpec
	// Create a service acccount if it does not exist
	DisableCreateServiceAccount bool
	// Create a secret if it does not exist
	DisableCreateSecret bool
	// Timeout for wait for handshake
	HandshakeTimeout time.Duration
	// Timeout for run pod to be running and ready
	TimeoutPod time.Duration
	// timeout waiting in workspace queue
	TimeoutQueue time.Duration `default:"1h"`
	// TODO: rename to timeout-pending (enqueue is too similar sounding to queue)
	// timeout waiting to be queued
	TimeoutEnqueue time.Duration `default:"10s"`

	// Disable TTY detection
	DisableTTY bool
	// contains filtered or unexported fields
}

func (*LauncherOptions) Run

func (o *LauncherOptions) Run(ctx context.Context) error

type WorkspaceHandler

type WorkspaceHandler func(*v1alpha1.Workspace) (bool, error)

Jump to

Keyboard shortcuts

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