Skip to content

Commit fbdffc7

Browse files
update SPDX copyright year to 2026
1 parent 231bc23 commit fbdffc7

File tree

17 files changed

+29
-16
lines changed

17 files changed

+29
-16
lines changed

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,16 @@ envtest: setup-envtest ## Install envtest binaries
8686
chmod -R u+w $$ENVTESTDIR && \
8787
rm -f $(LOCALBIN)/k8s/current && \
8888
ln -s $$ENVTESTDIR $(LOCALBIN)/k8s/current
89+
90+
# Set the year for SPDX header updates (default: current year)
91+
YEAR ?= $(shell date +%Y)
92+
93+
.PHONY: update-header-year
94+
update-header-year:
95+
# Go + TXT
96+
@find . -type f \( -name "*.go" -o -name "*.txt" \) -exec sed -i \
97+
's/^SPDX-FileCopyrightText: [0-9]\{4\}\( SAP SE or an SAP affiliate company and [^"]\+ contributors\)/SPDX-FileCopyrightText: $(YEAR)\1/' {} +
98+
99+
# TOML
100+
@find . -type f -name "*.toml" -exec sed -i \
101+
's/^SPDX-FileCopyrightText = "[0-9]\{4\}\( SAP SE or an SAP affiliate company and [^"]\+ contributors\)"/SPDX-FileCopyrightText = "$(YEAR)\1"/' {} +

REUSE.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ SPDX-PackageComment = "The code in this project may include calls to APIs (\"API
77
[[annotations]]
88
path = "**"
99
precedence = "aggregate"
10-
SPDX-FileCopyrightText = "2025 SAP SE or an SAP affiliate company and pod-reloader contributors"
10+
SPDX-FileCopyrightText = "2026 SAP SE or an SAP affiliate company and pod-reloader contributors"
1111
SPDX-License-Identifier = "Apache-2.0"

hack/boilerplate.go.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/*
2-
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and pod-reloader contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and pod-reloader contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/

hack/tools.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// +build tools
33

44
/*
5-
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and pod-reloader contributors
5+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and pod-reloader contributors
66
SPDX-License-Identifier: Apache-2.0
77
*/
88

internal/controller/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and pod-reloader contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and pod-reloader contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/
55

internal/controller/handle-configmap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and pod-reloader contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and pod-reloader contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/
55

internal/controller/handle-secret.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and pod-reloader contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and pod-reloader contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/
55

internal/controller/handle.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and pod-reloader contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and pod-reloader contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/
55

internal/controller/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and pod-reloader contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and pod-reloader contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/
55

internal/reloader/constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and pod-reloader contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and pod-reloader contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/
55

0 commit comments

Comments
 (0)