Skip to content
Open
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: 2 additions & 0 deletions audits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
list }}"
- name: Execute operator_install.yml for each opernshift_sub_info
ansible.builtin.include_tasks: operator_install.yml
vars:
install_operands: install_operands | default(false)
loop: "{{ openshift_sub_info }}"
loop_control:
loop_var: manifest_data
6 changes: 6 additions & 0 deletions install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@
until: result.resources[0] is defined and result.resources[0].status.phase == "Succeeded"
retries: 10
delay: 10
- name: Install operands
ansible.builtin.include_tasks: operand_install.yml
vars:
csv: "{{ result.resources[0] }}"
namespace: "{{ full_namespace }}"
when: install_operands | default(false)
- name: Run FIPS enabled tests
ansible.builtin.include_tasks: fips_assessment.yml
when: fips_assessment is defined and fips_assessment
Expand Down
15 changes: 15 additions & 0 deletions operand_install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
- name: Extract ALM examples from CSV
ansible.builtin.set_fact:
alm_examples: "{{ csv.metadata.annotations['alm-examples'] }}"
- name: Print it out
ansible.builtin.debug:
var: alm_examples
- name: Install operands from ALM examples
kubernetes.core.k8s:
state: present
definition: "{{ alm_item }}"
namespace: "{{ namespace }}"
loop: "{{ alm_examples }}"
loop_control:
loop_var: alm_item
2 changes: 2 additions & 0 deletions operator_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@
namespace: "{{ manifest_data.packageName | replace('.', '-') | lower | truncate(40) }}"
- name: Install Operator with each install type
ansible.builtin.include_tasks: install.yml
vars:
install_operands: install_operands
loop: "{{ install_modes }}"
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ ansible-lint==6.17.2
ansible-navigator==3.4.0
ansible-runner==2.3.2
kubernetes==26.1.0

1 change: 1 addition & 0 deletions vars.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ cleanup: true
# 1. list only packages that have corresponding tests on packages var
# 2. uncomment and set fips_assessment to true below
# fips_assessment: true
install_operands: false