File tree Expand file tree Collapse file tree 1 file changed +61
-0
lines changed
Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "apiVersion" : " batch/v1" ,
3+ "kind" : " Job" ,
4+ "metadata" : {
5+ "name" : " {{.Name}}"
6+ },
7+ "spec" : {
8+ "template" : {
9+ "metadata" : {
10+ "name" : " {{.Name}}" ,
11+ "labels" : {
12+ "csvload" : " true" ,
13+ "pg-database" : " {{.DB_HOST}}"
14+ }
15+ },
16+ "spec" : {
17+ "volumes" : [{
18+ "name" : " pgdata" ,
19+ "persistentVolumeClaim" : {
20+ "claimName" : " {{.PVC_NAME}}"
21+ }
22+ }],
23+
24+ {{.SECURITY_CONTEXT }}
25+
26+ "containers" : [{
27+ "name" : " csvload" ,
28+ "image" : " crunchydata/csvload:{{.CO_IMAGE_TAG}}" ,
29+ "volumeMounts" : [{
30+ "mountPath" : " /pgdata" ,
31+ "name" : " pgdata" ,
32+ "readOnly" : false
33+ }],
34+ "env" : [{
35+ "name" : " TABLE_TO_LOAD" ,
36+ "value" : " {{.TABLE_TO_LOAD}}"
37+ }, {
38+ "name" : " CSV_FILE_PATH" ,
39+ "value" : " {{.CSV_FILE_PATH}}"
40+ }, {
41+ "name" : " DB_HOST" ,
42+ "value" : " {{.DB_HOST}}"
43+ }, {
44+ "name" : " DB_DATABASE" ,
45+ "value" : " {{.DB_DATABASE}}"
46+ }, {
47+ "name" : " DB_USER" ,
48+ "value" : " {{.DB_USER}}"
49+ }, {
50+ "name" : " DB_PASS" ,
51+ "value" : " {{.DB_PASS}}"
52+ }, {
53+ "name" : " DB_PORT" ,
54+ "value" : " {{.DB_PORT}}"
55+ }]
56+ }],
57+ "restartPolicy" : " Never"
58+ }
59+ }
60+ }
61+ }
You can’t perform that action at this time.
0 commit comments