• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/H13-Jan-2021-32

Godeps/H13-Jan-2021-345340

admission/H13-Jan-2021-4,9124,194

admissionregistration/H13-Jan-2021-10,3688,713

apiserverinternal/v1alpha1/H13-Jan-2021-2,3141,979

apps/H13-Jan-2021-31,81227,967

authentication/H13-Jan-2021-5,5474,765

authorization/H13-Jan-2021-10,6859,453

autoscaling/H13-Jan-2021-24,59721,900

batch/H13-Jan-2021-7,5156,335

certificates/H13-Jan-2021-5,8534,920

coordination/H13-Jan-2021-2,8812,310

core/v1/H13-Jan-2021-89,04880,355

discovery/H13-Jan-2021-5,2584,403

events/H13-Jan-2021-3,9153,259

extensions/H13-Jan-2021-20,69418,305

flowcontrol/H13-Jan-2021-14,79812,911

imagepolicy/H13-Jan-2021-1,8341,557

networking/H13-Jan-2021-12,06010,427

node/H13-Jan-2021-6,0725,101

policy/H13-Jan-2021-7,4556,585

rbac/H13-Jan-2021-13,30811,589

scheduling/H13-Jan-2021-3,4172,616

storage/H13-Jan-2021-16,84914,494

testdata/H13-Jan-2021-202,957202,534

CONTRIBUTING.mdH A D13-Jan-2021728 84

LICENSEH A D13-Jan-202111.1 KiB203169

OWNERSH A D13-Jan-2021331 1614

README.mdH A D13-Jan-20211.9 KiB4429

SECURITY_CONTACTSH A D13-Jan-2021563 1816

code-of-conduct.mdH A D13-Jan-2021148 42

go.modH A D13-Jan-2021250 149

go.sumH A D13-Jan-202118.8 KiB199198

roundtrip_test.goH A D13-Jan-20214.8 KiB140114

README.md

1# api
2
3Schema of the external API types that are served by the Kubernetes API server.
4
5## Purpose
6
7This library is the canonical location of the Kubernetes API definition. Most likely interaction with this repository is as a dependency of client-go.
8
9It is published separately to avoid diamond dependency problems for users who
10depend on more than one of `k8s.io/client-go`, `k8s.io/apimachinery`,
11`k8s.io/apiserver`...
12
13## Recommended Use
14
15We recommend using the go types in this repo. You may serialize them directly to
16JSON.
17
18If you want to store or interact with proto-formatted Kubernetes API objects, we
19recommend using the "official" serialization stack in `k8s.io/apimachinery`.
20Directly serializing these types to proto will not result in data that matches
21the wire format or is compatible with other kubernetes ecosystem tools. The
22reason is that the wire format includes a magic prefix and an envelope proto.
23Please see:
24https://kubernetes.io/docs/reference/using-api/api-concepts/#protobuf-encoding
25
26For the same reason, we do not recommend embedding these proto objects within
27your own proto definitions. It is better to store Kubernetes objects as byte
28arrays, in the wire format, which is self-describing. This permits you to use
29either JSON or binary (proto) wire formats without code changes. It will be
30difficult for you to operate on both Custom Resources and built-in types
31otherwise.
32
33## Compatibility
34
35Branches track Kubernetes branches and are compatible with that repo.
36
37## Where does it come from?
38
39`api` is synced from https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/api. Code changes are made in that location, merged into `k8s.io/kubernetes` and later synced here.
40
41## Things you should *NOT* do
42
431. https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/api is synced to k8s.io/api. All changes must be made in the former. The latter is read-only.
44