diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 3c05c227..1db48735 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -122,10 +122,6 @@ jobs: run: sudo -E .ci/scripts/galaxy_ng-tests.sh -m shell: bash - # # TODO: Remove after testing - # - name: Setup tmate session - # uses: mxschmitt/action-tmate@v3 - - name: Backup & Restore run: CI_TEST=galaxy .ci/scripts/backup_and_restore.sh -m shell: bash @@ -135,6 +131,7 @@ jobs: - name: Logs if: always() run: .github/workflows/scripts/show_logs.sh + # - name: Debugging example (uncomment when needed) # if: failure() # uses: mxschmitt/action-tmate@v3 diff --git a/roles/backup/tasks/cleanup.yml b/roles/backup/tasks/cleanup.yml index 1f355170..65a56e82 100644 --- a/roles/backup/tasks/cleanup.yml +++ b/roles/backup/tasks/cleanup.yml @@ -10,6 +10,7 @@ k8s: name: "{{ ansible_operator_meta.name }}-backup-manager" kind: Pod + api_version: v1 namespace: "{{ backup_pvc_namespace }}" state: absent force: true diff --git a/roles/backup/tasks/init.yml b/roles/backup/tasks/init.yml index 8109bd5b..8411b075 100644 --- a/roles/backup/tasks/init.yml +++ b/roles/backup/tasks/init.yml @@ -4,6 +4,7 @@ k8s: name: "{{ ansible_operator_meta.name }}-backup-manager" kind: Pod + api_version: v1 namespace: "{{ backup_pvc_namespace }}" state: absent force: true @@ -199,6 +200,7 @@ - name: Wait for backup management pod to be running k8s_info: kind: Pod + api_version: v1 namespace: "{{ ansible_operator_meta.namespace }}" label_selectors: - "app.kubernetes.io/component=backup-manager" diff --git a/roles/backup/tasks/postgres.yml b/roles/backup/tasks/postgres.yml index 8d230ff1..67980ade 100644 --- a/roles/backup/tasks/postgres.yml +++ b/roles/backup/tasks/postgres.yml @@ -41,6 +41,7 @@ - name: Get the postgres pod information k8s_info: kind: Pod + api_version: v1 namespace: '{{ ansible_operator_meta.namespace }}' label_selectors: - "{{ postgres_label_selector }}" diff --git a/roles/backup/tasks/remove_management_pod.yml b/roles/backup/tasks/remove_management_pod.yml index 31129677..40682ec7 100644 --- a/roles/backup/tasks/remove_management_pod.yml +++ b/roles/backup/tasks/remove_management_pod.yml @@ -3,6 +3,7 @@ k8s: name: "{{ ansible_operator_meta.name }}-backup-manager" kind: Pod + api_version: v1 namespace: "{{ backup_pvc_namespace }}" state: absent force: true diff --git a/roles/galaxy-config/tasks/get_node_ip.yml b/roles/galaxy-config/tasks/get_node_ip.yml index a14c8d55..881c10bd 100644 --- a/roles/galaxy-config/tasks/get_node_ip.yml +++ b/roles/galaxy-config/tasks/get_node_ip.yml @@ -79,6 +79,7 @@ - name: Retrieve web pod k8s_info: kind: Pod + api_version: v1 namespace: "{{ ansible_operator_meta.namespace }}" label_selectors: - "app.kubernetes.io/instance = nginx-{{ ansible_operator_meta.name }}" diff --git a/roles/galaxy-status/tasks/main.yml b/roles/galaxy-status/tasks/main.yml index c66d9822..e57ebd82 100644 --- a/roles/galaxy-status/tasks/main.yml +++ b/roles/galaxy-status/tasks/main.yml @@ -32,6 +32,7 @@ - name: Get the resource pod information. k8s_info: kind: Pod + api_version: v1 namespace: '{{ ansible_operator_meta.namespace }}' label_selectors: - "app.kubernetes.io/instance=nginx-{{ ansible_operator_meta.name }}" diff --git a/roles/postgres/tasks/main.yml b/roles/postgres/tasks/main.yml index 77bb9b91..1bed3538 100644 --- a/roles/postgres/tasks/main.yml +++ b/roles/postgres/tasks/main.yml @@ -36,6 +36,7 @@ - name: Get the old postgres pod (N-1) kubernetes.core.k8s_info: kind: Pod + api_version: v1 namespace: "{{ ansible_operator_meta.namespace }}" label_selectors: - "{{ postgres_label_selector }}" diff --git a/roles/postgres/tasks/migrate_data.yml b/roles/postgres/tasks/migrate_data.yml index cea4fff1..032f3ab9 100644 --- a/roles/postgres/tasks/migrate_data.yml +++ b/roles/postgres/tasks/migrate_data.yml @@ -18,6 +18,7 @@ - name: Get the postgres pod information k8s_info: kind: Pod + api_version: v1 namespace: '{{ ansible_operator_meta.namespace }}' label_selectors: - "{{ postgres_label_selector }}" diff --git a/roles/postgres/tasks/upgrade_postgres.yml b/roles/postgres/tasks/upgrade_postgres.yml index 5f9e8d82..ec601ac3 100644 --- a/roles/postgres/tasks/upgrade_postgres.yml +++ b/roles/postgres/tasks/upgrade_postgres.yml @@ -80,6 +80,7 @@ - name: Get new postgres pod information k8s_info: kind: Pod + api_version: v1 namespace: "{{ ansible_operator_meta.namespace }}" label_selectors: - "{{ postgres_label_selector }}" diff --git a/roles/restore/tasks/init.yml b/roles/restore/tasks/init.yml index 18db56d2..d6608003 100644 --- a/roles/restore/tasks/init.yml +++ b/roles/restore/tasks/init.yml @@ -146,6 +146,7 @@ k8s: name: "{{ ansible_operator_meta.name }}-backup-manager" kind: Pod + api_version: v1 namespace: "{{ backup_pvc_namespace }}" state: absent force: true @@ -170,6 +171,7 @@ - name: Wait for restore management pod to be running k8s_info: kind: Pod + api_version: v1 namespace: "{{ ansible_operator_meta.namespace }}" label_selectors: - "app.kubernetes.io/component=backup-manager" diff --git a/roles/restore/tasks/postgres.yml b/roles/restore/tasks/postgres.yml index 2b11f7af..98518e57 100644 --- a/roles/restore/tasks/postgres.yml +++ b/roles/restore/tasks/postgres.yml @@ -43,6 +43,7 @@ - name: Get the postgres pod information k8s_info: kind: Pod + api_version: v1 namespace: '{{ ansible_operator_meta.namespace }}' label_selectors: - "{{ postgres_label_selector }}" diff --git a/roles/restore/tasks/remove_management_pod.yml b/roles/restore/tasks/remove_management_pod.yml index 31129677..40682ec7 100644 --- a/roles/restore/tasks/remove_management_pod.yml +++ b/roles/restore/tasks/remove_management_pod.yml @@ -3,6 +3,7 @@ k8s: name: "{{ ansible_operator_meta.name }}-backup-manager" kind: Pod + api_version: v1 namespace: "{{ backup_pvc_namespace }}" state: absent force: true