migration

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 15 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 Down20201113094916 added in v0.16.0

func Down20201113094916(tx *sql.Tx) error

Down20201113094916 updates CVAT back to previous python-sdk version of 0.14.0

func Down20201115133046 added in v0.16.0

func Down20201115133046(tx *sql.Tx) error

Down20201115133046 reverts latest environment variable updates

func Down20201115134934 added in v0.16.0

func Down20201115134934(tx *sql.Tx) error

Down20201115134934 do nothing

func Down20201115145814 added in v0.16.0

func Down20201115145814(tx *sql.Tx) error

Down20201115145814 do nothing

func Down20201130130433 added in v0.16.0

func Down20201130130433(tx *sql.Tx) error

Down20201130130433 do nothing

func Down20201208155115 added in v0.16.0

func Down20201208155115(tx *sql.Tx) error

Down20201208155115 rolls back the environment variable change

func Down20201208155805 added in v0.16.0

func Down20201208155805(tx *sql.Tx) error

Down20201208155805 rolls back the environment variable change

func Down20201209124226 added in v0.16.0

func Down20201209124226(tx *sql.Tx) error

Down20201209124226 rolls back the tensorflow workflow

func Down20201211161117 added in v0.16.0

func Down20201211161117(tx *sql.Tx) error

Down20201211161117 reverts the cvat workspace update

func Down20201214133458 added in v0.16.0

func Down20201214133458(tx *sql.Tx) error

Down20201214133458 undoes the change

func Down20201221194344 added in v0.17.0

func Down20201221194344(tx *sql.Tx) error

Down20201221194344 undoes the sys-nodepool changes

func Down20201221195937 added in v0.17.0

func Down20201221195937(tx *sql.Tx) error

Down20201221195937 undoes the sys.nodepool changes

func Down20201223062947 added in v0.17.0

func Down20201223062947(tx *sql.Tx) error

Down20201223062947 undoes sys.nodepool changes

func Down20201223202929 added in v0.17.0

func Down20201223202929(tx *sql.Tx) error

Down20201223202929 undoes the sys.nodepool changes

func Down20201225172926 added in v0.17.0

func Down20201225172926(tx *sql.Tx) error

Down20201225172926 archives Hyperparameter Tuning Workflow Template

func Down20201229205644 added in v0.17.0

func Down20201229205644(tx *sql.Tx) error

Down20201229205644 rolls back the jupyterab workspace template update

func Down20210107094725 added in v0.17.0

func Down20210107094725(tx *sql.Tx) error

Down20210107094725 reverts to previous CVAT image

func Down20210118175809 added in v0.18.0

func Down20210118175809(tx *sql.Tx) error

Down20210118175809 reverts the migration

func Down20210129134326 added in v0.18.0

func Down20210129134326(tx *sql.Tx) error

Down20210129134326 reverts to previous CVAT image

func Down20210129142057 added in v0.18.0

func Down20210129142057(tx *sql.Tx) error

Down20210129142057 rolls back the jupyterab workspace template update

func Down20210129152427 added in v0.18.0

func Down20210129152427(tx *sql.Tx) error

Down20210129152427 removes the lifecycle hooks from VSCode workspace template.

func Down20210224180017 added in v0.19.0

func Down20210224180017(tx *sql.Tx) error

Down20210224180017 Rolls back the filesyncer image updates

func Down20210323175655 added in v0.20.0

func Down20210323175655(tx *sql.Tx) error

Down20210323175655 reverts updating workflows to support PNS

func Down20210329171739 added in v0.20.0

func Down20210329171739(tx *sql.Tx) error

Down20210329171739 rolls back image updates for workspaces

func Down20210329194731 added in v0.20.0

func Down20210329194731(tx *sql.Tx) error

Down20210329194731 returns the hyperparameter-tuning workflow if it was deleted

func Down20210414165510 added in v0.21.0

func Down20210414165510(tx *sql.Tx) error

Down20210414165510 removes the Deep Learning Desktop Workspace Template

func Down20210719190719 added in v1.0.0

func Down20210719190719(tx *sql.Tx) error

Down20210719190719 rolls back the change to update filesyncer

func Down20211028205201 added in v1.0.2

func Down20211028205201(tx *sql.Tx) error

Down20211028205201 archives the new cvat 1.6.0 workspace template

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 ReplaceMapValues added in v0.17.0

func ReplaceMapValues(value string, replaceMap map[string]string) string

ReplaceMapValues will replace strings that are keys in the input map with their values the result is returned

func ReplaceRuntimeVariablesInManifest added in v0.17.0

func ReplaceRuntimeVariablesInManifest(client *v1.Client, namespace string, manifest string) (string, error)

ReplaceRuntimeVariablesInManifest will replace any values that are runtime variables with the values currently present in the configuration for a given namespace. the result is returned

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.

func Up20201113094916 added in v0.16.0

func Up20201113094916(tx *sql.Tx) error

Up20201113094916 updates CVAT with python-sdk 0.15.0 Of note, this replaces the authentication request endpoint.

func Up20201115133046 added in v0.16.0

func Up20201115133046(tx *sql.Tx) error

Up20201115133046 updates CVAT environment variables

func Up20201115134934 added in v0.16.0

func Up20201115134934(tx *sql.Tx) error

Up20201115134934 add TensorBoard sidecar to TFODs

func Up20201115145814 added in v0.16.0

func Up20201115145814(tx *sql.Tx) error

Up20201115145814 add TensorBoard sidecar to TFODs

func Up20201130130433 added in v0.16.0

func Up20201130130433(tx *sql.Tx) error

Up20201130130433 remove namespace to resolve checkpoint path issue

func Up20201208155115 added in v0.16.0

func Up20201208155115(tx *sql.Tx) error

Up20201208155115 update the tf-object-detection-training workflow template to replace tty with an environment variable

func Up20201208155805 added in v0.16.0

func Up20201208155805(tx *sql.Tx) error

Up20201208155805 update the maskrcnn workflow template to replace tty with an environment variable

func Up20201209124226 added in v0.16.0

func Up20201209124226(tx *sql.Tx) error

Up20201209124226 updates the tensorflow workflow

func Up20201211161117 added in v0.16.0

func Up20201211161117(tx *sql.Tx) error

Up20201211161117 updated cvat workspace template with a new ONEPANEL_MAIN_CONTAINER environment variable

func Up20201214133458 added in v0.16.0

func Up20201214133458(tx *sql.Tx) error

Up20201214133458 fixes an issue where LD_LIBRARY_PATH is not present for JupyterLab

func Up20201221194344 added in v0.17.0

func Up20201221194344(tx *sql.Tx) error

Up20201221194344 updates pytorch_training with the sys.nodepool changes

func Up20201221195937 added in v0.17.0

func Up20201221195937(tx *sql.Tx) error

Up20201221195937 updates maskrcnn with sys.nodepool changes

func Up20201223062947 added in v0.17.0

func Up20201223062947(tx *sql.Tx) error

Up20201223062947 updates tensorflow-mnist-training with sys.nodepool changes

func Up20201223202929 added in v0.17.0

func Up20201223202929(tx *sql.Tx) error

Up20201223202929 updates tf-object-detection-training with sys.nodepool

func Up20201225172926 added in v0.17.0

func Up20201225172926(tx *sql.Tx) error

Up20201225172926 adds Hyperparameter Tuning Workflow Template

func Up20201229205644 added in v0.17.0

func Up20201229205644(tx *sql.Tx) error

Up20201229205644 updates the jupyterlab workspace template

func Up20210107094725 added in v0.17.0

func Up20210107094725(tx *sql.Tx) error

Up20210107094725 updates CVAT to latest image

func Up20210118175809 added in v0.18.0

func Up20210118175809(tx *sql.Tx) error

Up20210118175809 updates workflows so that the nodePoolSelector label is based on k8s config

func Up20210129134326 added in v0.18.0

func Up20210129134326(tx *sql.Tx) error

Up20210129134326 updates CVAT to latest image

func Up20210129142057 added in v0.18.0

func Up20210129142057(tx *sql.Tx) error

Up20210129142057 updates the jupyterlab workspace template

func Up20210129152427 added in v0.18.0

func Up20210129152427(tx *sql.Tx) error

Up20210129152427 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 Up20210224180017 added in v0.19.0

func Up20210224180017(tx *sql.Tx) error

Up20210224180017 Updates workspace templates with the latest filesyncer image

func Up20210323175655 added in v0.20.0

func Up20210323175655(tx *sql.Tx) error

Up20210323175655 update workflows to support new PNS mode

func Up20210329171739 added in v0.20.0

func Up20210329171739(tx *sql.Tx) error

Up20210329171739 updates workspaces to use new images

func Up20210329194731 added in v0.20.0

func Up20210329194731(tx *sql.Tx) error

Up20210329194731 removes the hyperparameter-tuning workflow if there are no executions

func Up20210414165510 added in v0.21.0

func Up20210414165510(tx *sql.Tx) error

Up20210414165510 creates the Deep Learning Desktop Workspace Template

func Up20210719190719 added in v1.0.0

func Up20210719190719(tx *sql.Tx) error

Up20210719190719 updates the workspace templates to use new v1.0.0 of filesyncer

func Up20211028205201 added in v1.0.2

func Up20211028205201(tx *sql.Tx) error

Up20211028205201 creates the new cvat 1.6.0 workspace template

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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