-
Story
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
3
-
False
-
None
-
False
-
OCPSTRAT-106 - Provide a TEST action for Serverless functions
-
0
-
Not Supported
-
-
-
ODC Sprint 233, ODC Sprint 234
Description
We need to understand what the func invoke command line do under the hood and if we can implement the same feature without a backend in the our frontend code.
Informations by lball1@redhat.com from the Serverless team:
- Function Invocation in Dev Console doc: https://docs.google.com/document/d/1kf0LyvncRHQMpVqQJgY-hWL4LJaBjfhDJWrP8rK-CaM/edit
- cli demo from 2023-03-15: https://drive.google.com/file/d/1LN4rICmKQvCcmG_nRrq2pdVYbvqiqDCK/view?usp=sharing
Acceptance Criteria
- Answer: is kn func and func the same cli?
- Test func invoke and document or comment (in this ticket here) how the cli invokes a serverless function (in detail)
- does it create a k8s resource? Is it implemented with a custom resource? Please include some examples (as full JSON/YAML) to invoke the function with the default parameters and changed type, source, data, content type and format.
- Can we invoke a function also with kubectl/oc and from our console YAML editor?
- How does the CLI receive the response? Please also show a full response structure (JSON/YAML)
- Or do we need to run a custom HTTP command to trigger the function? In this case please provide a curl example to trigger it.
- Can we create this resource easily from our frontend?
Additional Details:
call func invoke with -v=10 to show and extract the network calls.
- is depended on by
-
ODC-7275 Implement invoke serverless functions
- Closed