|
| 1 | +# Enable the GitOps Console plugin |
| 2 | + |
| 3 | +The GitOps Console plugin is enabled by default after you install the Red Hat OpenShift GitOps Operator. If you disable the plugin, you can enable it manually. |
| 4 | + |
| 5 | +## Prerequisites |
| 6 | + |
| 7 | +* You have installed the Red Hat OpenShift GitOps Operator. |
| 8 | +* You have access to the OpenShift web console with cluster administrator permissions. |
| 9 | + |
| 10 | +## Procedure |
| 11 | + |
| 12 | +1. In the OpenShift web console, navigate to **Home** → **Overview**. |
| 13 | + |
| 14 | +  |
| 15 | + |
| 16 | +2. In the **Status** panel, click **Dynamic Plugins**. |
| 17 | + |
| 18 | +  |
| 19 | + |
| 20 | + A popup appears with a link to view all dynamic plugins. |
| 21 | + |
| 22 | +3. Click **View all**. |
| 23 | + |
| 24 | +4. Under the **Console plugins** tab, find **gitops-plugin**. |
| 25 | + |
| 26 | +5. If the plugin is disabled, click **Enable**. |
| 27 | + |
| 28 | +  |
| 29 | + |
| 30 | + The browser might require a refresh. After refreshing, the page indicates that the plugin is **Enabled**. |
| 31 | + |
| 32 | +## Verification |
| 33 | + |
| 34 | +* Navigate to **GitOps** in the navigation menu and verify that you can access **Applications**, **ApplicationSets**, and **AppProjects**. |
| 35 | +* If the ImageUpdater and Rollout CRDs are installed on the cluster, also verify that you can access **ImageUpdaters** and **Rollouts**. |
| 36 | + |
| 37 | +  |
| 38 | + |
| 39 | +## Disable the plugin |
| 40 | + |
| 41 | +Use the same **Console plugins** list and disable **gitops-plugin**. |
| 42 | + |
| 43 | +### Disable or enable with the CLI |
| 44 | + |
| 45 | +The console loads plugins listed in `spec.plugins` on `console.operator.openshift.io/cluster`. |
| 46 | + |
| 47 | +1. Check which plugins are enabled: |
| 48 | + |
| 49 | + ```bash |
| 50 | + oc get console.operator.openshift.io cluster -o jsonpath='{.spec.plugins}{"\n"}' |
| 51 | + ``` |
| 52 | + |
| 53 | +2. To enable **gitops-plugin**: |
| 54 | + |
| 55 | + * If step 1 printed a JSON array (for example `["monitoring-plugin"]`), append **gitops-plugin**: |
| 56 | + |
| 57 | + ```bash |
| 58 | + PLUGIN_PATCH='[{"op":"add","path":"/spec/plugins/-","value":"gitops-plugin"}]' |
| 59 | + oc patch console.operator.openshift.io cluster --type=json -p "${PLUGIN_PATCH}" |
| 60 | + ``` |
| 61 | + |
| 62 | + * If step 1 printed nothing (or only `null`), `spec.plugins` is missing. Create the list: |
| 63 | + |
| 64 | + ```bash |
| 65 | + PLUGIN_PATCH='[{"op":"add","path":"/spec/plugins","value":["gitops-plugin"]}]' |
| 66 | + oc patch console.operator.openshift.io cluster --type=json -p "${PLUGIN_PATCH}" |
| 67 | + ``` |
| 68 | + |
| 69 | + Skip this step if `gitops-plugin` is already in the list from the previous command. |
| 70 | + |
| 71 | +3. To disable **gitops-plugin**, edit the Console operator and remove `gitops-plugin` from `spec.plugins`: |
| 72 | + |
| 73 | + ```bash |
| 74 | + oc edit console.operator.openshift.io cluster |
| 75 | + ``` |
| 76 | + |
| 77 | + Example: |
| 78 | + |
| 79 | + ```yaml |
| 80 | + spec: |
| 81 | + plugins: |
| 82 | + - monitoring-plugin |
| 83 | + # remove: - gitops-plugin |
| 84 | + ``` |
| 85 | + |
| 86 | +4. Refresh the browser after the change. The **GitOps** entry disappears from the navigation when the plugin is disabled. |
| 87 | + |
| 88 | +## Multi-instance configuration |
| 89 | + |
| 90 | +The GitOps Console plugin is cluster-scoped. A single plugin deployment serves all Argo CD instances on the cluster; you do not install a separate plugin for each instance. |
| 91 | + |
| 92 | +When multiple Argo CD instances exist in different namespaces, their resources appear together in the GitOps pages. Use the namespace selector to limit the view to one namespace or to browse across namespaces. |
| 93 | + |
| 94 | +The **View in Argo CD** action opens the selected application in the Argo CD user interface. This action requires a Route to the Argo CD server. |
| 95 | + |
| 96 | +## Related information |
| 97 | + |
| 98 | +* [Getting started](getting-started.md) |
| 99 | +* [Troubleshooting](troubleshooting.md) |
0 commit comments