For Astronomer Software customers, new product features are regularly made available in stable and long-term support (LTS) releases as described in Release and Lifecycle Policy. Patch versions of Astronomer Software with additional bug and security fixes are also released on a regular basis.
All stable and patch releases of Astronomer Software require a simple upgrade process. When an LTS version is released, additional upgrade guidance specific to that version will be made available.
Follow this guide to upgrade to any stable or patch version of Astronomer Software. For information on new features and changes, refer to Software Release Notes.
A few notes before you get started:
- The patch upgrade process will not affect running Airflow tasks as long as
upgradeDeployments.enabled=falseis set in the script below.
- Patch and stable version updates will not cause any downtime to Astronomer services (Software UI, Houston API, Astronomer CLI).
Note: Astronomer v0.16.5 and beyond includes an improved upgrade process that allows Airflow Deployments to remain unaffected through a platform upgrade that includes changes to the Astronomer Airflow Chart.
Now, Airflow Chart changes only take effect when another restart event is triggered by a user (e.g. a code push, Environment Variable change, resource or executor adjustment, etc).
Step 1: Ensure You Have a Copy of Your Astronomer config.yaml File
First, ensure you have a copy of the
config.yaml file of your platform namespace.
To do this, you can run:
helm get values <your-platform-release-name> -n <your-platform-namespace> > config.yaml
Review this configuration and delete the line
"USER-SUPPLIED VALUES:" if you see it.
Step 2: Verify Your Current Platform Version
To verify the version of Astronomer you're currently operating with, run:
helm list --all-namespaces | grep astronomer
Step 3: Run Astronomer's Patch Upgrade Script
Now, review and run the script below to upgrade to the patch version of your choice.
Make sure to substitute the following 3 variables with your own values:
helm3 repo add astronomer https://helm.astronomer.io
helm3 repo update
# upgradeDeployments false ensures that Airflow charts are not upgraded when this script is ran
# If you deployed a config change that is intended to reconfigure something inside Airflow,
# then you may set this value to "true" instead. When it is "true", then each Airflow chart will
helm3 upgrade --namespace $NAMESPACE \
-f ./config.yaml \
--version $ASTRO_VERSION \
--set astronomer.houston.upgradeDeployments.enabled=false \
Note: If you do not specify a patch version above, the script will automatically pull the latest Astronomer Software patch available in the Astronomer Helm Chart. If you set
--version 0.16, for example, Astronomer v0.16.9 will be installed if it is the latest v0.16 patch available.