Skip to content

Commit 59bb25b

Browse files
Merge pull request #50 from SAP/update-year
update SPDX copyright year to 2026
2 parents 270f435 + b23443a commit 59bb25b

35 files changed

+46
-34
lines changed

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,15 @@ envtest: setup-envtest ## Install envtest binaries
115115
rm -f $(LOCALBIN)/k8s/current && \
116116
ln -s $$ENVTESTDIR $(LOCALBIN)/k8s/current
117117

118+
# Set the year for SPDX header updates (default: current year)
119+
YEAR ?= $(shell date +%Y)
120+
121+
.PHONY: update-header-year
122+
update-header-year:
123+
# Go + TXT
124+
@find . -type f \( -name "*.go" -o -name "*.txt" \) -exec sed -i \
125+
's/^SPDX-FileCopyrightText: [0-9]\{4\}\( SAP SE or an SAP affiliate company and [^"]\+ contributors\)/SPDX-FileCopyrightText: $(YEAR)\1/' {} +
126+
127+
# TOML
128+
@find . -type f -name "*.toml" -exec sed -i \
129+
'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 reactivejob-operator contributors"
10+
SPDX-FileCopyrightText = "2026 SAP SE or an SAP affiliate company and reactivejob-operator contributors"
1111
SPDX-License-Identifier = "Apache-2.0"

api/v1alpha1/groupversion_info.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 reactivejob-operator contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and reactivejob-operator contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/
55

api/v1alpha1/reactivejob_types.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 reactivejob-operator contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and reactivejob-operator contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/
55

api/v1alpha1/reactivejob_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 reactivejob-operator contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and reactivejob-operator contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/
55

api/v1alpha1/reactivejob_webhook.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 reactivejob-operator contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and reactivejob-operator contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/
55

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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 reactivejob-operator contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and reactivejob-operator 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 reactivejob-operator contributors
5+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and reactivejob-operator contributors
66
SPDX-License-Identifier: Apache-2.0
77
*/
88

internal/controllers/reactivejob_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 reactivejob-operator contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and reactivejob-operator contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/
55

0 commit comments

Comments
 (0)