migration

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package migration is for carrying out migrations against the database. To support Onepanel Core operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Down20200525160514

func Down20200525160514(tx *sql.Tx) error

func Down20200528140124

func Down20200528140124(tx *sql.Tx) error

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

func Down20200605090509(tx *sql.Tx) error

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

func Down20200605090535(tx *sql.Tx) error

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

func Down20200626113635(tx *sql.Tx) error

Down20200626113635 removes the CVAT template update

func Down20200704151301

func Down20200704151301(tx *sql.Tx) error

Down20200704151301 removes the CVAT template update

func Down20200724220450

func Down20200724220450(tx *sql.Tx) error

Down20200724220450 rolls back the CVAT template version

func Down20200727144157

func Down20200727144157(tx *sql.Tx) error

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

func Down20200728190804(tx *sql.Tx) error

Down20200728190804 rolls down the migration by deleting all workflow template labels, since they did not exist before this

func Down20200812104328

func Down20200812104328(tx *sql.Tx) error

Down20200812104328 does nothing

func Down20200812113316

func Down20200812113316(tx *sql.Tx) error

Down20200812113316 does nothing

func Down20200814160856

func Down20200814160856(tx *sql.Tx) error

Down20200814160856 does nothing

func Down20200821162630

func Down20200821162630(tx *sql.Tx) error

Down20200821162630 removes the JupyterLab template update

func Down20200824095513

func Down20200824095513(tx *sql.Tx) error

Down20200824095513 does nothing

func Down20200824101019

func Down20200824101019(tx *sql.Tx) error

Down20200824101019 does nothing

func Down20200824101905

func Down20200824101905(tx *sql.Tx) error

Down20200824101905 does nothing

func Down20200825154403

func Down20200825154403(tx *sql.Tx) error

Down20200825154403 does nothing

func Down20200826185926 added in v0.13.0

func Down20200826185926(tx *sql.Tx) error

Down20200826185926 does nothing

func Down20200922103448 added in v0.13.0

func Down20200922103448(tx *sql.Tx) error

Down20200922103448 does nothing

func Down20200929144301 added in v0.13.0

func Down20200929144301(tx *sql.Tx) error

Down20200929144301 removes Visual Studio Code from workspace templates.

func Down20200929153931 added in v0.13.0

func Down20200929153931(tx *sql.Tx) error

Down20200929153931 removes the onepanel-sdk addition.

func Down20201001070806 added in v0.13.0

func Down20201001070806(tx *sql.Tx) error

Down20201001070806 does nothing

func Down20201016170415 added in v0.14.0

func Down20201016170415(tx *sql.Tx) error

Down20201016170415 does nothing

func Down20201028145442 added in v0.15.0

func Down20201028145442(tx *sql.Tx) error

Down20201028145442 removes the lifecycle hooks from the template.

func Down20201028145443 added in v0.15.0

func Down20201028145443(tx *sql.Tx) error

Down20201028145443 removes the lifecycle hooks from VSCode workspace template.

func Down20201031165106 added in v0.15.0

func Down20201031165106(tx *sql.Tx) error

Down20201031165106 removes the lifecycle hooks from the template.

func Down20201102104048 added in v0.15.0

func Down20201102104048(tx *sql.Tx) error

Down20201102104048 reverts CVAT back to original amount of volumes.

func Initialize

func Initialize()

Initialize sets up the go migrations.

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 Up20200525160514(tx *sql.Tx) error

func Up20200528140124

func Up20200528140124(tx *sql.Tx) error

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

func Up20200605090509(tx *sql.Tx) error

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

func Up20200605090535(tx *sql.Tx) error

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

func Up20200626113635(tx *sql.Tx) error

Up20200626113635 updates the CVAT template to a new version.

func Up20200704151301

func Up20200704151301(tx *sql.Tx) error

Up20200704151301 updates the CVAT template to a new version.

func Up20200724220450

func Up20200724220450(tx *sql.Tx) error

Up20200724220450 updates the CVAT template to a new version.

func Up20200727144157

func Up20200727144157(tx *sql.Tx) error

Up20200727144157 will go through all WorkflowTemplateVersion database entries and attempt to generate the "parameters" column from the "manifests" column.

func Up20200728190804

func Up20200728190804(tx *sql.Tx) error

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

func Up20200812104328(tx *sql.Tx) error

Up20200812104328 runs the migration to update MaskRCNN and TF_OD templates

func Up20200812113316

func Up20200812113316(tx *sql.Tx) error

Up20200812113316 runs the go migration to update cvat template

func Up20200814160856

func Up20200814160856(tx *sql.Tx) error

Up20200814160856 runs a migration to add description to jupyterlab template

func Up20200821162630

func Up20200821162630(tx *sql.Tx) error

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

func Up20200824095513(tx *sql.Tx) error

Up20200824095513 updates the maskrcnn workflow template

func Up20200824101019

func Up20200824101019(tx *sql.Tx) error

Up20200824101019 updates the tf object detection training workflow template

func Up20200824101905

func Up20200824101905(tx *sql.Tx) error

Up20200824101905 updates the cvat workspace template

func Up20200825154403

func Up20200825154403(tx *sql.Tx) error

Up20200825154403 runs the migration to upgrade the cvat workspace template

func Up20200826185926 added in v0.13.0

func Up20200826185926(tx *sql.Tx) error

Up20200826185926 runs the migration to upgrade the cvat workspace template

func Up20200922103448 added in v0.13.0

func Up20200922103448(tx *sql.Tx) error

Up20200922103448 adds a description to the jupyterlab workspace template

func Up20200929144301 added in v0.13.0

func Up20200929144301(tx *sql.Tx) error

Up20200929144301 adds Visual Studio Code as a workspace template.

func Up20200929153931 added in v0.13.0

func Up20200929153931(tx *sql.Tx) error

Up20200929153931 updates jupyterlab workspace to include the onepanel-sdk

func Up20201001070806 added in v0.13.0

func Up20201001070806(tx *sql.Tx) error

Up20201001070806 updates the cvat workspace

func Up20201016170415 added in v0.14.0

func Up20201016170415(tx *sql.Tx) error

Up20201016170415 updates cvat to a new version

func Up20201028145442 added in v0.15.0

func Up20201028145442(tx *sql.Tx) error

Up20201028145442 updates the jupyterlab workspace to include container lifecycle hooks. These hooks will attempt to persist conda, pip, and jupyterlab extensions between pause and shut-down.

func Up20201028145443 added in v0.15.0

func Up20201028145443(tx *sql.Tx) error

Up20201028145443 migration will add lifecycle hooks to VSCode template. These hooks will attempt to export the conda, pip, and vscode packages that are installed, to a text file. On workspace resume / start, the code then tries to install these packages.

func Up20201031165106 added in v0.15.0

func Up20201031165106(tx *sql.Tx) error

Up20201031165106 updates the jupyterlab workspace to include container lifecycle hooks. These hooks will attempt to persist conda, pip, and jupyterlab extensions between pause and shut-down.

func Up20201102104048 added in v0.15.0

func Up20201102104048(tx *sql.Tx) error

Up20201102104048 updates CVAT to use less volumes. Through the use of environment variables, various CVAT data directories are placed under one path, and that path is on one volume.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL