Skip to content

Boilerplate verification to ensure LICENSE information is present #880

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
27b73b2
Copy boilerplate.py from gateway-api
bharathbrat May 22, 2025
27a3dbb
Create boilerplate.generatego.txt
bharathbrat May 22, 2025
8b1d5a2
Create boilerplate.go.txt
bharathbrat May 22, 2025
0ef36a8
Create boilerplate.py.txt
bharathbrat May 22, 2025
2ba9a96
Create boilerplate.sh.txt
bharathbrat May 22, 2025
281b689
Create verify-boilerplate.sh
bharathbrat May 22, 2025
afd2642
Create verify-all.sh
bharathbrat May 22, 2025
0135835
Create kube-env.sh
bharathbrat May 22, 2025
41c359e
Update Makefile to run static analysis that calls verify-all.sh which…
bharathbrat May 22, 2025
c770edd
Merge branch 'kubernetes-sigs:main' into boilerplate_verification
bharathbrat May 28, 2025
1533244
trim unrequired dirs and files from skipped list in boilerplate.py
bharathbrat May 28, 2025
6369613
Fix definition of verify-all.sh in the Makefile
bharathbrat May 28, 2025
b6d5003
Merge branch 'kubernetes-sigs:main' into boilerplate_verification
bharathbrat May 28, 2025
c51d0ae
Adding execute permissions for the verify-all and verify-boilerplate …
bharathbrat May 28, 2025
bf88981
Adding execute permissions for boilerplate.py
bharathbrat May 28, 2025
9ca8b51
Fixing all existing violations that boilerplate verification found in…
bharathbrat May 31, 2025
93e6e87
Adding some files to ignore list because modifying their licenses cau…
bharathbrat May 31, 2025
3043ba5
Merge branch 'kubernetes-sigs:main' into boilerplate_verification
bharathbrat May 31, 2025
72577fa
Update boilerplate verification scripts license year to 2025
bharathbrat May 31, 2025
432c5a9
Merge branch 'kubernetes-sigs:main' into boilerplate_verification
bharathbrat Jun 2, 2025
1310566
Remove year from boilerplate template for update-codegen.sh
bharathbrat Jun 2, 2025
4d70093
Add bin/kube_codegen.sh to skipped files for boilerplate verification
bharathbrat Jun 2, 2025
10ecc2e
Merge branch 'kubernetes-sigs:main' into boilerplate_verification
bharathbrat Jun 2, 2025
d683c35
Switch go codegen to use boilerplate.generatego.txt and remove the ol…
bharathbrat Jun 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust

.PHONY: generate
generate: controller-gen code-generator manifests ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate/boilerplate.generatego.txt" paths="./..."
./hack/update-codegen.sh

# Use same code-generator version as k8s.io/api
Expand Down Expand Up @@ -151,9 +151,14 @@ ci-lint: golangci-lint
$(GOLANGCI_LINT) run --timeout 15m0s

.PHONY: verify
verify: vet fmt-verify manifests generate ci-lint
verify: vet fmt-verify manifests generate ci-lint verify-all
git --no-pager diff --exit-code config api client-go

# Run static analysis.
.PHONY: verify-all
verify:
hack/verify-all.sh -v

##@ Build

# Build the container image
Expand Down Expand Up @@ -300,7 +305,6 @@ install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~
uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
$(KUSTOMIZE) build config/crd | $(KUBECTL) delete --ignore-not-found=$(ignore-not-found) -f -


##@ Helm
PHONY: inferencepool-helm-chart-push
inferencepool-helm-chart-push: yq helm
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion api/v1alpha2/zz_generated.register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client-go/applyconfiguration/api/v1alpha2/extension.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client-go/applyconfiguration/api/v1alpha2/inferencemodel.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client-go/applyconfiguration/api/v1alpha2/inferencepool.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client-go/applyconfiguration/api/v1alpha2/poolstatus.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client-go/applyconfiguration/api/v1alpha2/targetmodel.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client-go/applyconfiguration/internal/internal.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client-go/applyconfiguration/utils.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client-go/clientset/versioned/clientset.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client-go/clientset/versioned/fake/clientset_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client-go/clientset/versioned/fake/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client-go/clientset/versioned/fake/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client-go/clientset/versioned/scheme/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client-go/clientset/versioned/scheme/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading