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

Commit

Permalink
Update ballerina version to 0.981.0
Browse files Browse the repository at this point in the history
  • Loading branch information
anuruddhal committed Aug 14, 2018
1 parent ee19c2c commit 097a15f
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion docker/runtime/ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[project]
org-name = "kubeless"
version = "0.0.6"
version = "0.0.7"
2 changes: 1 addition & 1 deletion docker/runtime/ballerina/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ballerina/ballerina:0.980.0
FROM ballerina/ballerina:0.981.0

USER 1000

Expand Down
2 changes: 1 addition & 1 deletion docker/runtime/ballerina/Dockerfile.init
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ballerina/ballerina-platform:0.980.0
FROM ballerina/ballerina-platform:0.981.0

USER 1000

Expand Down
8 changes: 4 additions & 4 deletions docker/runtime/ballerina/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
init-image:
docker build -f Dockerfile.init -t kubeless/ballerina-init:0.980.0 .
docker build -f Dockerfile.init -t ballerina/kubeless-ballerina-init:0.981.0 .

runtime-image:
env GOOS=linux GOARCH=amd64 go build $$GOPATH/src/github.com/kubeless/kubeless/pkg/function-proxy/proxy.go
docker build -f Dockerfile -t kubeless/ballerina:0.980.0 .
docker build -f Dockerfile -t ballerina/kubeless-ballerina:0.981.0 .

push-init:
docker push ballerina/kubeless-ballerina-init:0.980.0
docker push ballerina/kubeless-ballerina-init:0.981.0

push-runtime:
docker push ballerina/kubeless-ballerina:0.980.0
docker push ballerina/kubeless-ballerina:0.981.0

# Mandatory jobs
build-all: init-image runtime-image
Expand Down
4 changes: 2 additions & 2 deletions docker/runtime/ballerina/kubeless/Package.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ This package contain Ballerina type definitions used in Ballerina Kubeless integ
## Compatibility
| | Version |
|:------------------:|:--------------:|
| Ballerina Language | 0.980.0 |
| Kubeless Package | 0.0.6 |
| Ballerina Language | 0.981.0 |
| Kubeless Package | 0.0.7 |


## Sample
Expand Down
8 changes: 4 additions & 4 deletions docs/runtimes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ By default Kubeless has support for the following runtimes:
- PHP: For the branch 7.2
- Golang: For the branch 1.10
- .NET: For the branch 2.0
- Ballerina: For the branch 0.980.0
- Ballerina: For the branch 0.981.0

You can see the list of supported runtimes executing:

```console
$ kubeless get-server-config
INFO[0000] Current Server Config:
INFO[0000] Supported Runtimes are: python2.7, python3.4, python3.6, nodejs6, nodejs8, ruby2.4, php7.2, go1.10, dotnetcore2.0, java1.8, ballerina0.980.0
INFO[0000] Supported Runtimes are: python2.7, python3.4, python3.6, nodejs6, nodejs8, ruby2.4, php7.2, go1.10, dotnetcore2.0, java1.8, ballerina0.981.0
```

Each runtime is encapsulated in a container image. The reference to these images are injected in the Kubeless configuration. You can find the source code of all runtimes in [`docker/runtime`](https://github.com/kubeless/kubeless/tree/master/docker/runtime).
Expand Down Expand Up @@ -380,7 +380,7 @@ The Ballerina functions should import the package `kubeless/kubeless`. This [pac

```console
$ kubeless function deploy foo
--runtime ballerina0.980.0
--runtime ballerina0.981.0
--from-file foo.bal
--handler foo.foo
```
Expand All @@ -396,7 +396,7 @@ foo
$ zip -r -j foo.zip foo/

$ kubeless function deploy foo
--runtime ballerina0.980.0
--runtime ballerina0.981.0
--from-file foo.zip
--handler hellowithconf.foo
```
Expand Down
8 changes: 4 additions & 4 deletions examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -821,27 +821,27 @@ get-nodejs-distroless-deps-verify:
kubeless function call get-nodejs-distroless-deps --data '{"hello": "world"}' | grep -q 'hello.*world.*date.*UTC'

get-ballerina:
kubeless function deploy get-ballerina --runtime ballerina0.980.0 --from-file ballerina/helloget.bal --handler helloget.foo
kubeless function deploy get-ballerina --runtime ballerina0.981.0 --from-file ballerina/helloget.bal --handler helloget.foo

get-ballerina-verify:
kubeless function call get-ballerina |egrep Hello.World.Ballerina

get-ballerina-custom-port:
kubeless function deploy get-ballerina-custom-port --runtime ballerina0.980.0 --handler helloget.foo --from-file ballerina/helloget.bal --port 8083
kubeless function deploy get-ballerina-custom-port --runtime ballerina0.981.0 --handler helloget.foo --from-file ballerina/helloget.bal --port 8083

get-ballerina-custom-port-verify:
kubectl get svc get-ballerina-custom-port -o yaml | grep 'targetPort: 8083'
kubeless function call get-ballerina-custom-port |egrep Hello.World.Ballerina

get-ballerina-data:
kubeless function deploy get-ballerina-data --runtime ballerina0.980.0 --from-file ballerina/hellowithdata.bal --handler hellowithdata.foo
kubeless function deploy get-ballerina-data --runtime ballerina0.981.0 --from-file ballerina/hellowithdata.bal --handler hellowithdata.foo

get-ballerina-data-verify:
kubeless function call get-ballerina-data --data '{"hello":"world"}' |egrep hello

get-ballerina-conf:
zip -r -j ballerina/bar.zip ballerina/hello_with_conf/
kubeless function deploy get-ballerina-conf --runtime ballerina0.980.0 --from-file ballerina/bar.zip --handler hello_with_conf.bar
kubeless function deploy get-ballerina-conf --runtime ballerina0.981.0 --from-file ballerina/bar.zip --handler hello_with_conf.bar
rm ballerina/bar.zip

get-ballerina-conf-verify:
Expand Down
8 changes: 4 additions & 4 deletions kubeless-non-rbac.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ local runtime_images ='[
"compiled": true,
"versions": [
{
"name": "ballerina0.980.0",
"version": "0.980.0",
"runtimeImage": "ballerina/kubeless-ballerina@sha256:bce4d386dac4e037f6d1e5ec4953988466bbbd795e551dcbec361b8f07435fa6",
"initImage": "ballerina/kubeless-ballerina-init@sha256:ea4e3458ce2e13ca073f3a65ce7711641e46ab9eaf5f7753aec496ed6ba18777"
"name": "ballerina0.981.0",
"version": "0.981.0",
"runtimeImage": "ballerina/kubeless-ballerina@sha256:a025841010cfdf8136396efef31d4155283770d331ded6a9003e6e55f02db2e5",
"initImage": "ballerina/kubeless-ballerina-init@sha256:a04ca9d289c62397d0b493876f6a9ff4cc425563a47aa7e037c3b850b8ceb3e8"
}
],
"depName": "",
Expand Down

0 comments on commit 097a15f

Please sign in to comment.