Skip to content

Commit

Permalink
🐛 install cr's before the hub is deployed (minio#350)
Browse files Browse the repository at this point in the history
Signed-off-by: Shawn Hurley <shawn@hurley.page>
  • Loading branch information
shawn-hurley authored Jul 22, 2024
1 parent 3efe530 commit 8140f64
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/actions/start-minikube/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ runs:
container-runtime: ${{ inputs.container-runtime }}
kubernetes-version: ${{ inputs.kubernetes-version }}
cpus: ${{ inputs.cpus }}
memory: ${{ inputs.memory }}
memory: 8000
cni: ${{ inputs.cni }}
# Don't pass minikube start ${ARGS} as they are handled in setup-minikube
- name: Start minikube
Expand Down
47 changes: 24 additions & 23 deletions roles/tackle/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,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 @@ -516,29 +540,6 @@
name: "{{ app_name }}-maven-volume-claim"
namespace: "{{ app_namespace }}"

- 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: "Create Network Policy"
k8s:
state: present
Expand Down

0 comments on commit 8140f64

Please sign in to comment.