Merge pull request #2055 from du2016/patch-2

update jobs-expansions-index.md
This commit is contained in:
devin-donnelly
2016-12-27 14:40:35 -08:00
committed by GitHub
+2 -2
View File
@@ -109,7 +109,7 @@ Processing item cherry
In the first example, each instance of the template had one parameter, and that parameter was also In the first example, each instance of the template had one parameter, and that parameter was also
used as a label. However label keys are limited in [what characters they can used as a label. However label keys are limited in [what characters they can
contain](docs/user-guide/labels/#syntax-and-character-set). contain](/docs/user-guide/labels/#syntax-and-character-set).
This slightly more complex example uses a the jinja2 template language to generate our objects. This slightly more complex example uses a the jinja2 template language to generate our objects.
We will use a one-line python script to convert the template to a file. We will use a one-line python script to convert the template to a file.
@@ -128,7 +128,7 @@ First, copy and paste the following template of a Job object, into a file called
apiVersion: batch/v1 apiVersion: batch/v1
kind: Job kind: Job
metadata: metadata:
name: jobexample-{{ {{ name }} }} name: jobexample-{{ name }}
labels: labels:
jobgroup: jobexample jobgroup: jobexample
spec: spec: