Step: storage-create-csi-aws-efs

The csi-aws-efs step creates ${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST} for AWS EFS CSI driver, which is consumed by openshift-e2e-test step to run CSI driver certification suite.

Container image used for this step: aws-efs-csi-operator-create-efs

aws-efs-csi-operator-create-efs resolves to an image built or imported by the ci-operator configuration (documentation).

Environment

In addition to the default environment, the step exposes the following:

Variable Name Type Variable Content
TEST_CSI_DRIVER_MANIFEST Parameter[?] The CSI driver manifest to create. Used by the `openshift-tests` as a manifest for openshift/csi tests. The file must be in ${SHARED_DIR}.

Source Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail

export STORAGECLASS_LOCATION=${SHARED_DIR}/efs-sc.yaml
export MANIFEST_LOCATION=${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}

/usr/bin/create-efs-volume start --kubeconfig $KUBECONFIG --namespace openshift-cluster-csi-drivers

echo "Using storageclass ${STORAGECLASS_LOCATION}"
cat ${STORAGECLASS_LOCATION}

oc create -f ${STORAGECLASS_LOCATION}
echo "Created storageclass from file ${STORAGECLASS_LOCATION}"

oc create -f - <<EOF
apiVersion: operator.openshift.io/v1
kind: ClusterCSIDriver
metadata:
    name: efs.csi.aws.com
spec:
  managementState: Managed
EOF

echo "Created cluster CSI driver object"

# For debugging
echo "Using ${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}:"
cat ${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}

Properties

Property Value Description
Resource requests (cpu) 10m Used in .resources.requests of the pod running this step.
Resource requests (memory) 100Mi Used in .resources.requests of the pod running this step.
Inject oc CLI[?] latest The oc CLI sourced from the specified release is injected into this step's' image.

GitHub Link:

https://github.com/openshift/release/blob/master/ci-operator/step-registry/storage/create/csi-aws-efs/storage-create-csi-aws-efs-ref.yaml

Owners:

Approvers:

Reviewers:

Source code for this page located on GitHub