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.