Skip to content

Commit

Permalink
OCPBUGS-30620: csi-operator: clean up legacy test manifests (#49655)
Browse files Browse the repository at this point in the history
* csi-operator: use test manifests from top-level directory

* csi-operator: build test images from common Dockerfile.test
  • Loading branch information
dobsonj committed Mar 12, 2024
1 parent 3c46b82 commit 37771e9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ images:
as:
- registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16
to: azure-disk-csi-driver-operator
- dockerfile_path: Dockerfile.aws-ebs.test
- dockerfile_path: Dockerfile.test
from: src
to: aws-ebs-csi-driver-operator-test
- dockerfile_path: Dockerfile.azure-disk.test
- dockerfile_path: Dockerfile.test
from: src
to: azure-disk-csi-driver-operator-test
- dockerfile_path: Dockerfile.azure-file
Expand All @@ -48,7 +48,7 @@ images:
as:
- registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16
to: azure-file-csi-driver-operator
- dockerfile_path: Dockerfile.azure-file.test
- dockerfile_path: Dockerfile.test
from: src
to: azure-file-csi-driver-operator-test
promotion:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ set -o errexit
set -o nounset
set -o pipefail

if [ -d /go/src/github.com/openshift/csi-operator/legacy/ ]; then
echo "Using legacy csi directory"
if [ -d /go/src/github.com/openshift/csi-operator/test/e2e/aws-ebs/ ]; then
echo "Using csi-operator repo"
cd /go/src/github.com/openshift/csi-operator
cp test/e2e/aws-ebs/manifest.yaml ${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}
elif [ -d /go/src/github.com/openshift/csi-operator/legacy/ ]; then
echo "Using csi-operator repo legacy dir"
cd /go/src/github.com/openshift/csi-operator/legacy/aws-ebs-csi-driver-operator
cp test/e2e/manifest.yaml ${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}
else
echo "Using regular csi directory"
echo "Using aws-ebs-csi-driver-operator repo"
cd /go/src/github.com/openshift/aws-ebs-csi-driver-operator
cp test/e2e/manifest.yaml ${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ set -o errexit
set -o nounset
set -o pipefail

if [ -d /go/src/github.com/openshift/csi-operator/legacy/ ]; then
echo "Using legacy csi directory"
cd /go/src/github.com/openshift/csi-operator/legacy/azure-disk-csi-driver-operator
cp test/e2e/manifest.yaml ${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}
if [ -d /go/src/github.com/openshift/csi-operator/ ]; then
echo "Using csi-operator repo"
cd /go/src/github.com/openshift/csi-operator
cp test/e2e/azure-disk/manifest.yaml ${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}
else
echo "Using regular csi directory"
echo "Using azure-file-csi-driver-operator repo"
cd /go/src/github.com/openshift/azure-disk-csi-driver-operator
cp test/e2e/manifest.yaml ${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ set -o errexit
set -o nounset
set -o pipefail

if [ -d /go/src/github.com/openshift/csi-operator/legacy/ ]; then
echo "Using legacy csi directory"
cd /go/src/github.com/openshift/csi-operator/legacy/azure-file-csi-driver-operator
cp test/e2e/manifest.yaml ${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}
if [ -d /go/src/github.com/openshift/csi-operator/ ]; then
echo "Using csi-operator repo"
cd /go/src/github.com/openshift/csi-operator
cp test/e2e/azure-file/manifest.yaml ${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}
else
echo "Using regular csi directory"
echo "Using azure-file-csi-driver-operator repo"
cd /go/src/github.com/openshift/azure-file-csi-driver-operator
cp test/e2e/manifest.yaml ${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}
fi
Expand Down

0 comments on commit 37771e9

Please sign in to comment.