Skip to main content
Version: 3.9

Upgrade EDP v3.4 to 3.5

warning

We suggest making a backup of the EDP environment before starting the upgrade procedure.

This section provides detailed instructions for upgrading EPAM Delivery Platform to version 3.5.3. Follow the steps and requirements outlined below:

  1. Update Custom Resource Definitions (CRDs). Run the following command to apply all necessary CRDs to the cluster:

    kubectl apply -f https://raw.githubusercontent.com/epam/edp-codebase-operator/v2.19.0/deploy-templates/crds/v2.edp.epam.com_gitservers.yaml
    danger

    Codebase-operator v2.19.0 is not compatible with the previous versions. Please become familiar with the breaking change in Git Server Custom Resource Definition.

  2. Familiarize yourself with the updated file structure of the values.yaml file and adjust your values.yaml file accordingly:

    1. By default, the deployment of sub components such as edp-sonar-operator, edp-nexus-operator, edp-gerrit-operator, and keycloak-operator, have been disabled. Set them back to true in case they are needed or manually deploy external tools, such as SonarQube, Nexus, Gerrit and integrate them with the EPAM Delivery Platform.

    2. The default Git provider has been changed from Gerrit to GitHub:

      Old format:

      global:
      gitProvider: gerrit
      gerritSSHPort: "22"

      New format:

      global:
      gitProvider: github
      #gerritSSHPort: "22"
    3. The sonarUrl and nexusUrl parameters have been deprecated. All the URLs from external components are stored in integration secrets:

      global:
      # -- Optional parameter. Link to use custom sonarqube. Format: http://<service-name>.<sonarqube-namespace>:9000 or http://<ip-address>:9000
      sonarUrl: ""
      # -- Optional parameter. Link to use custom nexus. Format: http://<service-name>.<nexus-namespace>:8081 or http://<ip-address>:<port>
      nexusUrl: ""
    4. Keycloak integration has been moved from the global section to the sso section. Update the parameters accordingly:

      Old format:

      global:
      # -- Keycloak URL
      keycloakUrl: https://keycloak.example.com
      # -- Administrators of your tenant
      admins:
      - "stub_user_one@example.com"
      # -- Developers of your tenant
      developers:
      - "stub_user_one@example.com"
      - "stub_user_two@example.com"

      New format:

      sso:
      enabled: true
      # -- Keycloak URL
      keycloakUrl: https://keycloak.example.com
      # -- Administrators of your tenant
      admins:
      - "stub_user_one@example.com"
      # -- Developers of your tenant
      developers:
      - "stub_user_one@example.com"
      - "stub_user_two@example.com"
    5. (Optional) The default secret name for Jira integration has been changed from jira-user to ci-jira. Please adjust the secret name in the parameters accordingly:

      codebase-operator:
      jira:
      credentialName: "ci-jira"
  3. The secret naming and format have been refactored. Below are patterns of the changes for various components:

    Old format:

    "sonar-ciuser-token": {
    "username": "xxxxx",
    "secret": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    }

    New format:

    "ci-sonarqube": {
    "token": "xxxxxxxxxxxxxxxxxxxxxxx",
    "url":"https://sonar.example.com"
    }

    The tables below illustrate the difference between the old and new format:

    Old format

    Secret NameUsernamePasswordTokenSecretURL
    jira-userβœ…βœ…
    nexus-ci.userβœ…βœ…
    sonar-ciuser-tokenβœ…βœ…
    defectdojo-ciuser-tokenβœ…βœ…
    ci-dependency-trackβœ…

    New format

    Secret NameUsernamePasswordTokenURL
    ci-jiraβœ…βœ…
    ci-nexusβœ…βœ…βœ…
    ci-sonarqubeβœ…βœ…
    ci-defectdojoβœ…βœ…
    ci-dependency-trackβœ…βœ…
  4. To upgrade EDP to the v3.5.3, run the following command:

    helm upgrade edp epamedp/edp-install -n edp --values values.yaml --version=3.5.3
    note

    To verify the installation, it is possible to test the deployment before applying it to the cluster with the --dry-run tag:
    helm upgrade edp epamedp/edp-install -n edp --values values.yaml --version=3.5.3 --dry-run