make docker-run in=$HOME/work/latest-ccs-installer out=/var -e OVERRIDE_SCHEMA_PATH=/schemas/values.schema.json -e VALUES_PATH=/var/values.yaml -e SCHEMA_PATH=/home/values.schema.jsonin- using for volume mounting directory withHelmchart into container file system (set mount from host)out- using for volume mounting directory withHelmchart into container file system (set mount to container)
OVERRIDE_SCHEMA_PATH- path of json file with patch schema for merging. By default, override schema file is located by path:/schemas/values.schema.jsonin container. (Consider where you mounted directories)VALUES_PATH- path of current chartvalues.yamlfile (Consider where you mounted directories)SCHEMA_PATH- file path where to write the json schema. By default, write into/tmpdirectory in workspace (Consider where you mounted directories)
make docker-buildTo generate a json schema based on an existing helm chart located in the path: `` relative to the root repository, simply run the command:
make generateThis will generate a values.schema.json file in the chart folder based on the chart's values.yaml.
For run make command from any another directory, try:
make -C <path to repository>/json_schema_converter generate