@@ -136,13 +136,13 @@ get-nodejs-multi-verify:
136
136
kubeless function call get-nodejs-multi | egrep hello.world
137
137
138
138
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
140
140
141
141
get-go-verify :
142
142
kubeless function call get-go | egrep Hello.world
143
143
144
144
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
146
146
147
147
get-go-custom-port-verify :
148
148
kubectl get svc get-go-custom-port -o yaml | grep ' targetPort: 8083'
@@ -151,22 +151,22 @@ get-go-custom-port-verify:
151
151
timeout-go :
152
152
$(eval TMPDIR := $(shell mktemp -d) )
153
153
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
155
155
rm -rf $(TMPDIR )
156
156
157
157
timeout-go-verify :
158
158
$(eval MSG := $(shell kubeless function call timeout-go 2>&1 || true) )
159
159
echo $(MSG ) | egrep Request.timeout.exceeded
160
160
161
161
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
163
163
164
164
get-go-deps-verify :
165
165
kubeless function call get-go-deps --data ' {"hello": "world"}'
166
166
kubectl logs --tail=1000 -l function=get-go-deps | grep -q ' level=info msg=.*hello.*world'
167
167
168
168
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
170
170
171
171
post-go-verify :
172
172
kubeless function call post-go --data ' {"it-s": "alive"}' | egrep " it.*alive"
@@ -761,7 +761,7 @@ pubsub-ruby-verify:
761
761
762
762
pubsub-go :
763
763
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
765
765
kubeless trigger kafka create pubsub-go --function-selector created-by=kubeless,function=pubsub-go --trigger-topic s3-go
766
766
767
767
pubsub-go-verify :
0 commit comments