{"modulePath":"github.com/devfile/devworkspace-operator","version":"v1.1.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package workspace\n\n## Constants\n\n```go\nconst SshAskPassMountPath = \"/.ssh-askpass/\"\n```\n\n```go\nconst SshAskPassScriptFileName = \"ssh-askpass.sh\"\n```\n\n## Functions\n\n```go\nfunc DeleteWorkspaceDeployment(ctx context.Context, workspace *common.DevWorkspaceWithConfig, client k8sclient.Client) (wait bool, err error)\n```\nDeleteWorkspaceDeployment deletes the deployment for the DevWorkspace\n\n```go\nfunc FinalizeServiceAccount(workspace *common.DevWorkspaceWithConfig, ctx context.Context, nonCachingClient crclient.Client) (retry bool, err error)\n```\nFinalizeServiceAccount removes the workspace service account from the SCC specified by the controller.devfile.io/scc attribute.\n\nDeprecated: 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.\n\n```go\nfunc GetClusterDeployment(workspace *common.DevWorkspaceWithConfig, clusterAPI sync.ClusterAPI) (*appsv1.Deployment, error)\n```\n\n```go\nfunc ProvisionServiceAccountTokensInto(podAdditions *v1alpha1.PodAdditions, workspace *common.DevWorkspaceWithConfig) error\n```\n\n```go\nfunc ProvisionSshAskPass(api sync.ClusterAPI, namespace string, podAdditions *v1alpha1.PodAdditions) error\n```\n\n```go\nfunc PullSecrets(clusterAPI sync.ClusterAPI, serviceAccountName, namespace string) (*v1alpha1.PodAdditions, error)\n```\n\n```go\nfunc ScaleDeploymentToZero(ctx context.Context, workspace *common.DevWorkspaceWithConfig, client k8sclient.Client) error\n```\nScaleDeploymentToZero scales the cluster deployment to zero\n\n```go\nfunc SyncDeploymentToCluster(\n\tworkspace *common.DevWorkspaceWithConfig,\n\tpodAdditions []v1alpha1.PodAdditions,\n\tsaName string,\n\tclusterAPI sync.ClusterAPI) error\n```\n\n```go\nfunc SyncRoutingToCluster(\n\tworkspace *common.DevWorkspaceWithConfig,\n\tclusterAPI sync.ClusterAPI) (*v1alpha1.PodAdditions, map[string]v1alpha1.ExposedEndpointList, string, error)\n```\n\n```go\nfunc SyncServiceAccount(\n\tworkspace *common.DevWorkspaceWithConfig,\n\tadditionalAnnotations map[string]string,\n\tclusterAPI sync.ClusterAPI) (serviceAccountName string, err error)\n```\n\n","path":"github.com/devfile/devworkspace-operator/pkg/provision/workspace","name":"workspace","synopsis":"","isRedistributable":true}
