Skip to content

Commit 1d7d6d8

Browse files
authored
Merge pull request #57543 from shreyasiddhartha/RHDEVDOCS-4828
Changes to RHDEVDOCS-4828: Doc: Serverless function creation via import from Git with builder images and pipelines
2 parents 573ff6c + b894b9e commit 1d7d6d8

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

modules/odc-importing-codebase-from-git-to-create-application.adoc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ The following procedure walks you through the *From Git* option in the *Develope
2121
* *Context Dir* to specify the subdirectory for the application source code you want to use to build the application.
2222
* *Source Secret* to create a *Secret Name* with credentials for pulling your source code from a private repository.
2323
24-
. Optional: You can import a `Devfile`, a `Dockerfile`, or a `Builder Image` through your Git repository to further customize your deployment.
25-
* If your Git repository contains a `Devfile`, a `Dockerfile`, or a `Builder Image`, it is automatically detected and populated on the respective path fields. If a `Devfile`, a `Dockerfile`, or a `Builder Image` are detected in the same repository, the `Devfile` is selected by default.
24+
. Optional: You can import a `Devfile`, a `Dockerfile`, `Builder Image`, or a `Serverless Function` through your Git repository to further customize your deployment.
25+
* If your Git repository contains a `Devfile`, a `Dockerfile`, a `Builder Image`, or a `func.yaml`, it is automatically detected and populated on the respective path fields.
26+
* If a `Devfile`, a `Dockerfile`, or a `Builder Image` are detected in the same repository, the `Devfile` is selected by default.
27+
* If `func.yaml` is detected in the Git repository, the *Import Strategy* changes to `Serverless Function`.
28+
* Alternatively, you can create a serverless function by clicking *Create Serverless function* in the *+Add* view using the Git repository URL.
2629
* To edit the file import type and select a different strategy, click *Edit import strategy* option.
2730
* If multiple `Devfiles`, a `Dockerfiles`, or a `Builder Images` are detected, to import a specific instance, specify the respective paths relative to the context directory.
2831

@@ -49,7 +52,7 @@ The resource name must be unique in a namespace. Modify the resource name if you
4952
+
5053
[NOTE]
5154
====
52-
You can set the default resource preference for Import by browsing the User Preferences page and clicking *Applications* -> *Resource type* field. The *Serverless Deployment* option is displayed in the *Import from Git* form only if the {ServerlessOperatorName} is installed in your cluster. For further details, refer to the {ServerlessProductName} documentation.
55+
To set the default resource preference for importing an application, go to *User Preferences* -> *Applications* -> *Resource type* field. The *Serverless Deployment* option is displayed in the *Import from Git* form only if the {ServerlessOperatorName} is installed in your cluster. The *Resources* section is not available while creating a serverless function. For further details, refer to the {ServerlessProductName} documentation.
5356
====
5457
5558
. In the *Pipelines* section, select *Add Pipeline*, and then click *Show Pipeline Visualization* to see the pipeline for the application. A default pipeline is selected, but you can choose the pipeline you want from the list of available pipelines for the application. If *Configure PAC* is checked and the GitHub App is set up, you can see *Use GitHub App* and *Setup a webhook* options. If GitHub App is not set up, you can see *Setup a webhook* option.

modules/serverless-deploy-func-kn.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,8 @@ Function deployed at: http://func.example.com
3232
** If no `namespace` is specified, the function is deployed in the current namespace.
3333
** The function is deployed from the current directory, unless a `path` is specified.
3434
** The Knative service name is derived from the project name, and cannot be changed using this command.
35+
36+
[NOTE]
37+
====
38+
You can create a serverless function with a Git repository URL by using *Import from Git* or *Create Serverless Function* in the *+Add* view of the *Developer* perspective.
39+
====

serverless/functions/serverless-functions-getting-started.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ ifdef::openshift-enterprise[]
2727
* xref:../../registry/securing-exposing-registry.adoc#securing-exposing-registry[Exposing a default registry manually]
2828
* link:https://plugins.jetbrains.com/plugin/16476-knative\--serverless-functions-by-red-hat[Marketplace page for the Intellij Knative plugin]
2929
* link:https://marketplace.visualstudio.com/items?itemName=redhat.vscode-knative&utm_source=VSCode.pro&utm_campaign=AhmadAwais[Marketplace page for the Visual Studio Code Knative plugin]
30+
* xref:../../applications/creating_applications/odc-creating-applications-using-developer-perspective.adoc#odc-creating-applications-using-the-developer-perspective[Creating applications using the Developer perspective]
3031
// This Additional resource applies only to OCP, but not to OSD nor ROSA.
3132
endif::[]
3233

0 commit comments

Comments
 (0)