update jobs-expansions-index.md

change the wrong url
change the wrong template
This commit is contained in:
foliage
2016-12-27 22:34:14 +08:00
committed by GitHub
parent 67be6311ee
commit 78e7b40600
+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: