Errata

Programming Kubernetes

Errata for Programming Kubernetes

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
PDF Page 48
last paragraph in note

The YAML serializers foudn in k8s.io/...

should be:

The YAML serializers found in k8s.io/...

Kazuki Suda  Aug 16, 2019 
PDF Page 74
2nd paragraph

> The kubectl CLI also maintains a cache of resource types in *~/.kubectl* so that it does not have to re-retrieve the discovery information on every access.


As far as I know, discovery cache dir is `~/.kube/cache/discovery` which is hardcoded in k8s.io/cli-runtime.

```
discoveryCacheDir := computeDiscoverCacheDir(filepath.Join(homedir.HomeDir(), ".kube", "cache", "discovery"), config.Host)
```

- https://github.com/kubernetes/cli-runtime/blob/kubernetes-1.15.3/pkg/genericclioptions/config_flags.go#L234

Kazuki Suda  Aug 25, 2019 
Printed Page 109
Last sentence of the second last paragraph

The book says “you can find the following generated code”

Actually the code is not auto generated, so it should be fixed.

Anonymous  May 02, 2021