Skip to content

Commit fe45b48

Browse files
committed
Remove curl.
1 parent c6213ff commit fe45b48

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

deploy/tasks/buildah-oci-ta.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,6 @@ spec:
158158
- name: INTERNAL_NON_PROXY_HOSTS
159159
description: Comma separated list of target hosts that bypass the proxy used internally by the domain proxy.
160160
type: string
161-
- name: CACHE_HOST
162-
description: Cache host.
163-
type: string
164161
results:
165162
- name: IMAGE_DIGEST
166163
description: Digest of the image just built
@@ -260,8 +257,6 @@ spec:
260257
value: $(params.INTERNAL_PROXY_PASSWORD)
261258
- name: INTERNAL_NON_PROXY_HOSTS
262259
value: $(params.INTERNAL_NON_PROXY_HOSTS)
263-
- name: CACHE_HOST
264-
value: $(params.CACHE_HOST)
265260
volumeMounts:
266261
- mountPath: /shared
267262
name: shared
@@ -530,11 +525,7 @@ spec:
530525
531526
# With expansion
532527
cat >> /app/build-script.sh << EOF
533-
for ((i=1; i<=10000; i++)); do
534-
echo "request #$i"
535-
curl -v -x http://localhost:8080 "http://${CACHE_HOST}/v2/cache/rebuild-central/1658389751000/org/sonatype/oss/oss-parent/7/oss-parent-7.pom"
536-
sleep 0.1
537-
done
528+
buildah build $VOLUME_MOUNTS ${BUILDAH_ARGS[@]} ${LABELS[@]} --tls-verify=$TLSVERIFY --no-cache --ulimit nofile=4096:4096 -f "$dockerfile_copy" -t $IMAGE .
538529
EOF
539530
540531
# Without expansion

pkg/reconciler/dependencybuild/buildrecipeyaml.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -587,13 +587,6 @@ func createPipelineSpec(log logr.Logger, tool string, commitTime int64, jbsConfi
587587
StringVal: whitelistUrl.Host + ",localhost",
588588
},
589589
},
590-
{
591-
Name: "CACHE_HOST",
592-
Value: tektonpipeline.ParamValue{
593-
Type: tektonpipeline.ParamTypeString,
594-
StringVal: whitelistUrl.Host,
595-
},
596-
},
597590
},
598591
}}, ps.Tasks...)
599592

0 commit comments

Comments
 (0)