Skip to content

Commit f515c90

Browse files
committed
Merge branch 'master' of github.com:metal-stack/firewall-controller into 186-dns-based-cwnps-not-reliable-on-hostnames-with-constantly-changing-ips
2 parents bac53b1 + 1180c63 commit f515c90

File tree

16 files changed

+178
-177
lines changed

16 files changed

+178
-177
lines changed

.github/workflows/build.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
3131

3232
- name: Checkout
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@v5
3434

3535
- uses: google-github-actions/auth@v1
3636
with:
@@ -39,16 +39,16 @@ jobs:
3939
- name: Set up Cloud SDK
4040
uses: google-github-actions/setup-gcloud@v2
4141

42-
- name: Set up Go 1.23
42+
- name: Set up Go 1.25
4343
uses: actions/setup-go@v5
4444
with:
45-
go-version: '1.23'
45+
go-version: '1.25'
4646
cache: false
4747

4848
- name: Lint
49-
uses: golangci/golangci-lint-action@v6
49+
uses: golangci/golangci-lint-action@v8
5050
with:
51-
args: --build-tags integration -p bugs -p unused --timeout=3m
51+
args: --build-tags integration --timeout=3m
5252

5353
- name: Make tag
5454
run: |
@@ -105,12 +105,12 @@ jobs:
105105
runs-on: ubuntu-latest
106106

107107
steps:
108-
- uses: actions/checkout@v4
108+
- uses: actions/checkout@v5
109109

110-
- name: Set up Go 1.23
110+
- name: Set up Go 1.25
111111
uses: actions/setup-go@v5
112112
with:
113-
go-version: '1.23'
113+
go-version: '1.25'
114114
cache: false
115115

116116
- name: Run tests

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ GITVERSION := $(shell git describe --long --all)
33
BUILDDATE := $(shell date -Iseconds)
44
VERSION := $(or ${VERSION},$(shell git describe --tags --exact-match 2> /dev/null || git symbolic-ref -q --short HEAD || git rev-parse --short HEAD))
55

6-
CONTROLLER_TOOLS_VERSION ?= v0.16.3
6+
CONTROLLER_TOOLS_VERSION ?= v0.18.0
77
MOCKGEN_VERSION ?= $(shell go list -m all | grep go.uber.org/mock | awk '{print $$2}')
88
LOCALBIN ?= $(shell pwd)/bin
99
CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen

config/crd/bases/metal-stack.io_clusterwidenetworkpolicies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.16.3
6+
controller-gen.kubebuilder.io/version: v0.18.0
77
name: clusterwidenetworkpolicies.metal-stack.io
88
spec:
99
group: metal-stack.io

controllers/droptailer_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (r *DroptailerReconciler) SetupWithManager(mgr ctrl.Manager) error {
6060
if err != nil {
6161
return err
6262
}
63-
empty.Close()
63+
_ = empty.Close()
6464
}
6565

6666
hosts, err := txeh.NewHosts(hc)

controllers/firewall_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ func (r *FirewallReconciler) reconcileFirewallService(ctx context.Context, s fir
223223
}
224224
}
225225

226-
if !reflect.DeepEqual(currentSvc.Spec, svc.Spec) || currentSvc.ObjectMeta.Labels == nil || !reflect.DeepEqual(currentSvc.ObjectMeta.Labels, svc.ObjectMeta.Labels) {
226+
if !reflect.DeepEqual(currentSvc.Spec, svc.Spec) || currentSvc.Labels == nil || !reflect.DeepEqual(currentSvc.Labels, svc.Labels) {
227227
currentSvc.Spec = svc.Spec
228-
currentSvc.ObjectMeta.Labels = svc.ObjectMeta.Labels
228+
currentSvc.Labels = svc.Labels
229229
err = r.ShootClient.Update(ctx, &currentSvc)
230230
if err != nil {
231231
return err

go.mod

Lines changed: 39 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
11
module github.com/metal-stack/firewall-controller/v2
22

3-
go 1.23.0
4-
5-
toolchain go1.23.4
3+
go 1.25.0
64

75
require (
8-
github.com/Masterminds/semver/v3 v3.3.1
9-
github.com/coreos/go-systemd/v22 v22.5.0
6+
github.com/Masterminds/semver/v3 v3.4.0
7+
github.com/coreos/go-systemd/v22 v22.6.0
108
github.com/fatih/color v1.18.0
11-
github.com/go-logr/logr v1.4.2
12-
github.com/google/go-cmp v0.6.0
13-
github.com/google/nftables v0.2.1-0.20240414091927-5e242ec57806
9+
github.com/go-logr/logr v1.4.3
10+
github.com/google/go-cmp v0.7.0
11+
github.com/google/nftables v0.3.0
1412
github.com/ks2211/go-suricata v0.0.0-20200823200910-986ce1470707
15-
github.com/metal-stack/firewall-controller-manager v0.4.3
16-
github.com/metal-stack/metal-go v0.39.4
17-
github.com/metal-stack/metal-lib v0.19.0
18-
github.com/metal-stack/metal-networker v0.46.1
13+
github.com/metal-stack/firewall-controller-manager v0.5.1
14+
github.com/metal-stack/metal-go v0.42.0
15+
github.com/metal-stack/metal-lib v0.23.3
16+
github.com/metal-stack/metal-networker v0.46.2
1917
github.com/metal-stack/v v1.0.3
20-
github.com/miekg/dns v1.1.62
18+
github.com/miekg/dns v1.1.68
2119
github.com/txn2/txeh v1.5.5
22-
github.com/vishvananda/netlink v1.3.0
23-
go.uber.org/mock v0.5.0
20+
github.com/vishvananda/netlink v1.3.1
21+
go.uber.org/mock v0.6.0
2422
go4.org/netipx v0.0.0-20231129151722-fdeea329fbba
2523
k8s.io/api v0.29.3
2624
k8s.io/apiextensions-apiserver v0.29.3
27-
k8s.io/apimachinery v0.31.0
25+
k8s.io/apimachinery v0.32.3
2826
k8s.io/client-go v0.29.3
2927
sigs.k8s.io/controller-runtime v0.17.5
3028
)
@@ -36,37 +34,35 @@ require (
3634
github.com/beorn7/perks v1.0.1 // indirect
3735
github.com/cespare/xxhash/v2 v2.3.0 // indirect
3836
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
39-
github.com/emicklei/go-restful/v3 v3.12.1 // indirect
37+
github.com/emicklei/go-restful/v3 v3.12.2 // indirect
4038
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
4139
github.com/fsnotify/fsnotify v1.8.0 // indirect
4240
github.com/go-openapi/analysis v0.23.0 // indirect
43-
github.com/go-openapi/errors v0.22.0 // indirect
44-
github.com/go-openapi/jsonpointer v0.21.0 // indirect
41+
github.com/go-openapi/errors v0.22.1 // indirect
42+
github.com/go-openapi/jsonpointer v0.21.1 // indirect
4543
github.com/go-openapi/jsonreference v0.21.0 // indirect
4644
github.com/go-openapi/loads v0.22.0 // indirect
4745
github.com/go-openapi/spec v0.21.0 // indirect
4846
github.com/go-openapi/strfmt v0.23.0 // indirect
49-
github.com/go-openapi/swag v0.23.0 // indirect
47+
github.com/go-openapi/swag v0.23.1 // indirect
5048
github.com/go-openapi/validate v0.24.0 // indirect
51-
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
5249
github.com/godbus/dbus/v5 v5.1.1-0.20230522191255-76236955d466 // indirect
5350
github.com/gogo/protobuf v1.3.2 // indirect
54-
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
51+
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
5552
github.com/golang/protobuf v1.5.4 // indirect
56-
github.com/google/gnostic-models v0.6.8 // indirect
53+
github.com/google/gnostic-models v0.6.9 // indirect
5754
github.com/google/gofuzz v1.2.0 // indirect
5855
github.com/google/uuid v1.6.0 // indirect
5956
github.com/imdario/mergo v0.3.16 // indirect
6057
github.com/josharian/intern v1.0.0 // indirect
61-
github.com/josharian/native v1.1.1-0.20230202152459-5c7d0dd6ab86 // indirect
6258
github.com/json-iterator/go v1.1.12 // indirect
63-
github.com/klauspost/compress v1.17.11 // indirect
59+
github.com/klauspost/compress v1.18.0 // indirect
6460
github.com/mailru/easyjson v0.9.0 // indirect
65-
github.com/mattn/go-colorable v0.1.13 // indirect
61+
github.com/mattn/go-colorable v0.1.14 // indirect
6662
github.com/mattn/go-isatty v0.0.20 // indirect
67-
github.com/mdlayher/netlink v1.7.2 // indirect
63+
github.com/mdlayher/netlink v1.7.3-0.20250113171957-fbb4dce95f42 // indirect
6864
github.com/mdlayher/socket v0.5.1 // indirect
69-
github.com/metal-stack/metal-hammer v0.13.10 // indirect
65+
github.com/metal-stack/metal-hammer v0.13.11 // indirect
7066
github.com/mitchellh/mapstructure v1.5.0 // indirect
7167
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
7268
github.com/modern-go/reflect2 v1.0.2 // indirect
@@ -75,33 +71,32 @@ require (
7571
github.com/pkg/errors v0.9.1 // indirect
7672
github.com/prometheus/client_golang v1.20.5 // indirect
7773
github.com/prometheus/client_model v0.6.1 // indirect
78-
github.com/prometheus/common v0.61.0 // indirect
74+
github.com/prometheus/common v0.62.0 // indirect
7975
github.com/prometheus/procfs v0.15.1 // indirect
80-
github.com/spf13/pflag v1.0.5 // indirect
81-
github.com/spf13/viper v1.20.0-alpha.6 // indirect
76+
github.com/spf13/pflag v1.0.7 // indirect
8277
github.com/vishvananda/netns v0.0.5 // indirect
83-
go.mongodb.org/mongo-driver v1.17.2 // indirect
78+
go.mongodb.org/mongo-driver v1.17.3 // indirect
8479
go.uber.org/zap v1.27.0 // indirect
85-
golang.org/x/exp v0.0.0-20241210194714-1829a127f884 // indirect
86-
golang.org/x/mod v0.22.0 // indirect
87-
golang.org/x/net v0.32.0 // indirect
88-
golang.org/x/oauth2 v0.24.0 // indirect
89-
golang.org/x/sync v0.10.0 // indirect
90-
golang.org/x/sys v0.29.0 // indirect
91-
golang.org/x/term v0.27.0 // indirect
92-
golang.org/x/text v0.21.0 // indirect
93-
golang.org/x/time v0.8.0 // indirect
94-
golang.org/x/tools v0.28.0 // indirect
80+
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 // indirect
81+
golang.org/x/mod v0.27.0 // indirect
82+
golang.org/x/net v0.43.0 // indirect
83+
golang.org/x/oauth2 v0.30.0 // indirect
84+
golang.org/x/sync v0.16.0 // indirect
85+
golang.org/x/sys v0.35.0 // indirect
86+
golang.org/x/term v0.34.0 // indirect
87+
golang.org/x/text v0.28.0 // indirect
88+
golang.org/x/time v0.12.0 // indirect
89+
golang.org/x/tools v0.36.0 // indirect
9590
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
96-
google.golang.org/protobuf v1.35.2 // indirect
91+
google.golang.org/protobuf v1.36.8 // indirect
9792
gopkg.in/inf.v0 v0.9.1 // indirect
9893
gopkg.in/yaml.v2 v2.4.0 // indirect
9994
gopkg.in/yaml.v3 v3.0.1 // indirect
10095
k8s.io/component-base v0.29.3 // indirect
10196
k8s.io/klog/v2 v2.130.1 // indirect
10297
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
10398
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect
104-
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
99+
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
105100
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
106101
sigs.k8s.io/yaml v1.4.0 // indirect
107102
)

0 commit comments

Comments
 (0)