You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/odc-importing-codebase-from-git-to-create-application.adoc
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,11 @@ The following procedure walks you through the *From Git* option in the *Develope
21
21
* *Context Dir* to specify the subdirectory for the application source code you want to use to build the application.
22
22
* *Source Secret* to create a *Secret Name* with credentials for pulling your source code from a private repository.
23
23
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.
26
29
* To edit the file import type and select a different strategy, click *Edit import strategy* option.
27
30
* 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.
28
31
@@ -49,7 +52,7 @@ The resource name must be unique in a namespace. Modify the resource name if you
49
52
+
50
53
[NOTE]
51
54
====
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.
53
56
====
54
57
55
58
. 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.
Copy file name to clipboardExpand all lines: modules/serverless-deploy-func-kn.adoc
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,3 +32,8 @@ Function deployed at: http://func.example.com
32
32
** If no `namespace` is specified, the function is deployed in the current namespace.
33
33
** The function is deployed from the current directory, unless a `path` is specified.
34
34
** 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.
Copy file name to clipboardExpand all lines: serverless/functions/serverless-functions-getting-started.adoc
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ ifdef::openshift-enterprise[]
27
27
* xref:../../registry/securing-exposing-registry.adoc#securing-exposing-registry[Exposing a default registry manually]
28
28
* link:https://plugins.jetbrains.com/plugin/16476-knative\--serverless-functions-by-red-hat[Marketplace page for the Intellij Knative plugin]
29
29
* 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]
30
31
// This Additional resource applies only to OCP, but not to OSD nor ROSA.
0 commit comments