sassoftware / viya4-deployment

This project contains Ansible code that creates a baseline in an existing Kubernetes environment for use with the SAS Viya Platform, generates the manifest for an order, and then can also deploy that order into the Kubernetes environment specified.
Apache License 2.0
71 stars 64 forks source link

fix: (IAC-758) [DAC] error message when uninstalling Viya w/o internal PG #313

Closed dhoucgitter closed 2 years ago

dhoucgitter commented 2 years ago

Changes

Only run the uninstall postgrescluster task when an internal postgres database is present to avoid the error msg generated trying to uninstall a postgres db that's not present.

Tests

Ran through a Viya uninstall against two deployments, one with an internal postgres db installed and one with an external postgres db installed.

Scenario  Provider Outcome
1 - Internal postgres db Azure Uninstall postgresclusters task runs as needed and uninstalls postgres prior to Viya uninstall
2 - External postgres db Azure Uninstall postgresclusters task is skipped