Skip to content

Commit 840fdde

Browse files
authored
[release-v1.15] Update image refs (#534)
* [release-v1.15] Update image refs * [release-v1.15] Refactor image ref update
1 parent c6cee35 commit 840fdde

File tree

3 files changed

+12
-27
lines changed

3 files changed

+12
-27
lines changed

openshift/ci-operator/knative-images/kn/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# DO NOT EDIT! Generated Dockerfile for cmd/kn.
22
ARG GO_BUILDER=registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.22-openshift-4.17
33
ARG GO_RUNTIME=registry.access.redhat.com/ubi8/ubi-minimal
4-
ARG IMAGE_KN_PLUGIN_FUNC_UTIL=registry.redhat.io/openshift-serverless-1/kn-plugin-func-func-util-rhel8@sha256:134a07b2ecd8bb485d7f20bf23e863f5cec5620134c4a26b65e31d23c3076175
5-
ARG IMAGE_KN_PLUGIN_EVENT_SENDER=registry.redhat.io/openshift-serverless-1/kn-plugin-event-sender-rhel8@sha256:e2ea8370284a4807712849a0ec8c786bbf7cb6cd78dc2309c14e87470df235e6
64

75
FROM $GO_BUILDER as builder
86

@@ -11,9 +9,9 @@ COPY . .
119

1210
ENV CGO_ENABLED=1
1311
ENV GOEXPERIMENT=strictfipsruntime
14-
ENV KN_PLUGIN_FUNC_UTIL_IMAGE=$IMAGE_KN_PLUGIN_FUNC_UTIL
15-
ENV KN_PLUGIN_EVENT_SENDER_IMAGE=$IMAGE_KN_PLUGIN_EVENT_SENDER
1612

13+
ENV KN_PLUGIN_FUNC_UTIL_IMAGE=registry.redhat.io/openshift-serverless-1/kn-plugin-func-func-util-rhel8@sha256:63fbd304ffb93e5883b987ac90a476cd9ff9946f164ca8acb9c1a95fee84bcb3
14+
ENV KN_PLUGIN_EVENT_SENDER_IMAGE=registry.redhat.io/openshift-serverless-1/kn-plugin-event-sender-rhel8@sha256:1d2a8b786bd09301530d37440ce6501527cfd511ba78d97da5eda952a6558ebe
1715
RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/kn
1816

1917
FROM $GO_RUNTIME

openshift/dockerfile.patch

Lines changed: 0 additions & 22 deletions
This file was deleted.

openshift/generate.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,13 @@ install_generate_hack_tool || exit 1
2323
--app-file-fmt "/ko-app/%s" \
2424
--dockerfile-image-builder-fmt "registry.ci.openshift.org/openshift/release:rhel-8-release-golang-%s-openshift-4.17"
2525

26-
git apply $repo_root_dir/openshift/dockerfile.patch
26+
#git apply $repo_root_dir/openshift/dockerfile.patch
27+
FUNC_UTIL=$(skopeo inspect -n --format '{{.Digest}}' docker://quay.io/redhat-user-workloads/ocp-serverless-tenant/serverless-operator-135/kn-plugin-func-func-util:1.35.0 --override-os linux --override-arch amd64)
28+
EVENT_SENDER=$(skopeo inspect -n --format '{{.Digest}}' docker://quay.io/redhat-user-workloads/ocp-serverless-tenant/serverless-operator-135/kn-plugin-event-sender:1.35.0 --override-os linux --override-arch amd64)
29+
30+
echo "func-util sha: ${FUNC_UTIL}"
31+
echo "event-sender sha: ${EVENT_SENDER}"
32+
33+
sed -i "/RUN go build.*/ i \
34+
ENV KN_PLUGIN_FUNC_UTIL_IMAGE=registry.redhat.io/openshift-serverless-1/kn-plugin-func-func-util-rhel8@${FUNC_UTIL}\n\
35+
ENV KN_PLUGIN_EVENT_SENDER_IMAGE=registry.redhat.io/openshift-serverless-1/kn-plugin-event-sender-rhel8@${EVENT_SENDER}" openshift/ci-operator/knative-images/kn/Dockerfile

0 commit comments

Comments
 (0)