Skip to content

Commit

Permalink
Merge pull request #38 from ansvu/avu-changes
Browse files Browse the repository at this point in the history
Added missing default values and filter archived
  • Loading branch information
manurodriguez authored Nov 9, 2023
2 parents e3c6f3e + 0f2bd60 commit c7c1949
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions roles/create_helmchart/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
page_size: 200
verify_project_url: "https://catalog.redhat.com/api/containers/v1/vendors/org-id"
published: false
...
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
set_fact:
all_helmchart_projects: "{{ cert_project_list_output.json.data | json_query(query) + [new_helmchart_projects] | flatten }}"
vars:
query: "[?product_listings[0] == '{{ cert_listings.pyxis_product_list_identifier }}'] | []._id"
query: "[?product_listings[0] == '{{ cert_listings.pyxis_product_list_identifier }}' && project_status != 'archived'] | []._id"
when:
- cert_project_list_output | length > 0
- new_helmchart_projects is defined
Expand Down
4 changes: 3 additions & 1 deletion roles/openshift_cnf/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
---
verify_project_url: "https://catalog.redhat.com/api/containers/v1/vendors/org-id"
verify_project_url: "https://catalog.redhat.com/api/containers/v1/vendors/org-id"
page_size: 200
...
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
set_fact:
all_openshift_cnf_projects: "{{ cert_project_list_output.json.data | json_query(query) + [new_openshift_cnf_projects] | flatten }}"
vars:
query: "[?product_listings[0] == '{{ cert_listings.pyxis_product_list_identifier }}'] | []._id"
query: "[?product_listings[0] == '{{ cert_listings.pyxis_product_list_identifier }}' && project_status != 'archived'] | []._id"
when:
- cert_project_list_output | length > 0
- new_openshift_cnf_projects is defined
Expand Down

0 comments on commit c7c1949

Please sign in to comment.