Skip to content

Commit a5448b2

Browse files
bharathbratirar2
authored andcommitted
Boilerplate verification to ensure LICENSE information is present (kubernetes-sigs#880)
* Copy boilerplate.py from gateway-api * Create boilerplate.generatego.txt * Create boilerplate.go.txt * Create boilerplate.py.txt * Create boilerplate.sh.txt * Create verify-boilerplate.sh * Create verify-all.sh * Create kube-env.sh * Update Makefile to run static analysis that calls verify-all.sh which in turn calls verify-boilerplate.sh * trim unrequired dirs and files from skipped list in boilerplate.py * Fix definition of verify-all.sh in the Makefile * Adding execute permissions for the verify-all and verify-boilerplate scripts * Adding execute permissions for boilerplate.py * Fixing all existing violations that boilerplate verification found initially * Adding some files to ignore list because modifying their licenses causes some diff errors to show up when compared to .orig files * Update boilerplate verification scripts license year to 2025 * Remove year from boilerplate template for update-codegen.sh * Add bin/kube_codegen.sh to skipped files for boilerplate verification * Switch go codegen to use boilerplate.generatego.txt and remove the old redundant source
1 parent 28fe9b1 commit a5448b2

File tree

79 files changed

+884
-60
lines changed

Some content is hidden

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

79 files changed

+884
-60
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
9292

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

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

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

157+
# Run static analysis.
158+
.PHONY: verify-all
159+
verify:
160+
hack/verify-all.sh -v
161+
157162
##@ Build
158163

159164
# Build the container image
@@ -300,7 +305,6 @@ install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~
300305
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.
301306
$(KUSTOMIZE) build config/crd | $(KUBECTL) delete --ignore-not-found=$(ignore-not-found) -f -
302307

303-
304308
##@ Helm
305309
PHONY: inferencepool-helm-chart-push
306310
inferencepool-helm-chart-push: yq helm

api/v1alpha2/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.

api/v1alpha2/zz_generated.register.go

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

client-go/applyconfiguration/api/v1alpha2/endpointpickerconfig.go

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

client-go/applyconfiguration/api/v1alpha2/extension.go

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

client-go/applyconfiguration/api/v1alpha2/extensionconnection.go

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

client-go/applyconfiguration/api/v1alpha2/extensionreference.go

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

client-go/applyconfiguration/api/v1alpha2/inferencemodel.go

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

client-go/applyconfiguration/api/v1alpha2/inferencemodelspec.go

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

client-go/applyconfiguration/api/v1alpha2/inferencemodelstatus.go

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

client-go/applyconfiguration/api/v1alpha2/inferencepool.go

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

client-go/applyconfiguration/api/v1alpha2/inferencepoolspec.go

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

client-go/applyconfiguration/api/v1alpha2/inferencepoolstatus.go

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

client-go/applyconfiguration/api/v1alpha2/poolobjectreference.go

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

client-go/applyconfiguration/api/v1alpha2/poolstatus.go

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

client-go/applyconfiguration/api/v1alpha2/targetmodel.go

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

client-go/applyconfiguration/internal/internal.go

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

client-go/applyconfiguration/utils.go

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

client-go/clientset/versioned/clientset.go

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

client-go/clientset/versioned/fake/clientset_generated.go

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

client-go/clientset/versioned/fake/doc.go

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

client-go/clientset/versioned/fake/register.go

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

client-go/clientset/versioned/scheme/doc.go

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

client-go/clientset/versioned/scheme/register.go

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

client-go/clientset/versioned/typed/api/v1alpha2/api_client.go

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

0 commit comments

Comments
 (0)