From ec08daf34ac66fcc48ee83988d9cd72104aa27c4 Mon Sep 17 00:00:00 2001 From: Juliano Mohr <1110178+juliaaano@users.noreply.github.com> Date: Wed, 18 Nov 2026 10:42:38 +0000 Subject: [PATCH] gitops-bootstrap: enable GitOps console plugin --- .../ocp4_workload_openshift_gitops/defaults/main.yml | 3 +++ .../ocp4_workload_openshift_gitops/tasks/workload.yml | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/roles/ocp4_workload_openshift_gitops/defaults/main.yml b/roles/ocp4_workload_openshift_gitops/defaults/main.yml index 4edee15..2195182 100644 --- a/roles/ocp4_workload_openshift_gitops/defaults/main.yml +++ b/roles/ocp4_workload_openshift_gitops/defaults/main.yml @@ -26,6 +26,9 @@ ocp4_workload_openshift_gitops_setup_cluster_admin: false # Enable the route for the default ArgoCD instance. ocp4_workload_openshift_gitops_enable_route: true +# Enable the gitops-plugin ConsolePlugin in the OpenShift web console. +ocp4_workload_openshift_gitops_enable_console_plugin: false + # Set the openshift-gitops route to use re-encrypt in order for the OpenShift Gitops ArgoCD # installation to not throw connection warnings. Default is false for default behavior ocp4_workload_openshift_gitops_update_route_tls: false diff --git a/roles/ocp4_workload_openshift_gitops/tasks/workload.yml b/roles/ocp4_workload_openshift_gitops/tasks/workload.yml index d640e18..a2bc3cd 100644 --- a/roles/ocp4_workload_openshift_gitops/tasks/workload.yml +++ b/roles/ocp4_workload_openshift_gitops/tasks/workload.yml @@ -41,6 +41,17 @@ - r_openshift_gitops.resources is defined - r_openshift_gitops.resources | length == 1 +- name: Enable the GitOps console plugin + when: ocp4_workload_openshift_gitops_enable_console_plugin | bool + kubernetes.core.k8s_json_patch: + api_version: operator.openshift.io/v1 + kind: Console + name: cluster + patch: + - op: add + path: /spec/plugins/- + value: gitops-plugin + - name: Create the kustomize-envvar plugin configmap when: ocp4_workload_openshift_gitops_kustomize_plugin | bool kubernetes.core.k8s: