mirror of https://github.com/kubeflow/examples.git
Fix data-downloader; parameters are in the wrong order. (#115)
* URL should be the first argument; data dir should be the second.
This commit is contained in:
parent
2d335b1302
commit
002119010f
|
|
@ -22,9 +22,9 @@ local scriptConfigMap = {
|
|||
|
||||
local params = {
|
||||
// Default location for the data. Should be a directory on the PVC.
|
||||
"dataPath": "/data",
|
||||
"dataUrl": "https://storage.googleapis.com/kubeflow-examples/github-issue-summarization-data/github-issues.zip",
|
||||
"pvcName": "data-pvc",
|
||||
dataPath: "/data",
|
||||
dataUrl: "https://storage.googleapis.com/kubeflow-examples/github-issue-summarization-data/github-issues.zip",
|
||||
pvcName: "data-pvc",
|
||||
} + overrideParams;
|
||||
|
||||
local downLoader = {
|
||||
|
|
@ -43,8 +43,8 @@ local downLoader = {
|
|||
command: [
|
||||
"/bin/ash",
|
||||
"/scripts/download_data.sh",
|
||||
params.dataUrl,
|
||||
params.dataPath,
|
||||
params.dataUrl,
|
||||
],
|
||||
image: "busybox",
|
||||
name: "downloader",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
local env = std.extVar("__ksonnet/environments");
|
||||
local params = std.extVar("__ksonnet/params").components["tfjob"];
|
||||
local params = std.extVar("__ksonnet/params").components.tfjob;
|
||||
local k = import "k.libsonnet";
|
||||
|
||||
local tfjob = import "tfjob.libsonnet";
|
||||
|
|
|
|||
Loading…
Reference in New Issue