|
| 1 | +{ |
| 2 | + // MCAD Debugger configuration for VSCode |
| 3 | + |
| 4 | + // Use IntelliSense to learn about possible attributes. |
| 5 | + // Hover to view descriptions of existing attributes. |
| 6 | + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
| 7 | + "version": "0.2.0", |
| 8 | + "configurations": [ |
| 9 | + { |
| 10 | + "name": "Launch MCAD Controller", |
| 11 | + "type": "go", |
| 12 | + "request": "launch", |
| 13 | + "mode": "auto", |
| 14 | + "program": "cmd/kar-controllers/main.go", |
| 15 | + // Uncomment the line below to enable race testing. |
| 16 | + // "buildFlags": "-race", |
| 17 | + "env": { |
| 18 | + "DISPATCH_RESOURCE_RESERVATION_TIMEOUT":"120000", |
| 19 | + "PREEMPTION":"false", |
| 20 | + "DISPATCHER_MODE":"false", |
| 21 | + "QUOTA_ENABLED":"false", |
| 22 | + }, |
| 23 | + // To set the desired log level set "--v", "<desired_logging_level>" in the args. |
| 24 | + "args": ["--kubeconfig", "</path/to/your/kube/config>", "--v", "15", "--logtostderr"], |
| 25 | + // This controls the working directory the code runs in |
| 26 | + "cwd": "${workspaceRoot}", |
| 27 | + "showLog": true |
| 28 | + }, |
| 29 | + { |
| 30 | + "name": "Launch MCAD Controller with QuotaManager", |
| 31 | + "type": "go", |
| 32 | + "request": "launch", |
| 33 | + "mode": "auto", |
| 34 | + "program": "cmd/kar-controllers/main.go", |
| 35 | + "buildFlags": "-race", |
| 36 | + "env": { |
| 37 | + "DISPATCH_RESOURCE_RESERVATION_TIMEOUT":"120000", |
| 38 | + "PREEMPTION":"false", |
| 39 | + "DISPATCHER_MODE":"false", |
| 40 | + }, |
| 41 | + // To set the desired log level set "--v", "<desired_logging_level>" in the args. |
| 42 | + "args": ["--kubeconfig", "</path/to/your/kube/config>", "--quotaEnabled", "true", "--v", "4", "--logtostderr"], |
| 43 | + // This controls the working directory the code runs in |
| 44 | + "cwd": "${workspaceRoot}", |
| 45 | + "showLog": true, |
| 46 | + "port": 8081 |
| 47 | + } |
| 48 | + ] |
| 49 | +} |
0 commit comments