Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
fix wording on the python description
Browse files Browse the repository at this point in the history
Signed-off-by: Rodolfo Sanchez <rodolfo2488@gmail.com>
  • Loading branch information
dolfolife committed Aug 23, 2023
1 parent 894f6f1 commit 1ba0a20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ If you want to delete your dependency on the function invoker you might need to

### Python

The way our invoker is set up is to wrap your function in a [Flask](https://flask.palletsprojects.com/) endpoint https://github.com/vmware-tanzu/function-buildpacks-for-knative/blob/main/invokers/python/pyfunc/invoke.py#L94 with a few extra configuration that helps cloud native applications be more kubernetes friendly like liveness and readiness probes.
The way our invoker is set up wraps your function in a [Flask](https://flask.palletsprojects.com/) [handler](https://github.com/vmware-tanzu/function-buildpacks-for-knative/blob/main/invokers/python/pyfunc/invoke.py#L94) with a default set of configurations.

You can take as a starting point the invoker project [PyFunc](https://github.com/vmware-tanzu/function-buildpacks-for-knative/blob/main/invokers/python/pyfunc/) and add your business login in the [handler function](https://github.com/vmware-tanzu/function-buildpacks-for-knative/blob/main/invokers/python/pyfunc/invoke.py#L33)
You can take the [PyFunc](https://github.com/vmware-tanzu/function-buildpacks-for-knative/blob/main/invokers/python/pyfunc/) (our invoker) as a starting point of your project and add your business logic in the [handler function](https://github.com/vmware-tanzu/function-buildpacks-for-knative/blob/main/invokers/python/pyfunc/invoke.py#L33).

### Java

Expand Down

0 comments on commit 1ba0a20

Please sign in to comment.