This is an automated email from the ASF dual-hosted git repository.
rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk.git
The following commit(s) were added to refs/heads/master by this push:
new ac332ea Reflect decision to drop support for runtime-ballerina (#5164)
ac332ea is described below
commit ac332ea7ce756fdb95284bc48b2b335c5ee92684
Author: David Grove <[email protected]>
AuthorDate: Wed Oct 6 22:26:59 2021 -0400
Reflect decision to drop support for runtime-ballerina (#5164)
---
ansible/files/runtimes.json | 16 -----
.../src/main/resources/apiv1swagger.json | 2 -
docs/actions-ballerina.md | 75 ----------------------
docs/actions.md | 1 -
docs/dev/modules.md | 2 +-
.../unicode.tests/src/ballerina/unicode.bal | 26 --------
6 files changed, 1 insertion(+), 121 deletions(-)
diff --git a/ansible/files/runtimes.json b/ansible/files/runtimes.json
index f27d916..129bae2 100644
--- a/ansible/files/runtimes.json
+++ b/ansible/files/runtimes.json
@@ -241,22 +241,6 @@
}
}
],
- "ballerina": [
- {
- "kind": "ballerina:0.990",
- "default": true,
- "image": {
- "prefix": "openwhisk",
- "name": "action-ballerina-v0.990.2",
- "tag": "nightly"
- },
- "deprecated": false,
- "attached": {
- "attachmentName": "codefile",
- "attachmentType": "text/plain"
- }
- }
- ],
"rust": [
{
"kind": "rust:1.34",
diff --git a/core/controller/src/main/resources/apiv1swagger.json
b/core/controller/src/main/resources/apiv1swagger.json
index 44954d6..7344209 100644
--- a/core/controller/src/main/resources/apiv1swagger.json
+++ b/core/controller/src/main/resources/apiv1swagger.json
@@ -2017,8 +2017,6 @@
"dotnet:2.2",
"dotnet:3.1",
"dotnet:default",
- "ballerina:0.990",
- "ballerina:default",
"rust:1.34",
"rust:default"
],
diff --git a/docs/actions-ballerina.md b/docs/actions-ballerina.md
deleted file mode 100644
index 044ee11..0000000
--- a/docs/actions-ballerina.md
+++ /dev/null
@@ -1,75 +0,0 @@
-<!--
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
--->
-
-## Creating and invoking Ballerina actions
-
-The process of creating Ballerina actions is similar to that of [other
actions](actions.md#the-basics).
-The following sections guide you through creating and invoking a Ballerina
action.
-
-Ballerina actions are executed using Ballerina
[0.990.2](https://ballerina.io/downloads). You will need
-a compatible version of the compiler locally available to generate the
executable. Without the Ballerina compiler,
-you cannot create an OpenWhisk action.
-
-An action is simply a top-level Ballerina function which accepts and returns a
JSON object. For example, create a file called `hello.bal`
-with the following source code:
-
-```ballerina
-import ballerina/io;
-
-public function main(json data) returns json {
- json? name = data.name;
- if (name == null) {
- return { greeting: "Hello stranger!" };
- } else {
- return { greeting: "Hello " + name.toString() + "!" };
- }
-}
-```
-
-The entry method for the action is `main` by default but may be specified
explicitly when creating
-the action with the `wsk` CLI using `--main`, as with any other action type.
It is important to note
-that the Ballerina compiler expects the presence of a function called `main`
to generate the executable.
-Hence, when using alternate entry points, your source file must still include
a place holder called `main`.
-
-You can create an OpenWhisk action called `bello` from the function above as
follows:
-
-```
-# generate the .balx file first
-ballerina build hello.bal
-
-# use the .balx file to create the action
-wsk action create bello hello.balx --kind ballerina:0.990
-```
-
-The CLI does not yet automatically infer the type of the action from the
source file extension.
-So you must specify the kind explicitly. For `.balx` source files, the action
currently runs using the Ballerina 0.990.2 runtime.
-
-Action invocation is the same for Ballerina actions as it is for [any other
action](actions.md#the-basics).
-
-```
-wsk action invoke --result bello --param name World
-```
-
-```json
-{
- "greeting": "Hello World!"
-}
-```
-
-Find out more about parameters in the [Working with
parameters](./parameters.md) section.
diff --git a/docs/actions.md b/docs/actions.md
index ac24c77..b68bff0 100644
--- a/docs/actions.md
+++ b/docs/actions.md
@@ -54,7 +54,6 @@ into a language-specific tutorial. If your preferred language
isn't supported di
the [Docker](actions-docker.md) action or [native
binary](actions-docker.md#creating-native-actions)
paths more suitable. Or, you can [create a new runtime](actions-new.md).
-* [Ballerina](actions-ballerina.md)
* [Go](actions-go.md)
* [Java](actions-java.md)
* [JavaScript](actions-nodejs.md)
diff --git a/docs/dev/modules.md b/docs/dev/modules.md
index adf8414..03a71a6 100644
--- a/docs/dev/modules.md
+++ b/docs/dev/modules.md
@@ -49,7 +49,6 @@ This page is generated via script `./gradlew
:tools:dev:renderModuleDetails`. Se
| Module | Description | Module Status |
|--- |--- |--- |
-|
[openwhisk-runtime-ballerina](https://github.com/apache/openwhisk-runtime-ballerina)
| Apache OpenWhisk Runtime Ballerina supports Apache OpenWhisk functions
written in Ballerina | [](https://travis-ci.com/apache/openwhisk-runtime-ballerina)
|
| [openwhisk-runtime-deno](https://github.com/apache/openwhisk-runtime-deno) |
Apache OpenWhisk Runtime Deno supports Apache OpenWhisk functions written in
Deno | [](https://travis-ci.com/apache/openwhisk-runtime-deno)
|
|
[openwhisk-runtime-docker](https://github.com/apache/openwhisk-runtime-docker)
| Apache OpenWhisk SDK for building Docker "blackbox" runtimes | [](https://travis-ci.com/apache/openwhisk-runtime-docker)
|
|
[openwhisk-runtime-dotnet](https://github.com/apache/openwhisk-runtime-dotnet)
| Apache OpenWhisk Runtime .Net supports Apache OpenWhisk functions written in
.Net languages | [](https://travis-ci.com/apache/openwhisk-runtime-dotnet)
|
@@ -131,6 +130,7 @@ This page is generated via script `./gradlew
:tools:dev:renderModuleDetails`. Se
|
[openwhisk-package-template](https://github.com/apache/openwhisk-package-template)
| [DEPRECATED] - This is a template to be use when creating new packages for
OpenWhisk |
| [openwhisk-playground](https://github.com/apache/openwhisk-playground) |
[DEPRECATED] - This library provides functionality of executing a snippet of
source code as OpenWhisk action for OpenWhisk Xcode Source Editor Extension |
| [openwhisk-podspecs](https://github.com/apache/openwhisk-podspecs) |
[DEPRECATED] - CocoaPods Podspecs repo for openwhisk-client-swift |
+|
[openwhisk-runtime-ballerina](https://github.com/apache/openwhisk-runtime-ballerina)
| Apache OpenWhisk Runtime Ballerina supports Apache OpenWhisk functions
written in Ballerina |
| [openwhisk-sample-matos](https://github.com/apache/openwhisk-sample-matos) |
[DEPRECATED] - sample application with Message Hub and Object Store |
|
[openwhisk-sample-slackbot](https://github.com/apache/openwhisk-sample-slackbot)
| [DEPRECATED] - A proof-of-concept Slackbot to invoke OpenWhisk actions. |
|
[openwhisk-selfserve-test](https://github.com/apache/openwhisk-selfserve-test)
| [DEPRECATED] - Apache openwhisk |
diff --git a/tests/dat/actions/unicode.tests/src/ballerina/unicode.bal
b/tests/dat/actions/unicode.tests/src/ballerina/unicode.bal
deleted file mode 100644
index ff239e7..0000000
--- a/tests/dat/actions/unicode.tests/src/ballerina/unicode.bal
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import ballerina/io;
-
-public function main(json jsonInput) returns json {
- string delimiter = <string> jsonInput.delimiter;
- string str = delimiter + " ☃ " + delimiter;
- io:println(str);
- jsonInput.winter = str;
- return jsonInput;
-}