Skip to content

Commit

Permalink
drop trusted-ca config map
Browse files Browse the repository at this point in the history
apparently, recent versions of OpenShift doesn't set the 'trustedCA'
property in the cluster's Proxy, leading to our operator failing on
checking "proxy_cluster.spec.trustedCA.name|length > 0". we no longer
need the config map as we dropped the old, standadlone, UI.

Signed-off-by: Arik Hadas <[email protected]>
  • Loading branch information
ahadas committed May 2, 2024
1 parent 90f7ace commit e2fe5c4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
17 changes: 0 additions & 17 deletions operator/roles/forkliftcontroller/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,6 @@
set_fact:
k8s_cluster_version: "{{ lookup('k8s', cluster_info='version').kubernetes.gitVersion }}"

- when: not k8s_cluster|bool
block:
- name: "Get cluster proxy object"
set_fact:
proxy_cluster: "{{ lookup('k8s', api_version='config.openshift.io/v1', kind='Proxy', resource_name='cluster') }}"

- when: proxy_cluster.spec.trustedCA.name|length > 0
block:
- name: "Enable trusted CA environment"
set_fact:
trusted_ca_enabled: true

- name: "Create an empty ConfigMap that will hold the trusted CA"
k8s:
state: present
definition: "{{ lookup('template', 'configmap-trusted-ca.yml.j2') }}"

- name: "Setup controller config map"
k8s:
state : present
Expand Down

This file was deleted.

0 comments on commit e2fe5c4

Please sign in to comment.