Manage dependencies
Commodore components can declare dependencies to Jsonnet libraries. Those dependencies are resolved and downloaded using jsonnet-bundler.
Define dependencies in a jsonnetfile.json
file.
This file must be placed at the root of the component’s file structure.
jsonnetfile.json
{
"version": 1,
"dependencies": [
{
"source": {
"git": {
"remote": "https://github.com/coreos/kube-prometheus",
"subdir": "jsonnet/kube-prometheus"
}
},
"version": "release-0.3"
}
],
"legacyImports": true
}
If two components depend on the same Jsonnet library, they must require the same version. See jsonnet-bundler - Current Limitations |
Jsonnet-bundler uses the file |
When compiling components with |