k8s.io/apimachinery v0.0.0-20191128180518-03184f823e28
Basename is uppercase README.mdBridge interface management reference
SHA-25624d450f27f39d3cfd2d05a7001ffb2d52294980f066b28b8b669d5bddfc30d99
Evidence
1# apimachinery
2
3Scheme, typing, encoding, decoding, and conversion packages for Kubernetes and Kubernetes-like API objects.
4
5
6## Purpose
7
8This library is a shared dependency for servers and clients to work with Kubernetes API infrastructure without direct
9type dependencies. Its first consumers are `k8s.io/kubernetes`, `k8s.io/client-go`, and `k8s.io/apiserver`.
10
11
12## Compatibility
13
14There are *NO compatibility guarantees* for this repository. It is in direct support of Kubernetes, so branches
15will track Kubernetes and be compatible with that repo. As we more cleanly separate the layers, we will review the
16compatibility guarantee.
17
18
19## Where does it come from?
20
21`apimachinery` is synced from https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery.
22Code changes are made in that location, merged into `k8s.io/kubernetes` and later synced here.
23
24
25## Things you should *NOT* do
26
27 1. Add API types to this repo. This is for the machinery, not for the types.
28 2. Directly modify any files under `pkg` in this repo. Those are driven from `k8s.io/kubernetes/staging/src/k8s.io/apimachinery`.
29 3. Expect compatibility. This repo is direct support of Kubernetes and the API isn't yet stable enough for API guarantees.
1/*
2Copyright 2017 The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2 …
12:42… IND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17package apitesting
18
19import (
20 "fmt"
21 "mime"
22 "os"
23
24 "k8s.io/apimachinery/pkg/runtime"
25 "k8s.io/apimachinery/pkg/runtime/schema"
26 runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
27 "k8s.io/apimachinery/pkg/runtime/serializer/recognizer"
28)
29
⋯6 lines
68:24… dec(gvs...)
69}
70
71func init() {
72 var err error
73 if apiMediaType := os.Getenv("KUBE_TEST_API_TYPE"); len(apiMediaType) > 0 {
74 testCodecMediaType, _, err = mime.ParseMediaType(apiMediaType)
75 if err != nil …
12:42… IND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17package fuzzer
18
19import (
20 "reflect"
21)
22
23// ValueFuzz recursively changes all basic type values in an object. Any kind of references will not
24// be touch, i.e. the …
Showing the top 5 files — 6 more files (51 regions) not shown.
No evidence locations were recorded for this file. Raw result