Change a parameter
Suppose you want to overwrite an inventory parameter for a cluster or tenant.
-
Compile the cluster first (don’t push your changes to git yet)
-
Open your editor and edit the files you need to change.
-
If you want to overwrite an inventory parameter for a tenant or cluster, edit the appropriate file in
inventory/classes/<tenant-id>
. -
If you want to adjust a parameter for a Kubernetes distribution or cloud provider, edit the appropriate file in
inventory/classes/global
.
You can compile the catalog locally to verify your changes with commodore catalog compile $CLUSTER_ID --local
.If you want to locally test adding a component to a cluster, please see the Commodore how-to on adding components to a cluster in local mode. -
-
Navigate into the tenant or global directory, depending on which files you’ve edited, and commit your changes.
pushd inventory/classes/<tenant-id> git status git add * git commit git push popd
-
Compile the catalog again and push
commodore catalog compile $CLUSTER_ID --push --interactive # Cleanup popd rm -rf "${dir}"