Commit 8a73fd3 1 parent f99daf6 commit 8a73fd3 Copy full SHA for 8a73fd3
File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,6 @@ this way changes to your .libsonnet files will automaticaly be reflected in your
74
74
75
75
If you make changes to prototypes you need to regenerate the prototype. You can just delete the ` .jsonnet `
76
76
file in your app's component directory and then regenerate the component using ` ks generate ` .
77
- If you use the same name you will preserve the values of any parameters you have set.
78
- ksonnet will print a warning but it works; e.g.
79
77
80
78
```
81
79
rm -rf ${APP_DIR}/components/kubeflow-core.jsonnet
@@ -84,6 +82,15 @@ INFO Writing component at 'components/kubeflow-core'
84
82
ERROR Component parameters for 'kubeflow-core' already exists
85
83
```
86
84
85
+ #### ERROR Component parameters for 'kubeflow-core' already exists
86
+ If you use the same component name you will preserve the values of any parameters you have set.
87
+ ksonnet will print a warning but it works.
88
+
89
+ However, the parameters for the component is not changed. So if you added new
90
+ @optionalParam , it will not be set in the ` component/params.libsonnet ` and you
91
+ will see errors like ` RUNTIME ERROR: Field does not exist: NEW_OPTIONAL_PARAM ` .
92
+ In this case, use a new component name.
93
+
87
94
### New Packages
88
95
89
96
If you are dealing with a new package you need to modify ` app.yaml ` in your ksonnet application
You can’t perform that action at this time.
0 commit comments