Merge pull request #131827 from nicklasfrahm/gomod-docs

docs: avoid broken link
This commit is contained in:
Kubernetes Prow Robot
2025-05-20 18:24:41 -07:00
committed by GitHub

View File

@@ -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.