workspace

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteWorkspaceDeployment

func DeleteWorkspaceDeployment(ctx context.Context, workspace *common.DevWorkspaceWithConfig, client runtimeClient.Client) (wait bool, err error)

DeleteWorkspaceDeployment deletes the deployment for the DevWorkspace

func FinalizeServiceAccount deprecated added in v0.12.0

func FinalizeServiceAccount(workspace *common.DevWorkspaceWithConfig, ctx context.Context, nonCachingClient crclient.Client) (retry bool, err error)

FinalizeServiceAccount removes the workspace service account from the SCC specified by the controller.devfile.io/scc attribute.

Deprecated: This should no longer be needed as the serviceaccount finalizer is no longer added to workspaces (and workspaces do not update SCCs) but is kept here in order to clear finalizers from existing workspaces on deletion.

func ScaleDeploymentToZero

func ScaleDeploymentToZero(ctx context.Context, workspace *common.DevWorkspaceWithConfig, client runtimeClient.Client) error

ScaleDeploymentToZero scales the cluster deployment to zero

Types

type DeploymentProvisioningStatus

type DeploymentProvisioningStatus struct {
	ProvisioningStatus
}

func SyncDeploymentToCluster

func SyncDeploymentToCluster(
	workspace *common.DevWorkspaceWithConfig,
	podAdditions []v1alpha1.PodAdditions,
	saName string,
	clusterAPI sync.ClusterAPI) DeploymentProvisioningStatus

type ProvisioningStatus

type ProvisioningStatus struct {
	// Continue should be true if cluster state matches spec state for this step
	Continue    bool
	Requeue     bool
	FailStartup bool
	Err         error
	Message     string
}

func (*ProvisioningStatus) Info

func (s *ProvisioningStatus) Info() string

Info returns the the user-friendly info about provisioning status It includes message or error or both if present

type PullSecretsProvisioningStatus

type PullSecretsProvisioningStatus struct {
	ProvisioningStatus
	v1alpha1.PodAdditions
}

func PullSecrets

func PullSecrets(clusterAPI sync.ClusterAPI, serviceAccountName, namespace string) PullSecretsProvisioningStatus

type RoutingProvisioningStatus

type RoutingProvisioningStatus struct {
	ProvisioningStatus
	PodAdditions     *v1alpha1.PodAdditions
	ExposedEndpoints map[string]v1alpha1.ExposedEndpointList
}

func SyncRoutingToCluster

func SyncRoutingToCluster(
	workspace *common.DevWorkspaceWithConfig,
	clusterAPI sync.ClusterAPI) RoutingProvisioningStatus

type ServiceAcctProvisioningStatus

type ServiceAcctProvisioningStatus struct {
	ProvisioningStatus
	ServiceAccountName string
}

func SyncServiceAccount

func SyncServiceAccount(
	workspace *common.DevWorkspaceWithConfig,
	additionalAnnotations map[string]string,
	clusterAPI sync.ClusterAPI) ServiceAcctProvisioningStatus

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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