-
Story
-
Resolution: Done
-
Undefined
-
None
-
openshift-4.13
-
3
-
False
-
None
-
False
-
0
-
Not Supported
-
-
-
ODC Sprint 229, ODC Sprint 230, ODC Sprint 231
Description
As a user, I want to import a Git repository with func.yaml and create a Serverless function
Acceptance Criteria
- Detect func.yaml in Git repo when user enter the Git URL
- Read runtime, builder, buildEnvs and run envs value from the func.yaml. func.yaml eg. - https://github.com/vikram-raj/hello-func-node/blob/master/func.yaml
- Proceed with this flow if the builder value is s2i
- Allow users to view and possibly edit the environment variables which are shown in func.yaml. Add the buildEnvs and run envs to the resource
- if func.yaml is detected change the strategy to Serverless function and do not show builder images in to and provide a section which allows the user to select the runtime version
- Do not show the Pipeline and Resources section. Default to Serverless Deployment
- Add label function.knative.dev: 'true' to KSVC to visualize the Serverless function in the Topology
Additional Details:
MIRO
Serverless function doc - https://docs.openshift.com/dedicated/serverless/functions/serverless-functions-yaml.html#serverless-functions-func-yaml-environment-variables_serverless-functions-yaml
SPIKE doc https://docs.google.com/document/d/1O0lP0UMIMxJT2ja8t78DahuqdWuUHgl0gGvyj5NgIxE/edit?pli=1#
- causes
-
OCPBUGS-14658 Unsupported runtime detected while trying to import a valid func project
- New
- links to