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 Down20201016170415(tx *sql.Tx) error
- func Down20201028145442(tx *sql.Tx) error
- func Down20201028145443(tx *sql.Tx) error
- func Down20201031165106(tx *sql.Tx) error
- func Down20201102104048(tx *sql.Tx) error
- func Down20201113094916(tx *sql.Tx) error
- func Down20201115133046(tx *sql.Tx) error
- func Down20201115134934(tx *sql.Tx) error
- func Down20201115145814(tx *sql.Tx) error
- func Down20201130130433(tx *sql.Tx) error
- func Down20201208155115(tx *sql.Tx) error
- func Down20201208155805(tx *sql.Tx) error
- func Down20201209124226(tx *sql.Tx) error
- func Down20201211161117(tx *sql.Tx) error
- func Down20201214133458(tx *sql.Tx) error
- func Down20201221194344(tx *sql.Tx) error
- func Down20201221195937(tx *sql.Tx) error
- func Down20201223062947(tx *sql.Tx) error
- func Down20201223202929(tx *sql.Tx) error
- func Down20201225172926(tx *sql.Tx) error
- func Down20201229205644(tx *sql.Tx) error
- func Down20210107094725(tx *sql.Tx) error
- func Down20210118175809(tx *sql.Tx) error
- func Down20210129134326(tx *sql.Tx) error
- func Down20210129142057(tx *sql.Tx) error
- func Down20210129152427(tx *sql.Tx) error
- func Down20210224180017(tx *sql.Tx) error
- func Down20210323175655(tx *sql.Tx) error
- func Down20210329171739(tx *sql.Tx) error
- func Down20210329194731(tx *sql.Tx) error
- func Down20210414165510(tx *sql.Tx) error
- func Down20210719190719(tx *sql.Tx) error
- func Down20211028205201(tx *sql.Tx) error
- func Initialize()
- func ReplaceArtifactRepositoryType(client *v1.Client, namespace *v1.Namespace, ...) error
- func ReplaceMapValues(value string, replaceMap map[string]string) string
- func ReplaceRuntimeVariablesInManifest(client *v1.Client, namespace string, manifest string) (string, 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
- func Up20201016170415(tx *sql.Tx) error
- func Up20201028145442(tx *sql.Tx) error
- func Up20201028145443(tx *sql.Tx) error
- func Up20201031165106(tx *sql.Tx) error
- func Up20201102104048(tx *sql.Tx) error
- func Up20201113094916(tx *sql.Tx) error
- func Up20201115133046(tx *sql.Tx) error
- func Up20201115134934(tx *sql.Tx) error
- func Up20201115145814(tx *sql.Tx) error
- func Up20201130130433(tx *sql.Tx) error
- func Up20201208155115(tx *sql.Tx) error
- func Up20201208155805(tx *sql.Tx) error
- func Up20201209124226(tx *sql.Tx) error
- func Up20201211161117(tx *sql.Tx) error
- func Up20201214133458(tx *sql.Tx) error
- func Up20201221194344(tx *sql.Tx) error
- func Up20201221195937(tx *sql.Tx) error
- func Up20201223062947(tx *sql.Tx) error
- func Up20201223202929(tx *sql.Tx) error
- func Up20201225172926(tx *sql.Tx) error
- func Up20201229205644(tx *sql.Tx) error
- func Up20210107094725(tx *sql.Tx) error
- func Up20210118175809(tx *sql.Tx) error
- func Up20210129134326(tx *sql.Tx) error
- func Up20210129142057(tx *sql.Tx) error
- func Up20210129152427(tx *sql.Tx) error
- func Up20210224180017(tx *sql.Tx) error
- func Up20210323175655(tx *sql.Tx) error
- func Up20210329171739(tx *sql.Tx) error
- func Up20210329194731(tx *sql.Tx) error
- func Up20210414165510(tx *sql.Tx) error
- func Up20210719190719(tx *sql.Tx) error
- func Up20211028205201(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 Down20201016170415 ¶ added in v0.14.0
Down20201016170415 does nothing
func Down20201028145442 ¶ added in v0.15.0
Down20201028145442 removes the lifecycle hooks from the template.
func Down20201028145443 ¶ added in v0.15.0
Down20201028145443 removes the lifecycle hooks from VSCode workspace template.
func Down20201031165106 ¶ added in v0.15.0
Down20201031165106 removes the lifecycle hooks from the template.
func Down20201102104048 ¶ added in v0.15.0
Down20201102104048 reverts CVAT back to original amount of volumes.
func Down20201113094916 ¶ added in v0.16.0
Down20201113094916 updates CVAT back to previous python-sdk version of 0.14.0
func Down20201115133046 ¶ added in v0.16.0
Down20201115133046 reverts latest environment variable updates
func Down20201115134934 ¶ added in v0.16.0
Down20201115134934 do nothing
func Down20201115145814 ¶ added in v0.16.0
Down20201115145814 do nothing
func Down20201130130433 ¶ added in v0.16.0
Down20201130130433 do nothing
func Down20201208155115 ¶ added in v0.16.0
Down20201208155115 rolls back the environment variable change
func Down20201208155805 ¶ added in v0.16.0
Down20201208155805 rolls back the environment variable change
func Down20201209124226 ¶ added in v0.16.0
Down20201209124226 rolls back the tensorflow workflow
func Down20201211161117 ¶ added in v0.16.0
Down20201211161117 reverts the cvat workspace update
func Down20201214133458 ¶ added in v0.16.0
Down20201214133458 undoes the change
func Down20201221194344 ¶ added in v0.17.0
Down20201221194344 undoes the sys-nodepool changes
func Down20201221195937 ¶ added in v0.17.0
Down20201221195937 undoes the sys.nodepool changes
func Down20201223062947 ¶ added in v0.17.0
Down20201223062947 undoes sys.nodepool changes
func Down20201223202929 ¶ added in v0.17.0
Down20201223202929 undoes the sys.nodepool changes
func Down20201225172926 ¶ added in v0.17.0
Down20201225172926 archives Hyperparameter Tuning Workflow Template
func Down20201229205644 ¶ added in v0.17.0
Down20201229205644 rolls back the jupyterab workspace template update
func Down20210107094725 ¶ added in v0.17.0
Down20210107094725 reverts to previous CVAT image
func Down20210118175809 ¶ added in v0.18.0
Down20210118175809 reverts the migration
func Down20210129134326 ¶ added in v0.18.0
Down20210129134326 reverts to previous CVAT image
func Down20210129142057 ¶ added in v0.18.0
Down20210129142057 rolls back the jupyterab workspace template update
func Down20210129152427 ¶ added in v0.18.0
Down20210129152427 removes the lifecycle hooks from VSCode workspace template.
func Down20210224180017 ¶ added in v0.19.0
Down20210224180017 Rolls back the filesyncer image updates
func Down20210323175655 ¶ added in v0.20.0
Down20210323175655 reverts updating workflows to support PNS
func Down20210329171739 ¶ added in v0.20.0
Down20210329171739 rolls back image updates for workspaces
func Down20210329194731 ¶ added in v0.20.0
Down20210329194731 returns the hyperparameter-tuning workflow if it was deleted
func Down20210414165510 ¶ added in v0.21.0
Down20210414165510 removes the Deep Learning Desktop Workspace Template
func Down20210719190719 ¶ added in v1.0.0
Down20210719190719 rolls back the change to update filesyncer
func Down20211028205201 ¶ added in v1.0.2
Down20211028205201 archives the new cvat 1.6.0 workspace template
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
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 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
func Up20201016170415 ¶ added in v0.14.0
Up20201016170415 updates cvat to a new version
func Up20201028145442 ¶ added in v0.15.0
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
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
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
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
Up20201113094916 updates CVAT with python-sdk 0.15.0 Of note, this replaces the authentication request endpoint.
func Up20201115133046 ¶ added in v0.16.0
Up20201115133046 updates CVAT environment variables
func Up20201115134934 ¶ added in v0.16.0
Up20201115134934 add TensorBoard sidecar to TFODs
func Up20201115145814 ¶ added in v0.16.0
Up20201115145814 add TensorBoard sidecar to TFODs
func Up20201130130433 ¶ added in v0.16.0
Up20201130130433 remove namespace to resolve checkpoint path issue
func Up20201208155115 ¶ added in v0.16.0
Up20201208155115 update the tf-object-detection-training workflow template to replace tty with an environment variable
func Up20201208155805 ¶ added in v0.16.0
Up20201208155805 update the maskrcnn workflow template to replace tty with an environment variable
func Up20201209124226 ¶ added in v0.16.0
Up20201209124226 updates the tensorflow workflow
func Up20201211161117 ¶ added in v0.16.0
Up20201211161117 updated cvat workspace template with a new ONEPANEL_MAIN_CONTAINER environment variable
func Up20201214133458 ¶ added in v0.16.0
Up20201214133458 fixes an issue where LD_LIBRARY_PATH is not present for JupyterLab
func Up20201221194344 ¶ added in v0.17.0
Up20201221194344 updates pytorch_training with the sys.nodepool changes
func Up20201221195937 ¶ added in v0.17.0
Up20201221195937 updates maskrcnn with sys.nodepool changes
func Up20201223062947 ¶ added in v0.17.0
Up20201223062947 updates tensorflow-mnist-training with sys.nodepool changes
func Up20201223202929 ¶ added in v0.17.0
Up20201223202929 updates tf-object-detection-training with sys.nodepool
func Up20201225172926 ¶ added in v0.17.0
Up20201225172926 adds Hyperparameter Tuning Workflow Template
func Up20201229205644 ¶ added in v0.17.0
Up20201229205644 updates the jupyterlab workspace template
func Up20210107094725 ¶ added in v0.17.0
Up20210107094725 updates CVAT to latest image
func Up20210118175809 ¶ added in v0.18.0
Up20210118175809 updates workflows so that the nodePoolSelector label is based on k8s config
func Up20210129134326 ¶ added in v0.18.0
Up20210129134326 updates CVAT to latest image
func Up20210129142057 ¶ added in v0.18.0
Up20210129142057 updates the jupyterlab workspace template
func Up20210129152427 ¶ added in v0.18.0
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
Up20210224180017 Updates workspace templates with the latest filesyncer image
func Up20210323175655 ¶ added in v0.20.0
Up20210323175655 update workflows to support new PNS mode
func Up20210329171739 ¶ added in v0.20.0
Up20210329171739 updates workspaces to use new images
func Up20210329194731 ¶ added in v0.20.0
Up20210329194731 removes the hyperparameter-tuning workflow if there are no executions
func Up20210414165510 ¶ added in v0.21.0
Up20210414165510 creates the Deep Learning Desktop Workspace Template
func Up20210719190719 ¶ added in v1.0.0
Up20210719190719 updates the workspace templates to use new v1.0.0 of filesyncer
func Up20211028205201 ¶ added in v1.0.2
Up20211028205201 creates the new cvat 1.6.0 workspace template
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
- 20201016170415_update_cvat.go
- 20201028145442_update_jupyter_lab_template.go
- 20201028145443_update_vscode_template.go
- 20201031165106_add_tensorboard_env_var_to_jupyterlab_template.go
- 20201102104048_update_cvat_reduce_vols.go
- 20201113094916_update_cvat_onepanel_sdk.go
- 20201115133046_update_cvat_env_vars.go
- 20201115134934_add_tensorboard_to_tfod.go
- 20201115145814_add_tensorboard_to_maskrcnn.go
- 20201130130433_update_tfod_path.go
- 20201208155115_replace_tty_with_env_var_for_tfod.go
- 20201208155805_replace_tty_with_env_var_for_maskrcnn.go
- 20201209124226_update_tensorflow_training.go
- 20201211161117_fix_resources_gke.go
- 20201214133458_fix_jupyterlab_gpu.go
- 20201221194344_pytorch_update.go
- 20201221195937_maskrcnn_update_parameters_to_select_nodepool.go
- 20201223062947_tf_training_update_node_pool.go
- 20201223202929_tfod_update_node_pool.go
- 20201225172926_add_hyperparameter_tuning_example_workflow_template.go
- 20201229205644_fix_jupyter_workspace_yaml.go
- 20210107094725_update_cvat_workspace.go
- 20210118175809_update_node_pool_label.go
- 20210129094725_update_cvat_workspace.go
- 20210129142057_update_jupyter_workspace.go
- 20210129152427_update_vscode_template.go
- 20210224180017_update_workspace_templates.go
- 20210323175655_update_templates_for_pns.go
- 20210329171739_update_workspaces.go
- 20210329194731_conditional_remove_hyperparam_tuning.go
- 20210414165510_add_deep_learning_desktop_workspace.go
- 20210719190719_update_filesyncer.go
- 20211028205201_cvat_1_6.go
- db.go
- util.go