From 2c5e352a40f052f3ecb0976c9050696ae4701bfd Mon Sep 17 00:00:00 2001 From: Marco Hofstetter Date: Tue, 21 Feb 2023 11:22:18 +0100 Subject: [PATCH] .nvim: Add cilium operator debug target This commit adds the debug target for debugging the cilium operator within a k8s kind cluster. Signed-off-by: Marco Hofstetter --- .nvim/nvim-dap.lua | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.nvim/nvim-dap.lua b/.nvim/nvim-dap.lua index a9c75cf2fea1f..079fc4b847087 100644 --- a/.nvim/nvim-dap.lua +++ b/.nvim/nvim-dap.lua @@ -15,10 +15,10 @@ dap.adapters.cilium_kind_worker_2 = { host = "127.0.0.1", port = 23412 } -dap.adapters.cilium_kind_worker_1 = { +dap.adapters.cilium_operator_kind_worker_1 = { type = "server", host = "127.0.0.1", - port = 23411 + port = 23511 } dap.configurations.go = { { @@ -56,5 +56,17 @@ dap.configurations.go = { to = "/go/src/github.com/cilium/cilium" } } + }, + { + type = "cilium_operator_kind_worker_1", + request = "attach", + name = "Attach to Cilium Operator", + mode = "remote", + substitutePath = { + { + from = "${workspaceFolder}", + to = "/go/src/github.com/cilium/cilium" + } + } } }