(workspace *dw.DevWorkspaceTemplateSpec)
| 47 | } |
| 48 | |
| 49 | func IsWorkspaceRestoreRequested(workspace *dw.DevWorkspaceTemplateSpec) bool { |
| 50 | if !workspace.Attributes.Exists(constants.WorkspaceRestoreAttribute) { |
| 51 | return false |
| 52 | } |
| 53 | return workspace.Attributes.GetBoolean(constants.WorkspaceRestoreAttribute, nil) |
| 54 | |
| 55 | } |
| 56 | |
| 57 | // GetWorkspaceRestoreInitContainer creates an init container that restores workspace data from a backup image. |
| 58 | // The restore container uses the existing workspace-recovery.sh script to extract backup content. |
no test coverage detected