Upgrading DevOps Loop

After you complete certain backup and pre-upgrade steps, you can upgrade DevOps Loop to a newer version using Helm.

Before you begin

You must have completed the following tasks:

  • Performed a backup of DevOps Loop. For detailed steps, see Backup and restoration of DevOps Loop.
  • Ensured that you have access to the Kubernetes cluster and Helm CLI.
  • Verified that the Helm chart repository is reachable from the environment.
Perform the following steps to upgrade DevOps Loop:

Procedure

  1. Run the following commands to set environment variables for the upgrade:
    HELM_NAME=devops-loop
    NAMESPACE=devops-loop
    VERSION=2.0.000
  2. Run the following command to initialize the additional Helm options:
    export ADDITIONAL_HELM_OPTIONS="--set option1=value1 --set option2=value2"
  3. Run the following command to retrieve the existing Helm values:
    helm get values ${HELM_NAME} --namespace ${NAMESPACE} > user_input_values.yaml
    
  4. Retrieve the existing Helm values again to verify the configuration by running the following command:
    ADDITIONAL_HELM_OPTIONS=${ADDITIONAL_HELM_OPTIONS:-}
    helm get values ${HELM_NAME} --namespace ${NAMESPACE}
    
  5. Run the following command to upgrade DevOps Loop:
    ADDITIONAL_HELM_OPTIONS=${ADDITIONAL_HELM_OPTIONS:-}  
    helm get values ${HELM_NAME} --namespace ${NAMESPACE} > user_input_values.yaml
    helm upgrade "${HELM_NAME}" oci://hclcr.io/devops-automation-helm/hcl-devops-loop --namespace ${NAMESPACE} --version=${VERSION} -f user_input_values.yaml ${ADDITIONAL_HELM_OPTIONS}
  6. Verify that all DevOps Loop pods and components are running by using the following command:
    kubectl get pods -n devops-loop
    

Results

You have upgraded DevOps Loop.