Skip to content

Commit

Permalink
add missing func related changes (knative#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaustubh-pande authored Mar 14, 2023
1 parent 1d8c60d commit d92bbba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions hack/build.sh.d/func.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

# There no midstream image currently, fallback to upstream one.
readonly func_util_image="${KN_PLUGIN_FUNC_UTIL_IMAGE:-quay.io/boson/alpine-socat:1.7.4.3-r1-non-root}"
export EXTERNAL_LD_FLAGS="${EXTERNAL_LD_FLAGS:-} \
-X knative.dev/func/k8s.SocatImage=${func_util_image} \
-X knative.dev/func/k8s.TarImage=${func_util_image}"
4 changes: 2 additions & 2 deletions openshift-serverless-clients.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%global kn_release 1
%global kn_cli_version v%{kn_version}
%global kn_event_image %{nil}
%global kn_func_image %{nil}
%global kn_func_util_image %{nil}
%global source_dir knative-client
%global source_tar %{source_dir}-%{kn_version}-%{kn_release}.tar.gz

Expand All @@ -32,7 +32,7 @@ Client kn provides developer experience to work with Knative Serving APIs.
%build
TAG=%{kn_cli_version} \
KN_PLUGIN_EVENT_SENDER_IMAGE=%{kn_event_image} \
KN_PLUGIN_FUNC_SOCAT_IMAGE=%{kn_func_image} \
KN_PLUGIN_FUNC_UTIL_IMAGE=%{kn_func_util_image} \
make build-cross

%install
Expand Down

0 comments on commit d92bbba

Please sign in to comment.