Get the Helm release name for the ThreadFix instance.
TF_RELEASE=$(helm ls | grep threadfix | awk '{print $1}')
Get the current installed version of ThreadFix.
TF_VERSION=$(helm ls --filter "$TF_RELEASE" | grep -o 'threadfix-[Az0-9\.\-]*' | sed 's|threadfix-||g')
ThreadFix automatically generates internal credentials if not explicitly provided. If not already done so, save these in a secure location for recovery purposes.
Pull the latest chart from Denim Group's Helm repository for ThreadFix.
helm repo update
Check the latest available version.
helm search repo threadfix
Review the release notes prior to upgrading. Not all upgrade paths are supported.
(Optional) If changes to the charts values are required:
Export the currently installed Helm values.
helm get values $TF_RELEASE > myValues.yaml
Make necessary changes to the myValues.yaml file.
Pass the modified values file in the the helm upgrade command with -f myValues.yaml.
Upgrade ThreadFix with Helm (include -f myValues.yaml if modifying installation values).
helm upgrade $TF_RELEASE denimgroup/threadfix
Follow the (Review) Upgrade Validation Checklist to validate the ThreadFix upgrade has completed successfully. If there are any issues, users may rollback to the previous state with:
helm rollback $TF_RELEASE
If rolling back a failed upgrade, the user may have to restore the database from backup depending on the status of the database migration. Follow (Review) Backup & Restore for more information.