|
3 | 3 | [id="rhdh-update-helm_{context}"] |
4 | 4 | = Updating the {SelfServiceShort} version numbers for a Helm installation |
5 | 5 |
|
| 6 | +[role="_abstract"] |
6 | 7 | After you have updated your plug-in registry for your {SelfServiceShort} project on your {OCPShort} instance, |
7 | 8 | you must update the Helm chart with the new versions of your plug-ins files. |
8 | 9 |
|
| 10 | +You can update the Helm chart from the command line using `helm` commands, or from the OpenShift web console. |
| 11 | + |
| 12 | +[NOTE] |
| 13 | +==== |
| 14 | +For upgrades in air-gapped or disconnected environments, the standard procedure cannot be used directly. |
| 15 | +You must first mirror the necessary container images to your local registry and prepare the Helm chart for offline use. |
| 16 | +
|
| 17 | +For detailed instructions on this process, see the |
| 18 | +link:{URLSelfServiceInstall}/self-service-disconnected-install_aap-self-service-install[Installing the self-service automation portal in an air-gapped environment] section of _{LinkSelfServiceInstall}_. |
| 19 | +==== |
| 20 | + |
| 21 | + |
9 | 22 | .Procedure |
10 | 23 |
|
11 | | -. In a browser, log in to your {OCPShort} console. |
12 | | -. Select your OpenShift project for {SelfServiceShort}. |
13 | | -. Select *Helm* and select your Helm chart for {SelfServiceShort} from the list. |
14 | | -. Select menu:Actions[Upgrade]. |
15 | | -. In the *Upgrade Helm Release* pane, select *YAML view*. |
16 | | -. Modify the YAML code to update the versions of the `.tgz` and `.integrity` files to match the versions in the plug-in registry: |
| 24 | +* *Update the Helm chart from the command line:* |
| 25 | +.. In a terminal, log in to your OpenShift instance. |
| 26 | +.. Run the following command to ensure your Helm repository is up to date: |
17 | 27 | + |
18 | 28 | ---- |
19 | | -... |
20 | | -global: |
21 | | -... |
22 | | - plugins: |
23 | | - - disabled: false |
24 | | - integrity: <SHA512 value> |
25 | | - package: 'http://plugin-registry:8080/ansible-plugin-backstage-rhaap-dynamic-x.y.z.tgz' |
26 | | - pluginConfig: |
27 | | - dynamicPlugins: |
28 | | - frontend: |
29 | | - ansible.plugin-backstage-rhaap: |
30 | | - appIcons: |
31 | | - - importName: AnsibleLogo |
32 | | - name: AnsibleLogo |
33 | | - dynamicRoutes: |
34 | | - - importName: AnsiblePage |
35 | | - menuItem: |
36 | | - icon: AnsibleLogo |
37 | | - text: Ansible |
38 | | - path: /ansible |
39 | | - - disabled: false |
40 | | - integrity: <SHA512 value> |
41 | | - package: >- |
42 | | - http://plugin-registry:8080/ansible-plugin-scaffolder-backend-module-backstage-rhaap-dynamic-x.y.z.tgz |
43 | | - pluginConfig: |
44 | | - dynamicPlugins: |
45 | | - backend: |
46 | | - ansible.plugin-scaffolder-backend-module-backstage-rhaap: null |
47 | | - - disabled: false |
48 | | - integrity: <SHA512 value> |
49 | | - package: >- |
50 | | - http://plugin-registry:8080/ansible-plugin-backstage-rhaap-backend-dynamic-x.y.z.tgz |
51 | | - pluginConfig: |
52 | | - dynamicPlugins: |
53 | | - backend: |
54 | | - ansible.plugin-backstage-rhaap-backend: null |
55 | | -
|
| 29 | +$ helm repo update |
| 30 | +---- |
| 31 | +.. Find the latest version of the Helm chart: |
| 32 | ++ |
56 | 33 | ---- |
57 | | -. Click btn:[Upgrade] to restart the pods. |
| 34 | +$ helm search repo openshift-helm-charts/redhat-rhaap-portal |
| 35 | +---- |
| 36 | +.. Upgrade the Helm release: |
| 37 | ++ |
| 38 | +---- |
| 39 | +$ helm upgrade <release_name> openshift-helm-charts/redhat-rhaap-portal --version <chart_version> |
| 40 | +---- |
| 41 | ++ |
| 42 | +Replace `<release_name>` with the name of your Helm release and `<chart_version>` |
| 43 | +with the new Helm chart version number you identified in the previous step. |
| 44 | +* *Update the Helm chart using the OpenShift web console:* |
| 45 | +.. In a browser, log in to your {OCPShort} web console. |
| 46 | +.. Switch to the *Developer* perspective. |
| 47 | +.. From the navigation menu, Select *Helm*. |
| 48 | +.. Find your existing {SelfServiceShort} deployment in the list of *Helm releases* and click its name. |
| 49 | +.. Select menu:Actions[Upgrade]. |
| 50 | +.. In the *Upgrade* pane, select the version that you want to upgrade to from the *Chart Version* dropdown list. |
| 51 | +.. Review the YAML configuration to ensure your custom values are preserved. |
| 52 | +.. Click btn:[Upgrade] to begin the upgrade. |
58 | 53 |
|
59 | 54 | .Verification |
60 | 55 |
|
61 | | -. In the {OCPShort} web console, select *Topology*. |
62 | | -. Check that the {SelfServiceShort} instance is available. |
63 | | - |
| 56 | +After the upgrade completes, verify that the updated {SelfServiceShort} instance is running: |
| 57 | +. In the {OCPShort} web console, navigate to the *Topology* view for your project. |
| 58 | +. Check that the {SelfServiceShort} instance is available and that all associated pods are in a *Running* state. |
64 | 59 |
|
0 commit comments