Skip to content

Commit

Permalink
.nvim: Add cilium operator debug target
Browse files Browse the repository at this point in the history
This commit adds the debug target for debugging the cilium operator
within a k8s kind cluster.

Signed-off-by: Marco Hofstetter <[email protected]>
  • Loading branch information
mhofstetter authored and joestringer committed Mar 1, 2023
1 parent 56681fe commit 2c5e352
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .nvim/nvim-dap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
{
Expand Down Expand Up @@ -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"
}
}
}
}

0 comments on commit 2c5e352

Please sign in to comment.