From 968e19d1b6ff41f3010de004fcb726ab869ca85d Mon Sep 17 00:00:00 2001 From: Nicklas Frahm Date: Sat, 17 May 2025 09:30:09 +0200 Subject: [PATCH] docs: avoid broken link Signed-off-by: Nicklas Frahm --- staging/src/k8s.io/sample-apiserver/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/staging/src/k8s.io/sample-apiserver/README.md b/staging/src/k8s.io/sample-apiserver/README.md index db8f6c682a4..0ddb448523a 100644 --- a/staging/src/k8s.io/sample-apiserver/README.md +++ b/staging/src/k8s.io/sample-apiserver/README.md @@ -34,6 +34,8 @@ git clone https://github.com/kubernetes/sample-apiserver cd sample-apiserver ``` +### When using Go modules + Note, however, that if you intend to [generate code](#changes-to-the-types) then you will also need the code-generator repo to exist in an old-style location. One easy way @@ -56,7 +58,7 @@ then you already have a copy of this demo in If you change the API object type definitions in any of the `pkg/apis/.../types.go` files then you will need to update the files generated from the type definitions. To do this, first -[create the vendor directory if necessary](#when-using-go-111-modules) +[create the vendor directory if necessary](#when-using-go-modules) and then invoke `hack/update-codegen.sh` with `sample-apiserver` as your current working directory; the script takes no arguments.