Skip to content

Commit

Permalink
add doc on new package (kubeflow#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
lluunn authored and k8s-ci-robot committed Jun 1, 2018
1 parent f99daf6 commit 8a73fd3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs_dev/ksonnet_packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ this way changes to your .libsonnet files will automaticaly be reflected in your

If you make changes to prototypes you need to regenerate the prototype. You can just delete the `.jsonnet`
file in your app's component directory and then regenerate the component using `ks generate`.
If you use the same name you will preserve the values of any parameters you have set.
ksonnet will print a warning but it works; e.g.

```
rm -rf ${APP_DIR}/components/kubeflow-core.jsonnet
Expand All @@ -84,6 +82,15 @@ INFO Writing component at 'components/kubeflow-core'
ERROR Component parameters for 'kubeflow-core' already exists
```

#### ERROR Component parameters for 'kubeflow-core' already exists
If you use the same component name you will preserve the values of any parameters you have set.
ksonnet will print a warning but it works.

However, the parameters for the component is not changed. So if you added new
@optionalParam, it will not be set in the `component/params.libsonnet` and you
will see errors like `RUNTIME ERROR: Field does not exist: NEW_OPTIONAL_PARAM`.
In this case, use a new component name.

### New Packages

If you are dealing with a new package you need to modify `app.yaml` in your ksonnet application
Expand Down

0 comments on commit 8a73fd3

Please sign in to comment.