Documentation ¶
Overview ¶
Package migration is for carrying out migrations against the database. To support Onepanel Core operations.
Index ¶
- func Down20200525160514(tx *sql.Tx) error
- func Down20200528140124(tx *sql.Tx) error
- func Down20200605090509(tx *sql.Tx) error
- func Down20200605090535(tx *sql.Tx) error
- func Down20200626113635(tx *sql.Tx) error
- func Down20200704151301(tx *sql.Tx) error
- func Down20200724220450(tx *sql.Tx) error
- func Down20200727144157(tx *sql.Tx) error
- func Down20200728190804(tx *sql.Tx) error
- func Down20200812104328(tx *sql.Tx) error
- func Down20200812113316(tx *sql.Tx) error
- func Down20200814160856(tx *sql.Tx) error
- func Down20200821162630(tx *sql.Tx) error
- func Down20200824095513(tx *sql.Tx) error
- func Down20200824101019(tx *sql.Tx) error
- func Down20200824101905(tx *sql.Tx) error
- func Down20200825154403(tx *sql.Tx) error
- func Down20200826185926(tx *sql.Tx) error
- func Down20200922103448(tx *sql.Tx) error
- func Down20200929144301(tx *sql.Tx) error
- func Down20200929153931(tx *sql.Tx) error
- func Down20201001070806(tx *sql.Tx) error
- func Initialize()
- func ReplaceArtifactRepositoryType(client *v1.Client, namespace *v1.Namespace, ...) error
- func Up20200525160514(tx *sql.Tx) error
- func Up20200528140124(tx *sql.Tx) error
- func Up20200605090509(tx *sql.Tx) error
- func Up20200605090535(tx *sql.Tx) error
- func Up20200626113635(tx *sql.Tx) error
- func Up20200704151301(tx *sql.Tx) error
- func Up20200724220450(tx *sql.Tx) error
- func Up20200727144157(tx *sql.Tx) error
- func Up20200728190804(tx *sql.Tx) error
- func Up20200812104328(tx *sql.Tx) error
- func Up20200812113316(tx *sql.Tx) error
- func Up20200814160856(tx *sql.Tx) error
- func Up20200821162630(tx *sql.Tx) error
- func Up20200824095513(tx *sql.Tx) error
- func Up20200824101019(tx *sql.Tx) error
- func Up20200824101905(tx *sql.Tx) error
- func Up20200825154403(tx *sql.Tx) error
- func Up20200826185926(tx *sql.Tx) error
- func Up20200922103448(tx *sql.Tx) error
- func Up20200929144301(tx *sql.Tx) error
- func Up20200929153931(tx *sql.Tx) error
- func Up20201001070806(tx *sql.Tx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Down20200525160514 ¶
func Down20200528140124 ¶
Down20200528140124 will attempt to remove cvatTemplate from each user. Each user is determined by onepanel enabled namespaces. DB entries are archived, K8S components are deleted. Active workspaces with that template are terminated. Any errors reported are logged as fatal.
func Down20200605090509 ¶
Down20200605090509 will attempt to remove Pytorch workflow from each user. Each user is determined by onepanel enabled namespaces. DB entries are archived, K8S components are deleted. Active workflows with that template are terminated. Any errors reported are logged as fatal.
func Down20200605090535 ¶
Down20200605090535 will attempt to remove tensorflow workflow from each user. Each user is determined by onepanel enabled namespaces. DB entries are archived, K8S components are deleted. Active workflows with that template are terminated. Any errors reported are logged as fatal.
func Down20200626113635 ¶
Down20200626113635 removes the CVAT template update
func Down20200704151301 ¶
Down20200704151301 removes the CVAT template update
func Down20200724220450 ¶
Down20200724220450 rolls back the CVAT template version
func Down20200727144157 ¶
Down20200727144157 can be run before 20200727155027_add_parameters_col_to_workflow_template_version.sql Nothing happens because the referenced SQL file will drop the "parameters" column.
func Down20200728190804 ¶
Down20200728190804 rolls down the migration by deleting all workflow template labels, since they did not exist before this
func Down20200821162630 ¶
Down20200821162630 removes the JupyterLab template update
func Down20200826185926 ¶ added in v0.13.0
Down20200826185926 does nothing
func Down20200922103448 ¶ added in v0.13.0
Down20200922103448 does nothing
func Down20200929144301 ¶ added in v0.13.0
Down20200929144301 removes Visual Studio Code from workspace templates.
func Down20200929153931 ¶ added in v0.13.0
Down20200929153931 removes the onepanel-sdk addition.
func Down20201001070806 ¶ added in v0.13.0
Down20201001070806 does nothing
func ReplaceArtifactRepositoryType ¶
func ReplaceArtifactRepositoryType(client *v1.Client, namespace *v1.Namespace, workflowTemplate *v1.WorkflowTemplate, workspaceTemplate *v1.WorkspaceTemplate) error
ReplaceArtifactRepositoryType will look for {{.ArtifactRepositoryType}} in the migration and replace it based on config.
func Up20200525160514 ¶
func Up20200528140124 ¶
Up20200528140124 will insert the cvatTemplate to each user. Each user is determined by onepanel enabled namespaces. Any errors reported are logged as fatal.
func Up20200605090509 ¶
Up20200605090509 will insert a Pytorch workflow template to each user. Each user is determined by onepanel enabled namespaces. Any errors reported are logged as fatal.
func Up20200605090535 ¶
Up20200605090535 will insert a tensorflow workflow template to each user. Each user is determined by onepanel enabled namespaces. Any errors reported are logged as fatal.
func Up20200626113635 ¶
Up20200626113635 updates the CVAT template to a new version.
func Up20200704151301 ¶
Up20200704151301 updates the CVAT template to a new version.
func Up20200724220450 ¶
Up20200724220450 updates the CVAT template to a new version.
func Up20200727144157 ¶
Up20200727144157 will go through all WorkflowTemplateVersion database entries and attempt to generate the "parameters" column from the "manifests" column.
func Up20200728190804 ¶
Up20200728190804 is a legacy migration. Due to code changes, it no longer does anything. It used to update labels so that we keep track of WorkflowTemplate labels. Before, only workflow template versions had labels, but to speed up some queries, we now cache the latest version's labels for workflow templates themselves.
func Up20200812104328 ¶
Up20200812104328 runs the migration to update MaskRCNN and TF_OD templates
func Up20200812113316 ¶
Up20200812113316 runs the go migration to update cvat template
func Up20200814160856 ¶
Up20200814160856 runs a migration to add description to jupyterlab template
func Up20200821162630 ¶
Up20200821162630 updates jupyterlab workspace with new features. Tensorflow 2.3 compiled to support CUDA 10.2 and cudnn8 Pytorch with GPU support. OpenCV compiled from source with CUDA support. Miniconda, Jupyterlab 2.2+, and lots of neat extensions.
func Up20200824095513 ¶
Up20200824095513 updates the maskrcnn workflow template
func Up20200824101019 ¶
Up20200824101019 updates the tf object detection training workflow template
func Up20200824101905 ¶
Up20200824101905 updates the cvat workspace template
func Up20200825154403 ¶
Up20200825154403 runs the migration to upgrade the cvat workspace template
func Up20200826185926 ¶ added in v0.13.0
Up20200826185926 runs the migration to upgrade the cvat workspace template
func Up20200922103448 ¶ added in v0.13.0
Up20200922103448 adds a description to the jupyterlab workspace template
func Up20200929144301 ¶ added in v0.13.0
Up20200929144301 adds Visual Studio Code as a workspace template.
func Up20200929153931 ¶ added in v0.13.0
Up20200929153931 updates jupyterlab workspace to include the onepanel-sdk
func Up20201001070806 ¶ added in v0.13.0
Up20201001070806 updates the cvat workspace
Types ¶
This section is empty.
Source Files ¶
- 20200525160514_add_jupyter_workspace_template.go
- 20200528140124_add_cvat_workspace_template.go
- 20200605090509_add_pytorch_workflow_template.go
- 20200605090535_add_tensorflow_workflow_template.go
- 20200626113635_update_cvat_workspace_template.go
- 20200704151301_update_cvat_workspace_template.go
- 20200724220450_update_cvat_workspace.go
- 20200727144157_add_parameters_to_workflow_template_version.go
- 20200728190804_update_workflow_template_labels.go
- 20200812104328_update_maskrcnn_and_tf_od.go
- 20200812113316_update_cvat.go
- 20200814160856_add_description_to_jupyter_template.go
- 20200821162630_update_jupyter_workspace_template.go
- 20200824095513_update_mask_rcnn.go
- 20200824101019_update_tf_object_detection_training.go
- 20200824101905_update_cvat_template.go
- 20200825154403_update_cvat_version.go
- 20200826185926_upgrade_cvat.go
- 20200922103448_add_jupyter_lab_description.go
- 20200929144301_add_vscode_workspace_template.go
- 20200929153931_update_jupyter_lab_workspace_command.go
- 20201001070806_update_cvat.go
- db.go