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

..03-May-2022-

.github/H18-May-2021-32

Godeps/H18-May-2021-365360

admission/H18-May-2021-4,8984,176

admissionregistration/H18-May-2021-10,3228,653

apiserverinternal/v1alpha1/H18-May-2021-2,2961,961

apps/H18-May-2021-31,77627,887

authentication/H18-May-2021-5,5054,723

authorization/H18-May-2021-10,6019,369

autoscaling/H18-May-2021-24,40521,708

batch/H18-May-2021-7,2196,148

certificates/H18-May-2021-5,8154,882

coordination/H18-May-2021-2,8632,292

core/v1/H18-May-2021-88,74479,962

discovery/H18-May-2021-6,2885,344

events/H18-May-2021-3,9113,249

extensions/H18-May-2021-20,67818,259

flowcontrol/H18-May-2021-14,66612,779

imagepolicy/H18-May-2021-1,8221,545

networking/H18-May-2021-12,90911,181

node/H18-May-2021-6,0335,062

policy/H18-May-2021-9,6108,353

rbac/H18-May-2021-13,20011,481

scheduling/H18-May-2021-3,3992,598

storage/H18-May-2021-17,94115,315

testdata/H18-May-2021-294,442293,956

CONTRIBUTING.mdH A D18-May-2021728 84

LICENSEH A D18-May-202111.1 KiB203169

OWNERSH A D18-May-2021331 1614

README.mdH A D18-May-20211.9 KiB4429

SECURITY_CONTACTSH A D18-May-2021563 1816

code-of-conduct.mdH A D18-May-2021148 42

go.modH A D18-May-2021250 149

go.sumH A D18-May-202120.3 KiB214213

roundtrip_test.goH A D18-May-20215.1 KiB148122

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