Skip to content

Commit f20b1b9

Browse files
authored
Adding pull-secrets to the oc adm release info... command. (#164)
In order to access the release payload, we need to have access to the pull-secret of the cluster. In addition, since we are running in a "hub" cluster, `podman` cannot be used, therefore, I have replaced it with an `oc run ...` command instead. Signed-off-by: Yoni Bettan <yonibettan@gmail.com>
1 parent e56cc3d commit f20b1b9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/e2e

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,15 @@ test_kernel_rt_version() {
137137
ocp_version=$(oc get clusterversion -o json | jq -r '.items[0].status.desired.version')
138138

139139
rhel_coreos_extensions_image=$(oc adm release info registry.ci.openshift.org/ocp/release:${ocp_version} \
140+
--registry-config "${CLUSTER_PROFILE_DIR}/pull-secret" \
140141
--image-for=rhel-coreos-extensions)
141142

142-
node_kernel_rt=$(podman run -it --rm ${rhel_coreos_extensions_image} ls /usr/share/rpm-ostree/extensions/ | \
143-
grep -oP "kernel-rt-\K[0-9]+(\.[0-9]+)*-[0-9]+(\.[0-9]+)*\.[a-z0-9_]+(\.[a-z0-9_]+)*(?=\.rpm)")
143+
node_kernel_rt=$(oc run -it rhel-coreos-extensions -n ${TEST_NS} \
144+
--rm \
145+
--image=${rhel_coreos_extensions_image} \
146+
--restart=Never \
147+
--command -- ls /usr/share/rpm-ostree/extensions/ | \
148+
grep -oP "kernel-rt-\K[0-9]+(\.[0-9]+)*-[0-9]+(\.[0-9]+)*\.[a-z0-9_]+(\.[a-z0-9_]+)*(?=\.rpm)")
144149
echo "INFO: Node kernel-rt: ${node_kernel_rt}"
145150

146151
dtk_release_file=$(get_driver_toolkit_release_file)

0 commit comments

Comments
 (0)