Skip to content

Commit b231f3a

Browse files
committed
Fix: Remove deprecated inventory for deployment
A inventory used in deployment workflow was removed in previous commit and was replaced by the new one controlled by the env variable. This commit also fixed a target version of ocp index image for integration tests. The previous version wasn't aligned with tested cluster. Signed-off-by: Ales Raszka <[email protected]>
1 parent 028be9c commit b231f3a

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ jobs:
4343
requirements: playbooks/requirements.yml
4444
vault_password: ${{secrets.VAULT_PASSWORD}}
4545
options: |
46-
--inventory inventory/operator-pipeline-dev
47-
--extra-vars "operator_pipeline_image_tag=${{ github.sha }} suffix=${{needs.prepare-env.outputs.short_sha}}"
46+
--extra-vars "operator_pipeline_image_tag=${{ github.sha }} suffix=${{needs.prepare-env.outputs.short_sha}} env=dev"
4847
--skip-tags ci,import-index-images
4948
--verbose
5049
@@ -70,8 +69,7 @@ jobs:
7069
requirements: playbooks/requirements.yml
7170
vault_password: ${{secrets.VAULT_PASSWORD}}
7271
options: |
73-
--inventory inventory/operator-pipeline-qa
74-
--extra-vars "operator_pipeline_image_tag=${{ github.sha }} suffix=${{needs.prepare-env.outputs.short_sha}}"
72+
--extra-vars "operator_pipeline_image_tag=${{ github.sha }} suffix=${{needs.prepare-env.outputs.short_sha}} env=qa"
7573
--skip-tags ci,import-index-images
7674
--verbose
7775
@@ -98,8 +96,7 @@ jobs:
9896
requirements: playbooks/requirements.yml
9997
vault_password: ${{secrets.VAULT_PASSWORD}}
10098
options: |
101-
--inventory inventory/operator-pipeline-stage
102-
--extra-vars "operator_pipeline_image_tag=${{ github.sha }} suffix=${{needs.prepare-env.outputs.short_sha}}"
99+
--extra-vars "operator_pipeline_image_tag=${{ github.sha }} suffix=${{needs.prepare-env.outputs.short_sha}} env=stage"
103100
--skip-tags ci,import-index-images
104101
--verbose
105102
@@ -125,8 +122,7 @@ jobs:
125122
requirements: playbooks/requirements.yml
126123
vault_password: ${{secrets.VAULT_PASSWORD_PROD}}
127124
options: |
128-
--inventory inventory/operator-pipeline-prod
129-
--extra-vars "operator_pipeline_image_tag=${{ github.sha }} suffix=${{needs.prepare-env.outputs.short_sha}}"
125+
--extra-vars "operator_pipeline_image_tag=${{ github.sha }} suffix=${{needs.prepare-env.outputs.short_sha}} env=prod"
130126
--skip-tags ci,import-index-images
131127
--verbose
132128

ansible/inventory/group_vars/operator-pipeline-integration-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ integration_tests_src_operator_git_branch: e2e-test-operator
2424
integration_tests_src_operator_package_name: test-e2e-operator
2525
integration_tests_src_operator_bundle_version: 0.0.8
2626

27-
integration_tests_ocp_versions_range: "=v4.15"
27+
integration_tests_ocp_versions_range: "=v4.14"
2828

2929
integration_tests_fbc_catalog: false
3030
integration_tests_verify_bundle_in_catalog: true

ansible/playbooks/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- name: Deploy all the operator pipelines
3-
hosts: all
3+
hosts: "operator-pipeline-{{ env }}"
44
vars_files:
55
- ../vaults/{{ env }}/secret-vars.yml
66
- ../vaults/{{ env }}/ocp-token.yml

0 commit comments

Comments
 (0)