Skip to content

Commit 86a72c1

Browse files
authored
Fix certification-project-check arguments (#703)
* Fix certification-project-check arguments --------- Signed-off-by: Maurizio Porrato <[email protected]>
1 parent b231f3a commit 86a72c1

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

ansible/roles/operator-pipeline/templates/openshift/pipelines/operator-hosted-pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,8 @@ spec:
531531
params:
532532
- name: pipeline_image
533533
value: "$(params.pipeline_image)"
534-
- name: bundle_path
535-
value: "$(tasks.detect-changes.results.bundle_path)"
534+
- name: operator_path
535+
value: "$(tasks.detect-changes.results.operator_path)"
536536
- name: catalog_operator_path
537537
value: "$(tasks.detect-changes.results.affected_catalog_operators)"
538538
- name: cert_project_required

ansible/roles/operator-pipeline/templates/openshift/pipelines/operator-release-pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ spec:
279279
params:
280280
- name: pipeline_image
281281
value: "$(params.pipeline_image)"
282-
- name: bundle_path
283-
value: "$(tasks.detect-changes.results.bundle_path)"
282+
- name: operator_path
283+
value: "$(tasks.detect-changes.results.operator_path)"
284284
- name: catalog_operator_path
285285
value: "$(tasks.detect-changes.results.affected_catalog_operators)"
286286
- name: cert_project_required

ansible/roles/operator-pipeline/templates/openshift/tasks/cert-project-check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ metadata:
66
spec:
77
params:
88
- name: pipeline_image
9-
- name: bundle_path
10-
description: path indicating the location of the certified bundle within the repository
9+
- name: operator_path
10+
description: path indicating the location of the certified operator within the repository
1111
- name: catalog_operator_path
1212
description: path indicating the location of the catalog operator within the repository
1313
default: ""
@@ -33,8 +33,8 @@ spec:
3333
echo -n "" | tee $(results.certification_project_id.path)
3434
exit 0
3535
fi
36-
if [ "$(params.bundle_path)" != "" ]; then
37-
PKG_PATH=$(dirname $(realpath $(params.bundle_path)))
36+
if [ "$(params.operator_path)" != "" ]; then
37+
PKG_PATH="$(params.operator_path)"
3838
elif [ "$(params.catalog_operator_path)" != "" ]; then
3939
OPERATOR_NAME=$(echo $(params.catalog_operator_path) | cut -d ',' -f 1 | cut -d '/' -f 2)
4040
PKG_PATH=operators/$OPERATOR_NAME

0 commit comments

Comments
 (0)