Skip to content

Adds support for uninstalling IBM Cloud Pak for Data (CP4D) as part of the MAS uninstall pipeline. - #454

Draft
prajeshjain wants to merge 3 commits into
stablefrom
cpd-uninstall-cli
Draft

Adds support for uninstalling IBM Cloud Pak for Data (CP4D) as part of the MAS uninstall pipeline.#454
prajeshjain wants to merge 3 commits into
stablefrom
cpd-uninstall-cli

Conversation

@prajeshjain

Copy link
Copy Markdown

Changes

src/mas/devops/tekton.py

  • Added three new parameters to launchUninstallPipeline():
    • uninstallCp4d: bool — flag to trigger CP4D uninstall
    • cpdOperatorsNamespace: str — namespace for CPD operators
    • cpdInstanceNamespace: str — namespace for CPD instance
  • Added cp4dAction resolution logic (mirrors existing pattern for SLS/DRO/MongoDB)
  • Passes cp4d_action, cpd_operators_namespace, and cpd_instance_namespace into the template renderer

src/mas/devops/templates/pipelinerun-uninstall.yml.j2

  • Added conditional block for CP4D parameters — the block is only rendered when cp4d_action != "none"
  • cpd_operators_namespace and cpd_instance_namespace are conditionally included only when non-empty, preventing empty params from being injected into the PipelineRun

Testing

  • Verified template renders correctly when CP4D uninstall is enabled/disabled
  • Verified optional namespace params are omitted when not provided
Screenshot 2026-08-10 at 12 32 01 PM Screenshot 2026-08-10 at 12 32 09 PM

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