-
Notifications
You must be signed in to change notification settings - Fork 34
Debugging charts‐build‐scripts
Alexandre Lamarre edited this page Apr 3, 2025
·
2 revisions
As of charts-build-scripts version 1.52+, developers can now override the repo root path to run the scripts against a target path.
From rancher/charts-build-scripts :
go build -o charts-build-scripts main.go
# specify path to repository you want to run scripts against
export DEV_REPO_ROOT=$(HOME)/charts
# --config still needs to be manually specified
./charts-build-scripts <target> --config=$(DEV_REPO_ROOT)/configuration.yaml
An example configuration for debugging the charts
target is:
{
"name": "build-charts/charts",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/main.go",
"args": [
"charts",
"--config",
"<TARGET_REPO_PATH>/configuration.yaml",
],
"env" : {
"DEV_REPO_ROOT" : "<TARGET_REPO_PATH>",
"PACKAGE" : "rancher-backup",
"DEBUG" : "true",
}
},
TODO : for users of jetbrains IDEs feel free to update with an example configuration here