OpenShift Template Definition: Difference between revisions
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=External= | =External= | ||
* https://docs.openshift.com/container-platform/latest/rest_api/ | * https://docs.openshift.com/container-platform/latest/rest_api/apis-template.openshift.io/v1.Template.html | ||
=Internal= | =Internal= | ||
Line 45: | Line 45: | ||
==Labels== | ==Labels== | ||
The labels listed under the template "labels" section will be applied to all objects created by the template, so they can prove useful to back it out, if necessary. | The labels listed under the template "labels" section will be applied to all objects created by the template, so they can prove useful to back it out, if necessary. The most notable use case is [[OpenShift_Concepts#The_.22app.22_Label|setting the application name]]. |
Latest revision as of 20:57, 31 January 2018
External
Internal
Example
{
"kind": "Template",
"apiVersion": "v1",
"metadata": {
"name": "some-application",
"creationTimestamp": null,
"annotations": {
"description": "Example",
"iconClass": "icon-example",
"tags": "example,mysql"
}
},
"parameters": [
{
"name": "username"
"value": "admin"
"description": "administrative user"
}
],
"labels": {
"custom_label": "Label_Name"
},
"objects": [
{
...
}
]
}
Notes
Labels
The labels listed under the template "labels" section will be applied to all objects created by the template, so they can prove useful to back it out, if necessary. The most notable use case is setting the application name.