Documentation ¶
Index ¶
- func DeleteWorkspaceDeployment(ctx context.Context, workspace *common.DevWorkspaceWithConfig, ...) (wait bool, err error)
- func FinalizeServiceAccount(workspace *common.DevWorkspaceWithConfig, ctx context.Context, ...) (retry bool, err error)deprecated
- func ProvisionServiceAccountTokensInto(podAdditions *v1alpha1.PodAdditions, workspace *common.DevWorkspaceWithConfig) error
- func PullSecrets(clusterAPI sync.ClusterAPI, serviceAccountName, namespace string) (*v1alpha1.PodAdditions, error)
- func ScaleDeploymentToZero(ctx context.Context, workspace *common.DevWorkspaceWithConfig, ...) error
- func SyncDeploymentToCluster(workspace *common.DevWorkspaceWithConfig, podAdditions []v1alpha1.PodAdditions, ...) error
- func SyncRoutingToCluster(workspace *common.DevWorkspaceWithConfig, clusterAPI sync.ClusterAPI) (*v1alpha1.PodAdditions, map[string]v1alpha1.ExposedEndpointList, string, error)
- func SyncServiceAccount(workspace *common.DevWorkspaceWithConfig, ...) (serviceAccountName string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteWorkspaceDeployment ¶
func DeleteWorkspaceDeployment(ctx context.Context, workspace *common.DevWorkspaceWithConfig, client k8sclient.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 ProvisionServiceAccountTokensInto ¶ added in v0.20.0
func ProvisionServiceAccountTokensInto(podAdditions *v1alpha1.PodAdditions, workspace *common.DevWorkspaceWithConfig) error
func PullSecrets ¶
func PullSecrets(clusterAPI sync.ClusterAPI, serviceAccountName, namespace string) (*v1alpha1.PodAdditions, error)
func ScaleDeploymentToZero ¶
func ScaleDeploymentToZero(ctx context.Context, workspace *common.DevWorkspaceWithConfig, client k8sclient.Client) error
ScaleDeploymentToZero scales the cluster deployment to zero
func SyncDeploymentToCluster ¶
func SyncDeploymentToCluster( workspace *common.DevWorkspaceWithConfig, podAdditions []v1alpha1.PodAdditions, saName string, clusterAPI sync.ClusterAPI) error
func SyncRoutingToCluster ¶
func SyncRoutingToCluster( workspace *common.DevWorkspaceWithConfig, clusterAPI sync.ClusterAPI) (*v1alpha1.PodAdditions, map[string]v1alpha1.ExposedEndpointList, string, error)
func SyncServiceAccount ¶
func SyncServiceAccount( workspace *common.DevWorkspaceWithConfig, additionalAnnotations map[string]string, clusterAPI sync.ClusterAPI) (serviceAccountName string, err error)
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.