Skip to content

Commit ef1b0d0

Browse files
update SPDX copyright year to 2026
1 parent 17bf267 commit ef1b0d0

43 files changed

Lines changed: 54 additions & 42 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,15 @@ envtest: setup-envtest coredns ## Install envtest binaries
127127
rm -f $(LOCALBIN)/k8s/current/coredns && \
128128
ln -s $(LOCALBIN)/coredns $(LOCALBIN)/k8s/current/coredns
129129

130+
# Set the year for SPDX header updates (default: current year)
131+
YEAR ?= $(shell date +%Y)
132+
133+
.PHONY: update-header-year
134+
update-header-year:
135+
# Go + TXT
136+
@find . -type f \( -name "*.go" -o -name "*.txt" \) -exec sed -i \
137+
's/^SPDX-FileCopyrightText: [0-9]\{4\}\( SAP SE or an SAP affiliate company and [^"]\+ contributors\)/SPDX-FileCopyrightText: $(YEAR)\1/' {} +
138+
139+
# TOML
140+
@find . -type f -name "*.toml" -exec sed -i \
141+
'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 = "2024 SAP SE or an SAP affiliate company and dns-masquerading-operator contributors"
10+
SPDX-FileCopyrightText = "2026 SAP SE or an SAP affiliate company and dns-masquerading-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: 2024 SAP SE or an SAP affiliate company and dns-masquerading-operator contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and dns-masquerading-operator contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/
55

api/v1alpha1/masqueradingrule_types.go

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

api/v1alpha1/masqueradingrule_utils.go

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

api/v1alpha1/masqueradingrule_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and dns-masquerading-operator contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and dns-masquerading-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: 2024 SAP SE or an SAP affiliate company and dns-masquerading-operator contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and dns-masquerading-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: 2024 SAP SE or an SAP affiliate company and dns-masquerading-operator contributors
5+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and dns-masquerading-operator contributors
66
SPDX-License-Identifier: Apache-2.0
77
*/
88

internal/controllers/common.go

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

0 commit comments

Comments
 (0)