var scheme …
var codecs …
func init() { … }
type testPatchType …
type TestPatchSubType …
func (obj *testPatchType) DeepCopyObject() runtime.Object { … }
func TestPatchAnonymousField(t *testing.T) { … }
func TestLimitedReadBody(t *testing.T) { … }
func TestStrategicMergePatchInvalid(t *testing.T) { … }
func TestJSONPatch(t *testing.T) { … }
func TestPatchCustomResource(t *testing.T) { … }
type testPatcher …
func (p *testPatcher) New() runtime.Object { … }
func (p *testPatcher) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error) { … }
func (p *testPatcher) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error) { … }
type testNamer …
func (p *testNamer) Namespace(req *http.Request) (namespace string, err error) { … }
func (p *testNamer) Name(req *http.Request) (namespace, name string, err error) { … }
func (p *testNamer) ObjectName(obj runtime.Object) (namespace, name string, err error) { … }
type patchTestCase …
func (tc *patchTestCase) Run(t *testing.T) { … }
func TestNumberConversion(t *testing.T) { … }
func TestPatchResourceNumberConversion(t *testing.T) { … }
func TestPatchResourceWithVersionConflict(t *testing.T) { … }
func TestPatchResourceWithStaleVersionConflict(t *testing.T) { … }
func TestPatchResourceWithRacingVersionConflict(t *testing.T) { … }
func TestPatchResourceWithConflict(t *testing.T) { … }
func TestPatchWithAdmissionRejection(t *testing.T) { … }
func TestPatchWithVersionConflictThenAdmissionFailure(t *testing.T) { … }
func TestHasUID(t *testing.T) { … }
func setTcPod(tcPod *example.Pod, name string, namespace string, uid types.UID, resourceVersion string, apiVersion string, activeDeadlineSeconds *int64, nodeName string) { … }
func (f mutateObjectUpdateFunc) Handles(operation admission.Operation) bool { … }
func (f mutateObjectUpdateFunc) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) (err error) { … }
func TestTransformDecodeErrorEnsuresBadRequestError(t *testing.T) { … }
var _ …
type alwaysErrorTyper …
func (alwaysErrorTyper) ObjectKinds(runtime.Object) ([]schema.GroupVersionKind, bool, error) { … }
func (alwaysErrorTyper) Recognizes(gvk schema.GroupVersionKind) bool { … }
func TestUpdateToCreateOptions(t *testing.T) { … }
func TestPatchToUpdateOptions(t *testing.T) { … }
func TestDedupOwnerReferences(t *testing.T) { … }
func TestParseYAMLWarnings(t *testing.T) { … }