You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4. Set the following program arguments: --config ./backend/src/apiserver/config -logtostderr=true --sampleconfig ./backend/src/apiserver/config/test_sample_config.json
269
+
249
270
#### Starting a Remote Debug Session
250
271
251
272
Start by launching a pipeline. This will eventually create a Driver pod that is waiting for a remote debug connection.
Set a breakpoint on the Driver code in VS Code. Then remotely connect to the Delve debug session with the following VS
267
288
Code `launch.json` file:
268
289
290
+
VSCode configuration:
269
291
```json
270
292
{
271
293
"version": "0.2.0",
@@ -283,6 +305,11 @@ Code `launch.json` file:
283
305
}
284
306
```
285
307
308
+
GoLand configuration:
309
+
1. Create a new Go Remote configuration and title it "Delve debug session"
310
+
2. Set **Host** to localhost
311
+
3. Set **Port** to 2345
312
+
286
313
Once the Driver pod succeeds, the remote debug session will close. Then repeat the process of forwarding the port
287
314
of subsequent Driver pods and starting remote debug sessions in VS Code until the pipeline completes.
288
315
@@ -295,7 +322,7 @@ pod.
295
322
296
323
The Kubeflow Pipelines API server typically runs over HTTPS when deployed in a Kubernetes cluster. However, during local development, it operates over HTTP, which Kubernetes admission webhooks do not support (they require HTTPS). This incompatibility prevents webhooks from functioning correctly in a local Kind cluster.
297
324
298
-
To resolve this, a webhook proxy acts as a bridge, allowing webhooks to communicate with the API server even when it runs over HTTP.
325
+
To resolve this, a webhook proxy acts as a bridge, allowing webhooks to communicate with the API server even when it runs over HTTP.
299
326
300
327
This is used by default when using the `dev-kind-cluster` Make target.
301
328
@@ -307,13 +334,11 @@ Run the following to delete the cluster (once you are finished):
307
334
kind delete clusters dev-pipelines-api
308
335
```
309
336
310
-
## Contributing
337
+
## Contributing
311
338
### Code Style
312
-
339
+
313
340
Backend codebase follows the [Google's Go Style Guide](https://google.github.io/styleguide/go/). Please, take time to get familiar with the [best practices](https://google.github.io/styleguide/go/best-practices). It is not intended to be exhaustive, but it often helps minimizing guesswork among developers and keep codebase uniform and consistent.
314
341
315
342
We use [golangci-lint](https://golangci-lint.run/) tool that can catch common mistakes locally (see detailed configuration [here](https://github.com/kubeflow/pipelines/blob/master/.golangci.yaml)). It can be [conveniently integrated](https://golangci-lint.run/usage/integrations/) with multiple popular IDEs such as VS Code or Vim.
316
343
317
344
Finally, it is advised to install [pre-commit](https://pre-commit.com/) in order to automate linter checks (see configuration [here](https://github.com/kubeflow/pipelines/blob/master/.pre-commit-config.yaml))
0 commit comments