Commit Graph

32 Commits

Author SHA1 Message Date
Leo Li 6be0453210
Add the readme for sample app codes, and update the code-sample page (#6059)
* feat: add the readme for sample app codes, and modify the code-sample page to include bookstore app

* fix: fix the wrong link

* fix: add a note box to mention all 3 parts of knative are being convered in bookstore tutorial
2024-07-19 16:44:01 +00:00
Leo Li 3ec03e03e0
fix: Update the image to use the one from official knative release build (#6054) 2024-07-16 17:37:29 +00:00
dependabot[bot] e18aaa6410
Bump ws (#6024)
Bumps [ws](https://github.com/websockets/ws) from 7.5.9 to 7.5.10.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.5.9...7.5.10)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-01 06:59:44 +00:00
Leo Li 1ec7a2b880
Sample App code finalization (#6011)
* fix: update the code according to pierdipi's suggestions

* feat: improve the user experience for the setup script

* feat: improve the user experience for the solution script

* fix: remove unnecessary images

* fix: remove the image registry information in the ML services

* fix: remove the sample webhook URL

* feat: modify the config map to manually disable the scale-to-zero feature

* fix: adding the waiting in the solution setup script

* fix: adding the waiting in the solution setup script for pipe
2024-06-27 07:10:10 +00:00
Leo Li 54207bebd6
Sample App Tutorial Page Compilation (#6007)
* feat: add the first three pages of the sample app tutorial

* Apply suggestions from code review

Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>

* fix: fix the review comments in pg0 and pg1

* feat: add blog post 2

* feat: adding the images for page 2

* add: add more pages

* add: adding the rest of the pages

* add: modify the nav

* add: finishing polishing

* fix: update the iframe embedded video link

* fix: fix the video embedding dimension and the access

* fix: link minor error fix

* fix: hide the setup script section

* Apply suggestions from code review

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* Update docs/bookstore/page-0/page-0-intro.md

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* Update docs/bookstore/page-0.5/pg0.5-env-setup.md

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* fix: fix christoph's comment

* fix: Remove all the extra new lines

* fix: update kubernetes to Kubernetes

* Apply suggestions from code review

Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* fix: fix the wrong indentation in the yaml files

* Update docs/bookstore/page-2/pg2-sentiment-svc.md

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* fix: fix review comments

* fix: change the console output to text - pg0.5

* fix: replace the console output pic with plaintextg for pg1

* fix: replace the console output pic with plaintext for pg 2&3

* fix: replace the console output pic with plaintext for pg 4

* fix: replace the console output pic with plaintext for pg 5

* fix: replace the console output pic with plaintext for pg 6

* fix: replace the console output pic with plaintext for pg 7

* fix: fix christoph's comments

* Apply suggestions from code review

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* fix: applying christoph's comments fix

* fix: fix christoph's nit comments + open the link in new tab

* fix: make sure all the command have the same root which is /start

* fix: make all the links open in the new tab

* fix: fix small errors

* fix: remove default namespace

* Update docs/bookstore/page-1/pg1-review-svc-1.md

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* Apply suggestions from code review

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* fix: update the wording to follow the Knative's branding guideline

* fix: update the wording to follow the Knative's branding guideline

* fix: update the naming of the pages

* fix: fixing the wrong link in the tutorial.md page

* Apply the patch from Christoph

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* Apply suggestions from code review

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* Update docs/bookstore/page-1/send-review-comment-to-broker.md

Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>

---------

Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Co-authored-by: Christoph Stäbler <cstabler@redhat.com>
2024-06-26 07:42:43 +00:00
Leo Li 638cbfbd20
Sample App: Code Clean up (#5948)
* Fix the content in the bad word filter knative function code

* Remove the unused import

* Adding the action for the button in the front end, so that the new review comment can be delivered to the review service.

* enable cors

* Install cors

* fix: configure node.js so that it won't be restricted by CORS policy

* fix: add hardcoded the address for the review service

* feat: the yaml files to run the front end in the k8s cluster

* fix: fix the wrong command in the docker file

* fix: change the naming convention

* fix: update knative slack sink to use the value from secret

* fix: change the name for the front end application package

* fix: update the event type for the outputs of the ML workflows

* fix: create the sequence and trigger for the ML workflow

* fix: change the input key to reviewText

* fix: change the event type for the input cloudevent

* fix: set up the trigger that will filter out the bad comment and send them to the event display

* feat: add the loading state for the front end

* feat: expose the postgresql service as headless service, so we can use the statefulset's name as the host url

* fix: format fix, and also make sure the sentiment analysis result is all lower case

* feat: update to use websocket for the comment area

* feat: add Kuack to the bookstore as advised by UX WG

* feat: add kuack to the bookstore

* feat: add the new timing format and also set up the status badge

* feat: make sure all the ML output are lower case

* feat: styling change

* feat: add the database insertion logic

* fix: update to use kafka broker

* feat: add the quickstart setup script

* fix: use deployment instead of knative service

* fix: Send the reply as cloud event back to broker

* fix: Go back to use MT broker

* fix: Restructure the code

* fix: Restructure the code

* Save progress: TODO: will confirm whether use the pre-built images or build the images locally

* fix: change the naming of the files

* fix: cut the pulling rate of the websocket

* fix: front end clean up and change the error message

* fix: change the port to 8080

* fix: fix the setup script

* fix: update the front end port to use 80 as the nodeserver, as trigger default to use 80, instead of 8080.

* fix: trigger default to use 80, and cannot use customized port 8080.

* fix: renaming and use the pre-built image

* fix: update the naming and add comments to the yaml

* feat: move the code to solution folder

* feat: add the start folder

* fix: the deployment file is not in the /start folder

* fix: shorten the bad word filter name

* fix: shorten the bad word filter name

* fix: delete the deployment files for ML workflows

* fix: add the port 8080

* fix: use Service instead of deployment when setting up temp trigger

* fix: add the missing deployment yaml for /start

* fix: add the shortcut script in the /start folder

* fix: change the favicon to kuack to improve the reader's experience
2024-05-29 13:48:17 +00:00
Phuong Cao 9b8fd6314d
Notification service docs: Add the tutorial on how to create the slack workspace (#5939)
* add tutorial

* create workspace docs

* Edit img
2024-04-26 12:20:57 +00:00
Leo Li 61e322af5b
Sample App: Fix the content in the bad word filter knative function code (#5947)
* Fix the content in the bad word filter knative function code

* Remove the unused import

* fix: fix the python format by running black
2024-04-26 00:16:04 +00:00
Leo Li 87d2c89ab0
Sample App: Adding the knative function build for the sentiment analysis service (#5904)
* Adding the knative function build for the sentiment analysis service

* Update the sample code, so that the returned result is a cloudEvent

* Update the sample code to give a specific event type to the response cloudEvent

* Update the tutorial doc

* Update the tutorial doc

* Remove the docker registry info

* Fix nit

* Modify the return response type and how python function handle the incoming cloudEvent

* Adding the explaination for serving

* Unhide the alert box portion

* Remove the intentional delay

* Remove the duplicated line

* Make the input as json instead of plaintext

* Update the version of cloudEvent and update the deployment instruction

* Update the tutorial to use the public URL instead of cluster-IP

* Display the input text in the response
2024-04-24 14:52:00 +00:00
Leo Li 7f0327afb7
Sample App: Event Driven Architecture I (#5928)
* Add the node.js server

* Setting up the infrastructure

* Update the port of the node application

* Add the sinkBinding

* Adding the reply feedback loop

* Adding the response into the nodejs server

* Change the naming convention

* Update the index.js to remove the uncessary comments
2024-04-24 14:50:43 +00:00
Leo Li cbeb03a23e
Sample App: Adding the db service (#5909)
* Adding the db service

* Add the readme

* Add the yaml file to create the config map

* Change to use the statefulSet

* Delete the finished job pod after 50 seconds

* Simplify the deployment tutorial for the database service

* Explain why we don't use Knative Service

* Remove the unnessary empty lines in the file

* Update code-samples/eventing/bookstore-sample-app/db/README.md

Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>

* Update code-samples/eventing/bookstore-sample-app/db-service/sample.sql

Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>

* Update code-samples/eventing/bookstore-sample-app/db/README.md

Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>

* Fix the review comment

---------

Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
2024-04-10 08:01:48 +00:00
tico88612 afebc06998
Feat: Inappropriate language filter python script (#5935)
Signed-off-by: tico88612 <17496418+tico88612@users.noreply.github.com>
2024-04-09 19:55:48 +00:00
Phuong Cao 791daf51bb
Sample app frontend (#5931)
* Add darkmode

* Edit README

* Add comments and readme

* Fix UI

* Update README

* Update code-samples/eventing/bookstore-sample-app/frontend/client/pages/Main.js

Co-authored-by: Leo Li <leoli@redhat.com>

* Update code-samples/eventing/bookstore-sample-app/frontend/client/components/BookDetail.js

Co-authored-by: Leo Li <leoli@redhat.com>

* Change emoji

* Update code-samples/eventing/bookstore-sample-app/frontend/client/components/Toggle.js

Co-authored-by: Leo Li <leoli@redhat.com>

* Fix UI

* Align time

---------

Co-authored-by: Leo Li <leoli@redhat.com>
2024-04-05 15:09:02 +00:00
Leo Li b9474dfc2c
Sample App: Notification Service: camel slack sink (#5888)
* Adding the yaml file that create the Camel Pipe, connecting the Knative Broker and the slack sink

* Adding the first draft of the documentation for notification service

* Update the Camel-Kamelets Version

* Update the tutorial

* Fix the review comments by rearranging the sections, fix the wordings

* Compile the web pages

* Trying to add some styling

* Fix the styling

* Fix the styling

* Test how things look with modified code block

* Return to the original. Will do the web page compiling in another PR when the content is ready

* Update code-samples/eventing/bookstore-sample-app/slack-sink/README.md

Co-authored-by: Calum Murray <cmurray@redhat.com>

* Make the yaml file consistent with the one in the README file

---------

Co-authored-by: Calum Murray <cmurray@redhat.com>
2024-03-15 15:29:53 +00:00
Scott Hirano 03bf62be60
Sample Bookstore App: DB setup for Book Review Comments (#5896)
* first commit, made table and wrote docs

* removed book id

* reduced amt of sample data

* Update code-samples/eventing/bookstore-sample-app/db/sample.sql

Co-authored-by: Calum Murray <cmurray@redhat.com>

* Update code-samples/eventing/bookstore-sample-app/db/sample.sql

Co-authored-by: Calum Murray <cmurray@redhat.com>

* Update code-samples/eventing/bookstore-sample-app/db/sample.sql

Co-authored-by: Calum Murray <cmurray@redhat.com>

* Update code-samples/eventing/bookstore-sample-app/db/sample.sql

Co-authored-by: Calum Murray <cmurray@redhat.com>

---------

Co-authored-by: Calum Murray <cmurray@redhat.com>
2024-03-08 19:32:08 +00:00
dependabot[bot] e9fed90050
Bump github.com/cloudevents/sdk-go/v2 (#5893)
Bumps [github.com/cloudevents/sdk-go/v2](https://github.com/cloudevents/sdk-go) from 2.0.0-RC2 to 2.15.2.
- [Release notes](https://github.com/cloudevents/sdk-go/releases)
- [Commits](https://github.com/cloudevents/sdk-go/compare/v2.0.0-RC2...v2.15.2)

---
updated-dependencies:
- dependency-name: github.com/cloudevents/sdk-go/v2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-07 06:13:23 +00:00
yuzhipeng 304f5c06b1
fix wrong code sample in helloworld-go README.md (#5746) 2023-11-14 10:53:28 +00:00
Unnati Mishra 661e5724a0
Removed Kafka Binding doc and its references (#5684)
Signed-off-by: CodebyUnnati <unnaticse2019@gmail.com>
2023-09-18 09:47:43 +00:00
kahirokunn 8e917ed012
chore: multi-arch support with buildx in all Dockerfiles (#5273)
* chore: use buildx to build grpc-ping-go

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support grpc-ping-go multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-clojure multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-dart multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-deno multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-elixir multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-haskell multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-java-micronaut multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-java-quarkus multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-r multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-rserver multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-rust multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-swift multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-vertx multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support iris-classifier multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-go multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-python multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support node-heartbeat-source multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support cloudevents-dotnet multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support cloudevents-go multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support cloudevents-nodejs multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support cloudevents-rust multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support gitwebhook-go multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-csharp multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-go multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-java-spark multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-java-spring multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-kotlin multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-nodejs multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-php multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-python multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-shell multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support knative-routing-go multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support kong-routing-go multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support multi-container multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support secrets-go multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support knative-docs multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-r Dockerfile multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support helloworld-go Dockerfile multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support cloudevents-go Dockerfile multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support gitwebhook-go Dockerfile multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support knative-routing-go Dockerfile multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support kong-routing-go Dockerfile multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support servingcontainer Dockerfile multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support sidecarcontainer Dockerfile multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support secrets-go Dockerfile multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

* chore: support multi-container Dockerfile multiple architecture

Signed-off-by: kahirokunn <okinakahiro@gmail.com>

---------

Signed-off-by: kahirokunn <okinakahiro@gmail.com>
2023-09-06 13:28:13 +00:00
David Hadas da2c5ffbca
rename-sandbox (#5652) 2023-08-03 17:52:21 +00:00
Arkadius Jonczek 225a69b10f
docs: fix eventing gitlab source readme (#5598)
* docs: fix gitlab webhook breadcrumb in gitlab eventing readme

* docs: use project access token for gitlab source in gitlab eventing readme

from security perspective it's better to use project access token instead of personal access token
2023-06-23 10:10:36 +00:00
dependabot[bot] 0685fc0e53
Bump flask in /code-samples/eventing/helloworld/helloworld-python (#5547)
Bumps [flask](https://github.com/pallets/flask) from 2.0.3 to 2.3.2.
- [Release notes](https://github.com/pallets/flask/releases)
- [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/flask/compare/2.0.3...2.3.2)

---
updated-dependencies:
- dependency-name: flask
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-02 11:47:55 +00:00
Debasish Biswas 0c2a422b2b
Fix Code Block Formatting (#5443)
* Fix Code Block Formatting

* should pass now

Signed-off-by: Debasish Biswas <debasishbsws.abc@gmail.com>

* correct numbers

* may fix

---------

Signed-off-by: Debasish Biswas <debasishbsws.abc@gmail.com>
2023-03-06 15:17:33 +00:00
Lionel Villard 26a720ed86
fix build test (#5251) 2022-09-26 21:29:13 +00:00
Ashleigh Brennan 892540960d
Remove mentions of Google GCP from docs (#5247) 2022-09-26 19:18:13 +00:00
knative-automation 8409a16a76
Format go code (#5223)
Signed-off-by: Knative Automation <automation@knative.team>

Signed-off-by: Knative Automation <automation@knative.team>
2022-09-22 17:09:13 +00:00
knative-automation c257e0bef4
upgrade to latest dependencies (#5212)
bumping knative.dev/hack 6c30196...d1317b0:
  > d1317b0 errexit and pipefail should remain off until downstream is fixed (# 228)
  > df80419 🐛 Fix for test failures of knative/serving# 13292 (# 227)
  > 7556452 🎁 Use modscope tool to get info about Go modules (# 223)
  > 103cdb3 Default `SIGN_IMAGES` variable to `false` (# 225)
  > 36b2b3c add flag (# 224)
  > 547a2ca Start Signing our Releases (# 198)

Signed-off-by: Knative Automation <automation@knative.team>

Signed-off-by: Knative Automation <automation@knative.team>
2022-09-16 16:05:06 +00:00
Yamori c4d94c2b3c
fix helloworld-go filename (#5184) 2022-08-23 18:54:18 +00:00
Ali Ok 42fd74d11a
Get rid of refs to old KafkaChannels (#5009) 2022-06-22 18:01:23 +00:00
Lance Ball 10f1c7637c
Update Node.js code samples w/ latest CloudEvents (#4865)
This commit updates two of the examples in this repository that use the
Node.js CloudEvents module. A newer version of the module has been released
and the examples have been updated to use it. The newer version allows us
to eliminate a dependency on axios, and simplify the example code.

Signed-off-by: Lance Ball <lball@redhat.com>
2022-03-31 19:15:44 +00:00
Samu Tamminen 318a50e35e
Update eventing helloworld-python dependencies (#4834)
* upgrade Flask to 2.0.1 and python to 3.9

* use latest Flask version 2.0.3 and active Docker image python:3.9-alpine
2022-03-18 06:40:18 -07:00
Samia Nneji 4eda564a0b
Move code samples to GitHub (#4565)
* Move samples off site

* Add redirects

* Fix code samples and links

* Change links

* Fix path to sample

* Fix a few more links

* Update samples path in test

* remove unecessary redirect

* update more links

* add closing bracket
2021-12-14 04:20:51 -08:00