@@ -32,7 +32,6 @@ IMDS_AVAILABLE=${IMDS_AVAILABLE:-true}
3232ARCH=${ARCH:- x86}
3333AMI_FAMILY=${AMI_FAMILY:- AmazonLinux2}
3434SELINUX_MODE=${SELINUX_MODE:- }
35- IS_OPENSHIFT=${IS_OPENSHIFT:- false}
3635
3736# eksctl: mustn't include patch version (e.g. 1.19)
3837# 'K8S_VERSION' variable must be a full version (e.g. 1.19.1)
@@ -41,11 +40,11 @@ K8S_VERSION_EKSCTL=${K8S_VERSION_EKSCTL:-${K8S_VERSION%.*}}
4140
4241# We need to ensure that we're using all testing matrix variables in the cluster name
4342# because they all run in parallel and conflicting name would break other tests.
44- CLUSTER_NAME= " s3-csi-cluster- ${CLUSTER_TYPE} - ${AMI_FAMILY,,} - ${ARCH} "
45-
46- if [[ " ${CLUSTER_TYPE} " == " eksctl" ]]; then
43+ if [[ " ${CLUSTER_TYPE} " == " openshift " ]] ; then
44+ CLUSTER_NAME= ${CLUSTER_NAME :- " s3-csi-rosa " }
45+ elif [[ " ${CLUSTER_TYPE} " == " eksctl" ]]; then
4746 # EKS does not allow cluster names with ".", we're replacing them with "-".
48- CLUSTER_NAME=" ${CLUSTER_NAME } -${K8S_VERSION_EKSCTL/ ./ -} "
47+ CLUSTER_NAME=" s3-csi-cluster- ${CLUSTER_TYPE} - ${AMI_FAMILY,,} - ${ARCH } -${K8S_VERSION_EKSCTL/ ./ -} "
4948else
5049 echo " Unsupported cluster type: ${CLUSTER_TYPE} ."
5150 exit 1
@@ -173,7 +172,7 @@ elif [[ "${ACTION}" == "install_driver" ]]; then
173172 " ${TAG} " \
174173 " ${KUBECONFIG} " \
175174 " ${CSI_DRIVER_IRSA_ROLE_ARN} " \
176- " ${IS_OPENSHIFT } "
175+ " ${CLUSTER_TYPE } "
177176elif [[ " ${ACTION} " == " run_tests" ]]; then
178177 set +e
179178 pushd tests/e2e-kubernetes
@@ -203,7 +202,7 @@ elif [[ "${ACTION}" == "uninstall_driver" ]]; then
203202 " $KUBECTL_BIN " \
204203 " $HELM_RELEASE_NAME " \
205204 " ${KUBECONFIG} " \
206- " ${IS_OPENSHIFT } "
205+ " ${CLUSTER_TYPE } "
207206elif [[ " ${ACTION} " == " delete_cluster" ]]; then
208207 delete_cluster
209208elif [[ " ${ACTION} " == " e2e_cleanup" ]]; then
0 commit comments