Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

Commit 788ed2b

Browse files
authored
Use runtime go1.14 in integration tests (#1140)
1 parent 99e950c commit 788ed2b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/Makefile

+6-6
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ get-nodejs-multi-verify:
136136
kubeless function call get-nodejs-multi |egrep hello.world
137137

138138
get-go:
139-
kubeless function deploy get-go --runtime go1.10 --handler handler.Foo --from-file golang/helloget.go
139+
kubeless function deploy get-go --runtime go1.14 --handler handler.Foo --from-file golang/helloget.go
140140

141141
get-go-verify:
142142
kubeless function call get-go |egrep Hello.world
143143

144144
get-go-custom-port:
145-
kubeless function deploy get-go-custom-port --runtime go1.10 --handler helloget.Foo --from-file golang/helloget.go --port 8083
145+
kubeless function deploy get-go-custom-port --runtime go1.14 --handler helloget.Foo --from-file golang/helloget.go --port 8083
146146

147147
get-go-custom-port-verify:
148148
kubectl get svc get-go-custom-port -o yaml | grep 'targetPort: 8083'
@@ -151,22 +151,22 @@ get-go-custom-port-verify:
151151
timeout-go:
152152
$(eval TMPDIR := $(shell mktemp -d))
153153
printf 'package kubeless\nimport "github.com/kubeless/kubeless/pkg/functions"\nfunc Foo(event functions.Event, context functions.Context) (string, error) {\nfor{\n}\nreturn "", nil\n}' > $(TMPDIR)/hello-loop.js
154-
kubeless function deploy timeout-go --runtime go1.10 --handler helloget.Foo --from-file $(TMPDIR)/hello-loop.js --timeout 4
154+
kubeless function deploy timeout-go --runtime go1.14 --handler helloget.Foo --from-file $(TMPDIR)/hello-loop.js --timeout 4
155155
rm -rf $(TMPDIR)
156156

157157
timeout-go-verify:
158158
$(eval MSG := $(shell kubeless function call timeout-go 2>&1 || true))
159159
echo $(MSG) | egrep Request.timeout.exceeded
160160

161161
get-go-deps:
162-
kubeless function deploy get-go-deps --runtime go1.10 --handler helloget.Hello --from-file golang/hellowithdeps.go --dependencies golang/Gopkg.toml
162+
kubeless function deploy get-go-deps --runtime go1.14 --handler helloget.Hello --from-file golang/hellowithdeps.go --dependencies golang/Gopkg.toml
163163

164164
get-go-deps-verify:
165165
kubeless function call get-go-deps --data '{"hello": "world"}'
166166
kubectl logs --tail=1000 -l function=get-go-deps | grep -q 'level=info msg=.*hello.*world'
167167

168168
post-go:
169-
kubeless function deploy post-go --runtime go1.10 --handler hellowithdata.Handler --from-file golang/hellowithdata.go
169+
kubeless function deploy post-go --runtime go1.14 --handler hellowithdata.Handler --from-file golang/hellowithdata.go
170170

171171
post-go-verify:
172172
kubeless function call post-go --data '{"it-s": "alive"}'| egrep "it.*alive"
@@ -761,7 +761,7 @@ pubsub-ruby-verify:
761761

762762
pubsub-go:
763763
kubeless topic create s3-go || true
764-
kubeless function deploy pubsub-go --runtime go1.10 --handler pubsub-go.Handler --from-file golang/hellowithdata.go
764+
kubeless function deploy pubsub-go --runtime go1.14 --handler pubsub-go.Handler --from-file golang/hellowithdata.go
765765
kubeless trigger kafka create pubsub-go --function-selector created-by=kubeless,function=pubsub-go --trigger-topic s3-go
766766

767767
pubsub-go-verify:

0 commit comments

Comments
 (0)