Skip to content

Commit

Permalink
Use new scorecard dir handling and remove debug parts
Browse files Browse the repository at this point in the history
  • Loading branch information
mantomas committed Nov 6, 2024
1 parent 6ff221f commit 66fad39
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions upstream/roles/build_operator_version_bundle/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,39 +272,12 @@
labels_vars: "{{ bovb_bundle_labels_data.stdout | from_yaml }}"
when: bovb_bundle_labels_file.stat.exists

- name: "Debug - list bundle contents"
ansible.builtin.command: >
find "{{ operator_bundle_src_dir }}/{{ operator_package_name }}/{{ op_version }}" -print
register: bundle_files

- name: "Debug - show bundle contents"
ansible.builtin.debug:
var: bundle_files

- name: "Create scorecard directory"
ansible.builtin.file:
path: "{{ operator_bundle_src_dir }}/{{ operator_package_name }}/{{ op_version }}/{{ annotations_vars.annotations['operators.operatorframework.io.test.config.v1'] | default('tests/scorecard/', true) }}"
state: directory
recurse: true

# - name: "Check if scorecard test directory exits"
# block:
# - name: "Fail if value of 'operators.operatorframework.io.test.config.v1' is empty "
# fail:
# msg: "Value 'operators.operatorframework.io.test.config.v1' form annotations.yaml file is empty"
# when: annotations_vars.annotations['operators.operatorframework.io.test.config.v1']|length == 0

# - name: "Check if directory exits"
# stat:
# path: "{{ df_operator_dir }}/{{ op_version }}/{{ annotations_vars.annotations['operators.operatorframework.io.test.config.v1'] }}"
# register: bovb_testing_config

# - name: "Fail if directory doesn't exists"
# fail:
# msg: "Directory '{{ df_operator_dir }}/{{ op_version }}/{{ annotations_vars.annotations['operators.operatorframework.io.test.config.v1'] }}' specified in 'operators.operatorframework.io.test.config.v1' doesn't exists !!! "
# when: not bovb_testing_config.stat.exists
# when: annotations_vars.annotations['operators.operatorframework.io.test.config.v1'] is defined

- name: "Generating Dockerfile using info from metadata directory."
template:
src: "Dockerfile.j2"
Expand Down

0 comments on commit 66fad39

Please sign in to comment.