Skip to content

Commit

Permalink
kindnet: don't collide with kube-network-policies
Browse files Browse the repository at this point in the history
kindnet revendors the kube-network-policies controller, if it uses the
same values then there can be problems if both projects run in the same
cluster.

Change-Id: I0daad4e6979aff57e56cfacd876bd9101c3199cd
  • Loading branch information
aojea committed Oct 23, 2024
1 parent c04cb6d commit a345ebe
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 72 deletions.
3 changes: 2 additions & 1 deletion images/kindnetd/cmd/kindnetd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,10 @@ func main() {

cfg := networkpolicy.Config{
FailOpen: true,
QueueID: 100,
QueueID: 101,
NodeName: nodeName,
NetfilterBug1766Fix: true,
NFTableName: "kindnet-network-policies",
}

networkPolicyController, err := networkpolicy.NewController(
Expand Down
4 changes: 2 additions & 2 deletions images/kindnetd/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
k8s.io/apimachinery v0.31.1
k8s.io/client-go v0.31.1
k8s.io/klog/v2 v2.130.1
sigs.k8s.io/kube-network-policies v0.6.0
sigs.k8s.io/kube-network-policies v0.6.1-0.20241023163654-4320aa92e3f0
)

require (
Expand Down Expand Up @@ -40,7 +40,7 @@ require (
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/prometheus/client_golang v1.20.4 // indirect
github.com/prometheus/client_golang v1.20.5 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.60.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
Expand Down
Loading

0 comments on commit a345ebe

Please sign in to comment.