|
| 1 | +# Kubernetes Code Copy Area |
| 2 | + |
| 3 | +This directory is the copy of original types from the main |
| 4 | +[kubernetes/kubernetes repo](https://github.com/kubernetes/kubernetes) with |
| 5 | +maintaining original packages structure. The purpose of this package is to |
| 6 | +avoid depending on the entire main repo and copy only necessary types as needed. |
| 7 | + |
| 8 | +The types in this directory should be treated as read-only, and any necessary |
| 9 | +changes should be addressed in the original repository. If there are some |
| 10 | +specific changes needed to be made for Service Catalog, the type should be moved |
| 11 | +out of this directory to the appropriate one first. |
| 12 | + |
| 13 | +## Updating dependencies to the latest Kubernetes release |
| 14 | + |
| 15 | +When updating dependencies on |
| 16 | +[k8s.io/apimachinery](https://github.com/kubernetes/apimachinery), |
| 17 | +[k8s.io/client-go](https://github.com/kubernetes/client-go), |
| 18 | +[k8s.io/apiserver](https://github.com/kubernetes/apiserver) |
| 19 | +and other top-level Kubernetes repositories, we need to overwrite the types in |
| 20 | +this directory with the latest version from the corresponding release of |
| 21 | +[k8s.io/kubernetes](https://github.com/kubernetes/kubernetes) to keep the files |
| 22 | +in sync. |
| 23 | + |
| 24 | +## Long-term plan |
| 25 | + |
| 26 | +In the long term the packages used by Kubernetes-based projects will be moved |
| 27 | +from the main repo to separate top-level repositories, [k8s.io/common](https://github.com/kubernetes/common) |
| 28 | +and [k8s.io/utils](https://github.com/kubernetes/utils). Once it is done, we can |
| 29 | +eventually switch to those packages and drop this directory. |
0 commit comments