Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

stack-spot/new-stackspot-migrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements:

  • Stackspot stkcli v4.x (stk-legacy), but not the new Stackspot cli (v5.x).
  • Python v3.9+ (python3 or python available in terminal)
  • ruamel.yaml lib (https://pypi.org/project/ruamel.yaml/)

Template and Plugin migration:

1- Run command stk-legacy import stack https://github.com/stack-spot/new-stackspot-migrator

2- Preferably in the HOME dir, run command stk-legacy run new-stackspot-migrator/plugin-migrator

3- Inform the complete folder path of the plugin or template to be migrated. In case of a template, it will be converted to a plugin.

The original resource yaml file (plugin.yaml or template.yaml) file will be renamed, having the suffix _old added, and a plugin.yaml file will be created. Also, some documents will be created in the docs folder inside the resource folder. To revert the operation, just delete the plugin.yaml file and rename the resource yaml file with _old suffix back to its original name.