File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,14 +115,15 @@ GO_COVERPKGS := $(shell go list ./... | grep -E '/internal')
115115null :=
116116space := $(null ) $(null )
117117comma := ,
118+ YEAR ?= $(shell date +% Y)
118119
119120check : FORCE static-check build/cover.html build-all
120121 @printf " \e[1;32m>> All checks successful.\e[0m\n"
121122
122123generate : install-controller-gen
123124 @printf " \e[1;36m>> controller-gen\e[0m\n"
124125 @controller-gen crd rbac:roleName=manager-role webhook paths=" ./..." output:crd:artifacts:config=charts/kvm-node-agent/crds output:rbac:artifacts:config=config/rbac
125- @controller-gen object:headerFile=" hack/boilerplate.go.txt" paths=" ./..."
126+ @controller-gen object:headerFile=" hack/boilerplate.go.txt" ,year= $( YEAR ) paths=" ./..."
126127 @controller-gen applyconfiguration paths=" ./..."
127128
128129run-golangci-lint : FORCE install-golangci-lint
@@ -206,6 +207,7 @@ vars: FORCE
206207 @printf " SED=$( SED) \n"
207208 @printf " UNAME_S=$( UNAME_S) \n"
208209 @printf " XARGS=$( XARGS) \n"
210+ @printf " YEAR=$( YEAR) \n"
209211help : FORCE
210212 @printf " \n"
211213 @printf " \e[1mUsage:\e[0m\n"
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ require (
1313 github.com/godbus/dbus/v5 v5.2.2
1414 github.com/onsi/ginkgo/v2 v2.28.2
1515 github.com/onsi/gomega v1.39.1
16- github.com/sapcc/go-api-declarations v1.21.1
16+ github.com/sapcc/go-api-declarations v1.22.0
1717 github.com/stretchr/testify v1.11.1
1818 k8s.io/api v0.35.2
1919 k8s.io/apimachinery v0.35.2
Original file line number Diff line number Diff line change @@ -155,8 +155,8 @@ github.com/prometheus/procfs v0.19.2/go.mod h1:M0aotyiemPhBCM0z5w87kL22CxfcH05Zp
155155github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ =
156156github.com/rogpeppe/go-internal v1.14.1 /go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc =
157157github.com/russross/blackfriday/v2 v2.1.0 /go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM =
158- github.com/sapcc/go-api-declarations v1.21.1 h1:7mv8+bT95f5mZtEV6/IXQ8dLGD0sZAQ4vZetPzO+EbU =
159- github.com/sapcc/go-api-declarations v1.21.1 /go.mod h1:x3V8bzg7Y4kmbA+DeWWwKteFEdCCSiVQdwRXj4fGAYY =
158+ github.com/sapcc/go-api-declarations v1.22.0 h1:nU/eJ6OO54Z9YSo1gWinD0A2etrfZObCwYdB9xA0VWE =
159+ github.com/sapcc/go-api-declarations v1.22.0 /go.mod h1:x3V8bzg7Y4kmbA+DeWWwKteFEdCCSiVQdwRXj4fGAYY =
160160github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU =
161161github.com/spf13/cobra v1.10.2 /go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4 =
162162github.com/spf13/pflag v1.0.9 /go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg =
You can’t perform that action at this time.
0 commit comments