Skip to content

Commit

Permalink
Small fixes in Quick Install docs (#17916) (#17922)
Browse files Browse the repository at this point in the history
* Small fixes in Quick Install docs

* Apply suggestions from code review



---------

Co-authored-by: Natalia Sitko <[email protected]>
  • Loading branch information
grego952 and nataliasitko authored Aug 2, 2023
1 parent 58e4a30 commit e2f8149
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/02-get-started/02-deploy-expose-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ First, let's create the Function and apply it.
2. Go to **Workloads** > **Functions**.
3. Click on **Create Function**.
4. Name the Function `hello-world`.
5. From the **Language** dropdown, choose `nodejs`.
6. From the **Runtime** dropdown choose one of the available `nodejs`.
5. From the **Language** dropdown, choose `JavaScript`.
6. From the **Runtime** dropdown, choose one of the available `nodejs`.
7. Paste the following source code:
```javascript
module.exports = {
Expand Down Expand Up @@ -169,7 +169,7 @@ This opens the Function's external address as a new page.

> **NOTE:** Alternatively, from the left navigation go to **API Rules**, and click on the **Host** URL there.
The operation was successful if the page says `Hello Serverless`.
The operation was successful if the page says `Hello World from the Kyma Function hello-world running on nodejs18!`.
</details>
<details>
<summary label="kubectl">
Expand Down
9 changes: 5 additions & 4 deletions docs/02-get-started/04-trigger-workload-with-event.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ First, create a sample Function that prints out the received event to console:
1. Go to **Namespaces** and select the default Namespace.
2. Go to **Workloads** > **Functions** and click **Create Function +**.
3. Name the Function `lastorder`.
4. From the **Language** dropdown, choose `nodejs`.
5. In the **Source** section, replace its source with the following code:
4. From the **Language** dropdown, choose `JavaScript`.
5. From the **Runtime** dropdown, choose one of the available `nodejs`.
6. In the **Source** section, replace its source with the following code:
```js
module.exports = {
main: async function (event, context) {
Expand All @@ -28,8 +29,8 @@ First, create a sample Function that prints out the received event to console:
}
}
```
6. Click **Create**.
7. Wait a few seconds for the Function to have status `RUNNING`.
7. Click **Create**.
8. Wait a few seconds for the Function to have the status `RUNNING`.

</details>
<details>
Expand Down

0 comments on commit e2f8149

Please sign in to comment.