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

🐛 install cr's before the hub is deployed #350

Merged
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
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 @@ -250,7 +250,7 @@
shell: |
set -euo pipefail
until pg_isready -U {{ dbm_user }} -h {{ keycloak_database_service_k8s_resource_name }} -d {{ keycloak_database_db_name }}; do sleep 10; done
until pg_isready -U {{ dbm_user }} -h {{ keycloak_database_service_k8s_resource_name }}-migration -d {{ keycloak_database_db_name }}; do sleep 10; done

Check warning on line 253 in roles/tackle/tasks/main.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

yaml[line-length]

Line too long (168 > 160 characters)
pg_dump {{ dbm_src }} | psql {{ dbm_dst }}
changed_when: false

Expand Down 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
Loading