Skip to content

Commit

Permalink
Fix certification-project-check arguments (#703)
Browse files Browse the repository at this point in the history
* Fix certification-project-check arguments

---------

Signed-off-by: Maurizio Porrato <[email protected]>
  • Loading branch information
mporrato authored Aug 8, 2024
1 parent b231f3a commit 86a72c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,8 @@ spec:
params:
- name: pipeline_image
value: "$(params.pipeline_image)"
- name: bundle_path
value: "$(tasks.detect-changes.results.bundle_path)"
- name: operator_path
value: "$(tasks.detect-changes.results.operator_path)"
- name: catalog_operator_path
value: "$(tasks.detect-changes.results.affected_catalog_operators)"
- name: cert_project_required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ spec:
params:
- name: pipeline_image
value: "$(params.pipeline_image)"
- name: bundle_path
value: "$(tasks.detect-changes.results.bundle_path)"
- name: operator_path
value: "$(tasks.detect-changes.results.operator_path)"
- name: catalog_operator_path
value: "$(tasks.detect-changes.results.affected_catalog_operators)"
- name: cert_project_required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
spec:
params:
- name: pipeline_image
- name: bundle_path
description: path indicating the location of the certified bundle within the repository
- name: operator_path
description: path indicating the location of the certified operator within the repository
- name: catalog_operator_path
description: path indicating the location of the catalog operator within the repository
default: ""
Expand All @@ -33,8 +33,8 @@ spec:
echo -n "" | tee $(results.certification_project_id.path)
exit 0
fi
if [ "$(params.bundle_path)" != "" ]; then
PKG_PATH=$(dirname $(realpath $(params.bundle_path)))
if [ "$(params.operator_path)" != "" ]; then
PKG_PATH="$(params.operator_path)"
elif [ "$(params.catalog_operator_path)" != "" ]; then
OPERATOR_NAME=$(echo $(params.catalog_operator_path) | cut -d ',' -f 1 | cut -d '/' -f 2)
PKG_PATH=operators/$OPERATOR_NAME
Expand Down

0 comments on commit 86a72c1

Please sign in to comment.