Skip to content

Commit 3da58ac

Browse files
committed
Try pinging proxy URL.
1 parent e98335d commit 3da58ac

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

deploy/tasks/buildah-oci-ta.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ spec:
146146
- name: PROXY_TARGET_WHITELIST
147147
description: Comma separated whitelist of target hosts for the domain proxy.
148148
type: string
149+
- name: PROXY_URL
150+
description: Proxy URL.
151+
type: string
149152
results:
150153
- name: IMAGE_DIGEST
151154
description: Digest of the image just built
@@ -237,6 +240,8 @@ spec:
237240
value: $(params.BYTE_BUFFER_SIZE)
238241
- name: PROXY_TARGET_WHITELIST
239242
value: $(params.PROXY_TARGET_WHITELIST)
243+
- name: PROXY_URL
244+
value: $(params.PROXY_URL)
240245
volumeMounts:
241246
- mountPath: /shared
242247
name: shared
@@ -393,6 +398,7 @@ spec:
393398
echo ${DOMAIN_PROXY_ARGS[@]} # TODO remove
394399
/app/domain-proxy-server-runner &
395400
server_pid=$!
401+
ping ${PROXY_URL}
396402
fi
397403
fi
398404

pkg/reconciler/dependencybuild/buildrecipeyaml.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,13 @@ func createPipelineSpec(log logr.Logger, tool string, commitTime int64, jbsConfi
556556
StringVal: whitelistUrl.Host + ",cdn-ubi.redhat.com",
557557
},
558558
},
559+
{
560+
Name: "PROXY_URL",
561+
Value: tektonpipeline.ParamValue{
562+
Type: tektonpipeline.ParamTypeString,
563+
StringVal: whitelistUrl.Host,
564+
},
565+
},
559566
},
560567
}}, ps.Tasks...)
561568

0 commit comments

Comments
 (0)