const testNamespace …
const testClientUsername …
const mutation …
const validation …
type admissionTestExpectationHolder …
type testContext …
type testFunc …
var defaultResourceFuncs …
var defaultSubresourceFuncs …
var customTestFuncs …
var admissionExemptResources …
var parentResources …
var stubDataOverrides …
type webhookOptions …
type holder …
func (h *holder) reset(t *testing.T) { … }
func (h *holder) expect(gvr schema.GroupVersionResource, gvk, optionsGVK schema.GroupVersionKind, operation v1beta1.Operation, name, namespace string, object, oldObject, options bool) { … }
type admissionRequest …
func (h *holder) record(version string, phase string, converted bool, request *admissionRequest) { … }
func (h *holder) verify(t *testing.T) { … }
func (h *holder) verifyRequest(webhookOptions webhookOptions, request *admissionRequest) error { … }
func (h *holder) verifyObject(converted bool, obj runtime.Object) error { … }
func (h *holder) verifyOptions(options runtime.Object) error { … }
func getTestFunc(gvr schema.GroupVersionResource, verb string) testFunc { … }
func getStubObj(gvr schema.GroupVersionResource, resource metav1.APIResource) (*unstructured.Unstructured, error) { … }
func createOrGetResource(client dynamic.Interface, gvr schema.GroupVersionResource, resource metav1.APIResource) (*unstructured.Unstructured, error) { … }
func gvr(group, version, resource string) schema.GroupVersionResource { … }
func gvk(group, version, kind string) schema.GroupVersionKind { … }
var gvkCreateOptions …
var gvkUpdateOptions …
var gvkDeleteOptions …
func shouldTestResource(gvr schema.GroupVersionResource, resource metav1.APIResource) bool { … }
func shouldTestResourceVerb(gvr schema.GroupVersionResource, resource metav1.APIResource, verb string) bool { … }
func testResourceCreate(c *testContext) { … }
func testResourceUpdate(c *testContext) { … }
func testResourcePatch(c *testContext) { … }
func testResourceDelete(c *testContext) { … }
func testResourceDeletecollection(c *testContext) { … }
func getParentGVR(gvr schema.GroupVersionResource) schema.GroupVersionResource { … }
func testTokenCreate(c *testContext) { … }
func testSubresourceUpdate(c *testContext) { … }
func testSubresourcePatch(c *testContext) { … }
func unimplemented(c *testContext) { … }
func testNamespaceDelete(c *testContext) { … }
func testDeploymentRollback(c *testContext) { … }
func testPodConnectSubresource(c *testContext) { … }
func testPodBindingEviction(c *testContext) { … }
func testSubresourceProxy(c *testContext) { … }
func testPruningRandomNumbers(c *testContext) { … }