Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteWorkspace ¶
type ListWorkspace ¶
type NewWorkspace ¶
type NewWorkspace struct {
Name string
Namespace string
Path string
Timeout time.Duration
TimeoutPod time.Duration
Context string
WorkspaceSpec v1alpha1.WorkspaceSpec
SecretSet bool
ServiceAccountSet bool
Debug bool
Out io.Writer
}
func (*NewWorkspace) Run ¶
func (t *NewWorkspace) Run(ctx context.Context) error
Create new workspace. First check values of secret and service account flags, if either are empty then search for respective resources named "stok" and if they exist, set in the workspace spec accordingly. Otherwise use user-supplied values and check they exist. Only then create the workspace resource and wait until it is reporting it is healthy, or the timeout expires.
Click to show internal directories.
Click to hide internal directories.