Skip to content

Commit

Permalink
install cr's before the hub is deployed
Browse files Browse the repository at this point in the history
Signed-off-by: Shawn Hurley <shawn@hurley.page>
  • Loading branch information
shawn-hurley committed Jul 5, 2024
1 parent 011a031 commit 3c30253
Showing 1 changed file with 24 additions and 15 deletions.
39 changes: 24 additions & 15 deletions roles/tackle/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,30 @@
- feature_auth_required|bool
- app_profile == "mta"

# Create all the neccessary CR's before the hub deployment is created
- name: "Remove Admin Addon CR"
k8s:
state: absent
kind: Addon
api_version: tackle.konveyor.io/v1alpha2
name: "{{ admin_name }}"
namespace: "{{ app_namespace }}"

- name: "Create Windup Addon CR"
k8s:
state: present
definition: "{{ lookup('template', 'customresource-addon-analyzer.yml.j2') }}"

- name: "Create Language Discovery Addon CR"
k8s:
state: present
definition: "{{ lookup('template', 'customresource-addon-language-discovery.yml.j2') }}"

- name: "Create Tech Discovery Addon CR"
k8s:
state: present
definition: "{{ lookup('template', 'customresource-addon-tech-discovery.yml.j2') }}"

- name: "Setup Hub API Service"
k8s:
state: present
Expand Down Expand Up @@ -458,21 +482,6 @@
name: "{{ admin_name }}"
namespace: "{{ app_namespace }}"

- name: "Create Windup Addon CR"
k8s:
state: present
definition: "{{ lookup('template', 'customresource-addon-analyzer.yml.j2') }}"

- name: "Create Language Discovery Addon CR"
k8s:
state: present
definition: "{{ lookup('template', 'customresource-addon-language-discovery.yml.j2') }}"

- name: "Create Tech Discovery Addon CR"
k8s:
state: present
definition: "{{ lookup('template', 'customresource-addon-tech-discovery.yml.j2') }}"

- name: "Create Network Policy"
k8s:
state: present
Expand Down

0 comments on commit 3c30253

Please sign in to comment.