Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocp4_workload_rhacm: allow ingresscontroller updates for wildcards #8846

Merged
merged 2 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ ocp4_workload_rhacm_automatic_install_plan_approval: true
ocp4_workload_rhacm_mce_catalogsource_name: ""
# This namespace cannot be changed due to multicluster-engine operator not able look elsewhere.
ocp4_workload_rhacm_mce_catalogsource_namespace: openshift-marketplace

# Required for Catalog Items that will deploy hosted clusters to the local-cluster
# Enable Wildcards to allow access to HCP Hosted Clusters console, etc.
ocp4_workload_rhacm_enable_wildcards: false
13 changes: 13 additions & 0 deletions ansible/roles_ocp_workloads/ocp4_workload_rhacm/tasks/workload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
ansible.builtin.debug:
msg: "Setting up workload for user ocp_username = {{ ocp_username }}"

# oc patch ingresscontroller -n openshift-ingress-operator default --type=json -p '[{ "op": "add", "path": "/spec/routeAdmission", "value": {wildcardPolicy: "WildcardsAllowed"}}]'
- name: Update Router for Wildcards for HCP Hosted Clusters
when: ocp4_workload_rhacm_enable_wildcards | bool
kubernetes.core.k8s_json_patch:
kind: IngressController
namespace: openshift-ingress-operator
name: default
patch:
- op: add
path: /spec/routeAdmission
value:
wildcardPolicy: WildcardsAllowed

- name: Install RHACM operator
ansible.builtin.include_role:
name: install_operator
Expand Down
Loading