-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a launch.json for local development
Relates: https://issues.redhat.com/browse/ACM-10885 Signed-off-by: mprahl <mprahl@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
// Run `make kind-bootstrap-cluster-dev` before launching this. | ||
{ | ||
"name": "Launch Package", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "auto", | ||
"program": "${workspaceFolder}/main.go", | ||
"args": ["controller", "--leader-elect=false", "--log-level=3", "--v=5", "--enable-operator-policy=true"], | ||
"env": { | ||
"WATCH_NAMESPACE": "managed", | ||
"KUBECONFIG": "${workspaceFolder}/kubeconfig_managed_e2e", | ||
} | ||
}, | ||
// Set FDescribe or FIt on the test to debug. Then set the desired breakpoint. | ||
{ | ||
"name": "Launch Test Function (instructions in launch.json)", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "auto", | ||
"program": "${workspaceFolder}/test/e2e/e2e_suite_test.go", | ||
"args": [ | ||
"-ginkgo.debug", | ||
"-ginkgo.v", | ||
] | ||
}, | ||
// Set the correct path to the governance-policy-framework repo directory in the env section. | ||
{ | ||
"name": "Launch Package (Framework E2E) (instructions in launch.json)", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "auto", | ||
"program": "${workspaceFolder}/main.go", | ||
"args": ["controller", "--leader-elect=false", "--log-level=3", "--v=5", "--enable-operator-policy=true"], | ||
"env": { | ||
"WATCH_NAMESPACE": "managed", | ||
"HUB_CONFIG": "${userHome}/git/governance-policy-framework/kubeconfig_hub", | ||
"MANAGED_CONFIG": "${userHome}/git/governance-policy-framework/kubeconfig_managed", | ||
"KUBECONFIG": "${userHome}/git/governance-policy-framework/kubeconfig_managed", | ||
} | ||
} | ||
] | ||
} |