Documentation ¶
Index ¶
- func DeleteWorkspaceDeployment(ctx context.Context, workspace *dw.DevWorkspace, client runtimeClient.Client) (wait bool, err error)
- func FinalizeServiceAccount(workspace *dw.DevWorkspace, ctx context.Context, ...) (retry bool, err error)
- func GetDevWorkspaceSecurityContext() *corev1.PodSecurityContext
- func NeedsServiceAccountFinalizer(workspace *dw.DevWorkspaceTemplateSpec) bool
- func ScaleDeploymentToZero(ctx context.Context, workspace *dw.DevWorkspace, client runtimeClient.Client) error
- type DeploymentProvisioningStatus
- type ProvisioningStatus
- type PullSecretsProvisioningStatus
- type RoutingProvisioningStatus
- type ServiceAcctProvisioningStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteWorkspaceDeployment ¶
func DeleteWorkspaceDeployment(ctx context.Context, workspace *dw.DevWorkspace, client runtimeClient.Client) (wait bool, err error)
DeleteWorkspaceDeployment deletes the deployment for the DevWorkspace
func FinalizeServiceAccount ¶ added in v0.12.0
func GetDevWorkspaceSecurityContext ¶
func GetDevWorkspaceSecurityContext() *corev1.PodSecurityContext
func NeedsServiceAccountFinalizer ¶ added in v0.12.0
func NeedsServiceAccountFinalizer(workspace *dw.DevWorkspaceTemplateSpec) bool
func ScaleDeploymentToZero ¶
func ScaleDeploymentToZero(ctx context.Context, workspace *dw.DevWorkspace, client runtimeClient.Client) error
ScaleDeploymentToZero scales the cluster deployment to zero
Types ¶
type DeploymentProvisioningStatus ¶
type DeploymentProvisioningStatus struct {
ProvisioningStatus
}
func SyncDeploymentToCluster ¶
func SyncDeploymentToCluster( workspace *dw.DevWorkspace, 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 SyncRBAC ¶
func SyncRBAC(workspace *dw.DevWorkspace, clusterAPI sync.ClusterAPI) ProvisioningStatus
SyncRBAC generates RBAC and synchronizes the runtime objects
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 *dw.DevWorkspace, clusterAPI sync.ClusterAPI) RoutingProvisioningStatus
type ServiceAcctProvisioningStatus ¶
type ServiceAcctProvisioningStatus struct { ProvisioningStatus ServiceAccountName string }
func SyncServiceAccount ¶
func SyncServiceAccount( workspace *dw.DevWorkspace, additionalAnnotations map[string]string, clusterAPI sync.ClusterAPI) ServiceAcctProvisioningStatus
Click to show internal directories.
Click to hide internal directories.