diff --git a/python/src/mas/cli/update/app.py b/python/src/mas/cli/update/app.py index 32f48d9a68b..f4f7e8e6f93 100644 --- a/python/src/mas/cli/update/app.py +++ b/python/src/mas/cli/update/app.py @@ -377,6 +377,7 @@ def detectMongoDb(self) -> None: currentMongoVersionMajor = currentMongoVersion.split(".")[0] if targetMongoVersionMajor > currentMongoVersionMajor: + self.setParam("mongodb_action", "install") # Let users know that Mongo will be upgraded if existing MongoDb major.minor version # is lower than the target major version # We don't show this message for normal updates, e.g. 5.0.1 to 5.0.2 @@ -401,7 +402,7 @@ def detectMongoDb(self) -> None: self.showMongoDependencyUpdateNotice(currentMongoVersion, targetMongoVersion) self.fatalError(f"Existing MongoDB Community Edition installation at version {currentMongoVersion} cannot be downgraded to version {targetMongoVersion}") else: - h.stop_and_persist(symbol=self.successIcon, text=f"MongoDb CE is aleady installed at version {targetMongoVersion}") + h.stop_and_persist(symbol=self.successIcon, text=f"MongoDb CE is already installed at version {targetMongoVersion}") else: # There's no MongoDb instance installed in the cluster, so nothing to do h.stop_and_persist(symbol=self.successIcon, text="No MongoDb CE instances found") diff --git a/tekton/src/pipelines/update.yml.j2 b/tekton/src/pipelines/update.yml.j2 index cadeea21a4e..e94442a4df2 100644 --- a/tekton/src/pipelines/update.yml.j2 +++ b/tekton/src/pipelines/update.yml.j2 @@ -70,7 +70,7 @@ spec: # ------------------------------------------------------------------------- - name: mongodb_action type: string - default: "install" + default: "none" description: Set to 'install' to update mongodb instances in specified mongodb namespace - name: mongodb_namespace type: string @@ -78,6 +78,7 @@ spec: description: Namespace where mongodb instances will be updated - name: mongodb_version type: string + default: "" description: Override the target version of MongoDb (use with extreme caution) # TODO: The role should look this up itself