From 6ef8f64fa23f2e4cdf66a7610d21d612310fc0a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20Suszy=C5=84ski?= Date: Fri, 14 Mar 2025 17:51:17 +0100 Subject: [PATCH] Deprecate knative.dev/hack/schema --- schema/README.md | 4 ++++ schema/go.mod | 1 + 2 files changed, 5 insertions(+) diff --git a/schema/README.md b/schema/README.md index de2ab959..81ccde24 100644 --- a/schema/README.md +++ b/schema/README.md @@ -1,5 +1,9 @@ # Schema Tool +> [!WARNING] +> This module is now deprecated. Please, use [k8s controller-gen](sigs.k8s.io/controller-tools/cmd/controller-gen) +> instead. See, example: https://github.com/knative-extensions/sample-controller/pull/931 + Schema is a seed of a CLI tool that a downstream can use to use reflection and go file inspection to generate a base version of OpenAPI for a CRD. The resulting schema will be used by Kubernetes to provide results from `kubectl explain ` calls, and type validation. diff --git a/schema/go.mod b/schema/go.mod index 470dbb4f..2d82cc2b 100644 --- a/schema/go.mod +++ b/schema/go.mod @@ -1,3 +1,4 @@ +// Deprecated: use k8s controller-gen instead, see: https://github.com/knative-extensions/sample-controller/pull/931 module knative.dev/hack/schema go 1.21