Skip to content

Commit 57b1b3d

Browse files
committed
e2e: Delete Bitnami deps
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
1 parent 1907748 commit 57b1b3d

File tree

1 file changed

+0
-55
lines changed

1 file changed

+0
-55
lines changed

hack/ci/e2e.sh

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ CREATE_CLUSTER="${CREATE_CLUSTER:-true}"
66
KIND_CLUSTER_NAME="${KIND_CLUSTER_NAME:-kind}"
77
LOAD_IMG_INTO_KIND="${LOAD_IMG_INTO_KIND:-true}"
88
BUILD_PLATFORM="${BUILD_PLATFORM:-linux/amd64}"
9-
MINIO_HELM_VER="${MINIO_HELM_VER:-12.10.3}"
109

1110
IMG=test/source-controller
1211
TAG=latest
@@ -39,8 +38,6 @@ function cleanup(){
3938
kubectl -n source-system get helmcharts -oyaml
4039
kubectl -n source-system get all
4140
kubectl -n source-system logs deploy/source-controller
42-
kubectl -n minio get all
43-
kubectl -n minio describe pods
4441
else
4542
echo "All E2E tests passed!"
4643
fi
@@ -83,58 +80,6 @@ kubectl -n source-system wait helmchart/podinfo --for=condition=ready --timeout=
8380
kubectl -n source-system wait helmchart/podinfo-git --for=condition=ready --timeout=5m
8481
kubectl -n source-system delete -f "${ROOT_DIR}/config/testdata/helmchart-valuesfile"
8582

86-
echo "Setup Minio"
87-
kubectl create ns minio
88-
helm upgrade minio oci://registry-1.docker.io/bitnamicharts/minio --wait -i \
89-
--version "${MINIO_HELM_VER}" \
90-
--timeout 10m0s \
91-
--namespace minio \
92-
--set auth.rootUser=myaccesskey \
93-
--set auth.rootPassword=mysecretkey \
94-
--set resources.requests.memory=128Mi \
95-
--set persistence.enable=false
96-
kubectl -n minio port-forward svc/minio 9000:9000 &>/dev/null &
97-
98-
sleep 2
99-
100-
if [ ! -f "${BUILD_DIR}/mc" ]; then
101-
MC_SHA256="${MC_AMD64_SHA256}"
102-
ARCH="amd64"
103-
if [ "${BUILD_PLATFORM}" = "linux/arm64" ]; then
104-
MC_SHA256="${MC_ARM64_SHA256}"
105-
ARCH="arm64"
106-
fi
107-
108-
mkdir -p "${BUILD_DIR}"
109-
curl -o "${BUILD_DIR}/mc" -LO "https://dl.min.io/client/mc/release/linux-${ARCH}/archive/${MC_RELEASE}"
110-
if ! echo "${MC_SHA256} ${BUILD_DIR}/mc" | sha256sum --check; then
111-
echo "Checksum failed for mc."
112-
rm "${BUILD_DIR}/mc"
113-
exit 1
114-
fi
115-
116-
chmod +x "${BUILD_DIR}/mc"
117-
fi
118-
119-
"${BUILD_DIR}/mc" alias set minio http://localhost:9000 myaccesskey mysecretkey --api S3v4
120-
kubectl -n source-system apply -f "${ROOT_DIR}/config/testdata/minio/secret.yaml"
121-
122-
echo "Run Bucket tests"
123-
"${BUILD_DIR}/mc" mb minio/podinfo
124-
"${BUILD_DIR}/mc" mirror "${ROOT_DIR}/config/testdata/minio/manifests/" minio/podinfo
125-
126-
kubectl -n source-system apply -f "${ROOT_DIR}/config/testdata/bucket/source.yaml"
127-
kubectl -n source-system wait bucket/podinfo --for=condition=ready --timeout=1m
128-
129-
130-
echo "Run HelmChart from Bucket tests"
131-
"${BUILD_DIR}/mc" mb minio/charts
132-
"${BUILD_DIR}/mc" mirror "${ROOT_DIR}/internal/controller/testdata/charts/helmchart/" minio/charts/helmchart
133-
134-
kubectl -n source-system apply -f "${ROOT_DIR}/config/testdata/helmchart-from-bucket/source.yaml"
135-
kubectl -n source-system wait bucket/charts --for=condition=ready --timeout=1m
136-
kubectl -n source-system wait helmchart/helmchart-bucket --for=condition=ready --timeout=1m
137-
13883
echo "Run large Git repo tests"
13984
kubectl -n source-system apply -f "${ROOT_DIR}/config/testdata/git/large-repo.yaml"
14085
kubectl -n source-system wait gitrepository/large-repo --for=condition=ready --timeout=2m15s

0 commit comments

Comments
 (0)