@@ -6,15 +6,10 @@ CREATE_CLUSTER="${CREATE_CLUSTER:-true}"
6
6
KIND_CLUSTER_NAME=" ${KIND_CLUSTER_NAME:- kind} "
7
7
LOAD_IMG_INTO_KIND=" ${LOAD_IMG_INTO_KIND:- true} "
8
8
BUILD_PLATFORM=" ${BUILD_PLATFORM:- linux/ amd64} "
9
- MINIO_HELM_VER=" ${MINIO_HELM_VER:- 12.10.3} "
10
9
11
10
IMG=test/source-controller
12
11
TAG=latest
13
12
14
- MC_RELEASE=mc.RELEASE.2023-11-20T16-30-59Z
15
- MC_AMD64_SHA256=fdd901a5169d676f32483f9a2de977b7ff3a4fe83e254dcbc35e7a1545591565
16
- MC_ARM64_SHA256=09816180f560875d344dc436ed4ec1348b3ff0c836ae9cf0415fef602489cc11
17
-
18
13
ROOT_DIR=" $( git rev-parse --show-toplevel) "
19
14
BUILD_DIR=" ${ROOT_DIR} /build"
20
15
@@ -39,8 +34,6 @@ function cleanup(){
39
34
kubectl -n source-system get helmcharts -oyaml
40
35
kubectl -n source-system get all
41
36
kubectl -n source-system logs deploy/source-controller
42
- kubectl -n minio get all
43
- kubectl -n minio describe pods
44
37
else
45
38
echo " All E2E tests passed!"
46
39
fi
@@ -83,58 +76,6 @@ kubectl -n source-system wait helmchart/podinfo --for=condition=ready --timeout=
83
76
kubectl -n source-system wait helmchart/podinfo-git --for=condition=ready --timeout=5m
84
77
kubectl -n source-system delete -f " ${ROOT_DIR} /config/testdata/helmchart-valuesfile"
85
78
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
-
138
79
echo " Run large Git repo tests"
139
80
kubectl -n source-system apply -f " ${ROOT_DIR} /config/testdata/git/large-repo.yaml"
140
81
kubectl -n source-system wait gitrepository/large-repo --for=condition=ready --timeout=2m15s
0 commit comments