Skip to content

Conversation

@rawa-resul
Copy link
Contributor

@rawa-resul rawa-resul commented Jul 2, 2025

Description

When you run mas update today on a cluster that does not have MongoDB CE installed the PipelineRun will fail with mongodb_version not being supplied

To fix this I have:

  • Set the default mongodb_version to ""
  • Set the default mongodb_action to none
  • Set mongodb_action to install when MongoDB CE is found on the cluster

Related Issues

Testing

Installed MAS 9.0.2 from v9-240827-amd64 catalog using CLI 11.1.3
Updated MAS to 9.0.10 with v9-250403-amd64 catalog using CLI 13.27.0-pre.mongo-upd-arm64
Observed mas update pipeline - mongodb task ran and updated mongodb from 6.0.12 to 7.0.12
Removed everything from cluster using mas uninstall

  • This test shows that when mongodb ce installed on the cluster the mongodb task in the pipeline will update it as usual

Installed MAS 9.0.2 from v9-240827-amd64 catalog using CLI 11.1.3
Removed MongoDB CE from cluster and connected MAS to external MongoDB
Updated MAS to 9.0.10 with v9-250403-amd64 catalog using CLI 13.27.0-pre.mongo-upd-arm64
Observed mas update pipeline - mongodb task did not update mongodb because we pass in none as mongodb_action

  • This test shows that when mongodb ce is not on the cluster the mongodb task does not fail in the pipeline nor will it do anything as expected
Screenshot 2025-07-02 at 9 53 47 pm

@rawa-resul rawa-resul self-assigned this Jul 2, 2025
@whitfiea whitfiea changed the title [patch] Set mongodb_action in mas update [patch] Allow mas update to work when no local mongodb Jul 3, 2025
@whitfiea whitfiea merged commit 299ef7f into master Jul 3, 2025
13 checks passed
@whitfiea whitfiea deleted the mongo-upd branch July 3, 2025 13:20
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.

2 participants