forked from openshift/openshift-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding documentation for create from URL (aka, run on OpenShift)
and fixing heading semantics (several headings were improperly declared as h3s or h4s when they should have been h2s or h3s).
- Loading branch information
Showing
3 changed files
with
147 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
[[dev-guide-create-from-url]] | ||
= Create from URL | ||
{product-author} | ||
{product-version} | ||
:data-uri: | ||
:icons: | ||
:experimental: | ||
:toc: macro | ||
:toc-title: | ||
:prewrap!: | ||
|
||
toc::[] | ||
|
||
[[overview]] | ||
== Overview | ||
|
||
Create From URL is a function that allows you to construct a URL from an image | ||
stream, image tag, or template. | ||
|
||
Create from URL only works with image streams or templates from | ||
namespaces that have been explicitly whitelisted. The whitelist contains | ||
the 'openshift' namespace by default. To add namespaces to the whitelist, see | ||
xref:../install_config/web_console_customization.adoc#configuring-the-create- | ||
from-url-namespace-whitelist[Configuring the Create From URL Namespace Whitelist]. | ||
|
||
[[create-for-url-using-an-image-stream-and-image-tag]] | ||
== Using an Image Stream and Image Tag | ||
|
||
[[image-stream-and-image-tag-query-string-parameters]] | ||
=== Query String Parameters | ||
|
||
[options="header"] | ||
|=== | ||
|Name|Description|Required|Schema|Default | ||
|imageStream|The value metadata.name as defined in the image stream to be used.| | ||
true|string| | ||
|imageTag|The value spec.tags.name as defined in the image stream to be used.| | ||
true|string| | ||
|namespace|The name of the namespace containing the image stream and image tag | ||
to use.|false|string|openshift | ||
|name|Identifies the resources created for this application.|false|string| | ||
|sourceURI|The git repository URL containing the application source code.|false| | ||
string| | ||
|sourceRef|The branch, tag, or commit for the application source code specified | ||
in sourceURI.|false|string| | ||
|contextDir|The subdirectory for the application source code specified in | ||
sourceURI, used as the context directory for the build.|false|string| | ||
|=== | ||
|
||
[NOTE] | ||
==== | ||
link:https://en.wikipedia.org/wiki/Percent-encoding#Percent-encoding_reserved_characters[Reserved characters] in parameter values should be URL encoded. | ||
==== | ||
|
||
[[example-usage-of-an-image-stream-and-image-tag]] | ||
==== Example | ||
---- | ||
create?imageStream=nodejs&imageTag=4&name=nodejs&sourceURI=https%3A%2F%2Fgithub.com%2Fopenshift%2Fnodejs-ex.git&sourceRef=master&contextDir=%2F | ||
---- | ||
|
||
[[create-from-url-using-a-template]] | ||
== Using a Template | ||
|
||
[[template-query-string-parameters]] | ||
=== Query String Parameters | ||
|
||
[options="header"] | ||
|=== | ||
|Name|Description|Required|Schema|Default | ||
|template|The value of metadata.name as defined in the template to be used.| | ||
true|string| | ||
|templateParamsMap|A JSON parameters map containing the template parameter name | ||
and corresponding value you wish to override.|false|JSON| | ||
|namespace|The name of the namespace containing the template to use.|false|string|openshift | ||
|=== | ||
|
||
[NOTE] | ||
==== | ||
link:https://en.wikipedia.org/wiki/Percent-encoding#Percent-encoding_reserved_characters[Reserved characters] in parameter values should be URL encoded. | ||
==== | ||
|
||
[[example-usage-of-a-template]] | ||
==== Example | ||
---- | ||
create?template=nodejs-mongodb-example&templateParamsMap={"SOURCE_REPOSITORY_URL"%3A"https%3A%2F%2Fgithub.com%2Fopenshift%2Fnodejs-ex.git"} | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters