Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions roles/ocp4_workload_openshift_gitops/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions roles/ocp4_workload_openshift_gitops/tasks/workload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading