Skip to content

Commit d78e581

Browse files
authored
Adding generate_boilerplate script and correcting kbind name (#611)
* Fix boilerplates and add generate script Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> * Add missing boilerplates Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> --------- Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
1 parent 6544fde commit d78e581

100 files changed

Lines changed: 401 additions & 101 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ coverage.*
55
*.iml
66
.DS_Store
77
.env
8+
.venv
9+
__pycache__/
810
*.kubeconfig
911
.kcp
1012
.kube-bind

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2026 The Kbind Authors.
1+
# Copyright 2026 The kbind Authors.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2026 The Kbind Authors.
1+
# Copyright 2026 The kbind Authors.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -118,6 +118,11 @@ tidy:
118118
GOWORK=off go mod tidy
119119
cd sdk && GOWORK=off go mod tidy
120120

121+
# Generate Apache license headers on source files.
122+
.PHONY: generate-boilerplate
123+
generate-boilerplate:
124+
python3 hack/generate_boilerplate.py --boilerplate-dir=hack/boilerplate
125+
121126
# Verify Apache license headers on source files.
122127
.PHONY: verify-boilerplate
123128
verify-boilerplate:

backend/auth/authenticator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2026 The Kbind Authors.
2+
Copyright 2026 The kbind Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

backend/auth/kubernetes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2026 The Kbind Authors.
2+
Copyright 2026 The kbind Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

backend/auth/kubernetes_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2026 The Kbind Authors.
2+
Copyright 2026 The kbind Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

backend/auth/mock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2026 The Kbind Authors.
2+
Copyright 2026 The kbind Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

backend/auth/oidc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2026 The Kbind Authors.
2+
Copyright 2026 The kbind Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

backend/auth/oidc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2026 The Kbind Authors.
2+
Copyright 2026 The kbind Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

backend/auth/sessions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2026 The Kbind Authors.
2+
Copyright 2026 The kbind Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)