Upgrade EDP v3.4 to 3.5βοΈ
Important
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:
-
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.
-
Familiarize yourself with the updated file structure of the values.yaml file and adjust your values.yaml file accordingly:
-
By default, the deployment of sub components such as
edp-sonar-operator
,edp-nexus-operator
,edp-gerrit-operator
, andkeycloak-operator
, have been disabled. Set them back totrue
in case they are needed or manually deploy external tools, such as SonarQube, Nexus, Gerrit and integrate them with the EPAM Delivery Platform. -
The default Git provider has been changed from Gerrit to GitHub:
Old format:
New format:
-
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: ""
-
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:
-
(Optional) The default secret name for Jira integration has been changed from
jira-user
toci-jira
. Please adjust the secret name in the parameters accordingly:
-
-
The secret naming and format have been refactored. Below are patterns of the changes for various components:
The tables below illustrate the difference between the old and new format:
Old format
Secret Name Username Password Token Secret URL jira-user * * nexus-ci.user * * sonar-ciuser-token * * defectdojo-ciuser-token * * ci-dependency-track * New format
Secret Name Username Password Token URL ci-jira * * ci-nexus * * * ci-sonarqube * * ci-defectdojo * * ci-dependency-track * * -
To upgrade EDP to the v3.5.3, run the following command:
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