Skip to content

[patch] Add Tekton pipeline support for DB2 migration with PipelineRun template#405

Draft
jainyjoseph wants to merge 6 commits into
stablefrom
mascore-11096
Draft

[patch] Add Tekton pipeline support for DB2 migration with PipelineRun template#405
jainyjoseph wants to merge 6 commits into
stablefrom
mascore-11096

Conversation

@jainyjoseph

@jainyjoseph jainyjoseph commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Description

This PR adds Python DevOps library support for launching and managing the DB2 migration Tekton pipeline, including a new PipelineRun template and enhanced Tekton utilities.

Changes

New PipelineRun Template

  • Template file: src/mas/devops/templates/pipelinerun-db2-migration.yml.j2
    • Jinja2 template for DB2 migration PipelineRun generation
    • Parameterized configuration for namespace, db2ucluster name, backup options
    • Support for IBM entitlement key and custom service accounts
    • Empty workspace configuration for shared configs

Tekton Module Enhancements

  • Migration function: Added launchDb2MigrationPipeline() in src/mas/devops/tekton.py
    • Generates PipelineRun from template with provided parameters
    • Creates PipelineRun in mas-pipelines namespace
    • Returns OpenShift console URL for monitoring
    • Integrates with existing launchPipelineRun() infrastructure

Template Parameters
Required:

  • db2_action: Fixed to "migrate" for migration workflow
  • db2_migration_namespace: Target namespace
  • db2_migration_cluster_name: Db2uCluster to migrate
  • db2_migration_backup_enabled: Backup toggle (default: true)

Optional (conditionally included):

  • db2_migration_cleanup_old_cluster: Cleanup toggle (default: false)
  • ibm_entitlement_key: Optional entitlement key
  • image_pull_policy: Container image pull policy

Key Features:

  • Consistent with existing pipeline templates (install, upgrade, backup, restore)
  • Reusable template design for different migration scenarios
  • Comprehensive parameter validation
  • Integration with existing Tekton pipeline infrastructure
  • Returns console URL for easy pipeline monitoring

Test results

You can refer test results in JIRA MASCORE-11096

@jainyjoseph jainyjoseph requested a review from terc1997 June 24, 2026 13:13
@jainyjoseph jainyjoseph changed the title [patch] Standalone pipeline for single outage v12 upgrade and Db2uInstance migration [patch] Add Tekton pipeline support for DB2 migration with PipelineRun template Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant