Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Apr 16, 2024
1 parent 844d33f commit 48c59fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ require (
k8s.io/apiextensions-apiserver v0.29.3
k8s.io/apimachinery v0.29.3
k8s.io/client-go v0.29.3
k8s.io/utils v0.0.0-20240310230437-4693a0247e57
sigs.k8s.io/controller-runtime v0.16.5
)

Expand Down Expand Up @@ -96,6 +95,7 @@ require (
k8s.io/component-base v0.29.3 // indirect
k8s.io/klog/v2 v2.110.1 // indirect
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect
k8s.io/utils v0.0.0-20240310230437-4693a0247e57 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
sigs.k8s.io/yaml v1.4.0 // indirect
Expand Down
6 changes: 3 additions & 3 deletions pkg/nftables/networkpolicy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
corev1 "k8s.io/api/core/v1"
networking "k8s.io/api/networking/v1"
"k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/utils/pointer"

firewallv1 "github.com/metal-stack/firewall-controller/v2/api/v1"
"github.com/metal-stack/firewall-controller/v2/pkg/nftables/mocks"
"github.com/metal-stack/metal-lib/pkg/pointer"
)

func port(p int) *intstr.IntOrString {
Expand Down Expand Up @@ -62,7 +62,7 @@ func TestClusterwideNetworkPolicyRules(t *testing.T) {
{
Protocol: &tcp,
Port: port(443),
EndPort: pointer.Int32(448),
EndPort: pointer.Pointer(int32(448)),
},
},
},
Expand All @@ -83,7 +83,7 @@ func TestClusterwideNetworkPolicyRules(t *testing.T) {
{
Protocol: &tcp,
Port: port(443),
EndPort: pointer.Int32(448),
EndPort: pointer.Pointer(int32(448)),
},
},
},
Expand Down

0 comments on commit 48c59fd

Please sign in to comment.