Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GÉANT Service Orchestrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator
Merge requests
!132
Update documentation
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update documentation
feature/update-documentation
into
develop
Overview
0
Commits
3
Pipelines
3
Changes
8
Merged
Karel van Klink
requested to merge
feature/update-documentation
into
develop
1 year ago
Overview
0
Commits
3
Pipelines
3
Changes
9
Expand
Some small changes here and there
0
0
Merge request reports
Compare
version 2
version 2
850d09e1
1 year ago
version 1
56c7e82d
1 year ago
develop (base)
and
latest version
latest version
bf2feedf
3 commits,
1 year ago
version 2
850d09e1
3 commits,
1 year ago
version 1
56c7e82d
3 commits,
1 year ago
Show latest version
9 files
+
320
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
Search (e.g. *.vue) (Ctrl+P)
gso/migrations/versions/2023-12-27_b689d4636694_add_base_config_redeployment_workflow.py
0 → 100644
+
39
−
0
Options
"""
Add base config redeployment workflow.
Revision ID: b689d4636694
Revises: 815033570ad7
Create Date: 2023-12-27 15:20:40.522053
"""
import
sqlalchemy
as
sa
from
alembic
import
op
# revision identifiers, used by Alembic.
revision
=
'
b689d4636694
'
down_revision
=
'
815033570ad7
'
branch_labels
=
None
depends_on
=
None
from
orchestrator.migrations.helpers
import
create_workflow
,
delete_workflow
new_workflows
=
[
{
"
name
"
:
"
redeploy_base_config
"
,
"
target
"
:
"
MODIFY
"
,
"
description
"
:
"
Redeploy base config
"
,
"
product_type
"
:
"
Router
"
}
]
def
upgrade
()
->
None
:
conn
=
op
.
get_bind
()
for
workflow
in
new_workflows
:
create_workflow
(
conn
,
workflow
)
def
downgrade
()
->
None
:
conn
=
op
.
get_bind
()
for
workflow
in
new_workflows
:
delete_workflow
(
conn
,
workflow
[
"
name
"
])
Loading