func getForegroundOptions() metav1.DeleteOptions { … }
func getOrphanOptions() metav1.DeleteOptions { … }
func getPropagateOrphanOptions() metav1.DeleteOptions { … }
func getNonOrphanOptions() metav1.DeleteOptions { … }
const garbageCollectedPodName …
const independentPodName …
const oneValidOwnerPodName …
const toBeDeletedRCName …
const remainingRCName …
var testCert …
func newPod(podName, podNamespace string, ownerReferences []metav1.OwnerReference) *v1.Pod { … }
func newOwnerRC(name, namespace string) *v1.ReplicationController { … }
func newCRDInstance(definition *apiextensionsv1.CustomResourceDefinition, namespace, name string) *unstructured.Unstructured { … }
func newConfigMap(namespace, name string) *v1.ConfigMap { … }
func link(t *testing.T, owner, dependent metav1.Object) { … }
func createRandomCustomResourceDefinition(
t *testing.T, apiExtensionClient apiextensionsclientset.Interface,
dynamicClient dynamic.Interface,
namespace string,
) (*apiextensionsv1.CustomResourceDefinition, dynamic.ResourceInterface) { … }
type testContext …
func setup(t *testing.T, workerCount int) *testContext { … }
func setupWithServer(t *testing.T, result *kubeapiservertesting.TestServer, workerCount int) *testContext { … }
func createNamespaceOrDie(name string, c clientset.Interface, t *testing.T) *v1.Namespace { … }
func deleteNamespaceOrDie(name string, c clientset.Interface, t *testing.T) { … }
func TestCrossNamespaceReferencesWithWatchCache(t *testing.T) { … }
func TestCrossNamespaceReferencesWithoutWatchCache(t *testing.T) { … }
func testCrossNamespaceReferences(t *testing.T, watchCache bool) { … }
func TestCascadingDeletion(t *testing.T) { … }
func TestCreateWithNonExistentOwner(t *testing.T) { … }
func setupRCsPods(t *testing.T, gc *garbagecollector.GarbageCollector, clientSet clientset.Interface, nameSuffix, namespace string, initialFinalizers []string, options metav1.DeleteOptions, wg *sync.WaitGroup, rcUIDs chan types.UID, errs chan string) { … }
func verifyRemainingObjects(t *testing.T, clientSet clientset.Interface, namespace string, rcNum, podNum int) (bool, error) { … }
func TestStressingCascadingDeletion(t *testing.T) { … }
func TestOrphaning(t *testing.T) { … }
func TestSolidOwnerDoesNotBlockWaitingOwner(t *testing.T) { … }
func TestNonBlockingOwnerRefDoesNotBlock(t *testing.T) { … }
func TestDoubleDeletionWithFinalizer(t *testing.T) { … }
func TestBlockingOwnerRefDoesBlock(t *testing.T) { … }
func TestCustomResourceCascadingDeletion(t *testing.T) { … }
func TestMixedRelationships(t *testing.T) { … }
func TestCRDDeletionCascading(t *testing.T) { … }
func testCRDDeletion(t *testing.T, ctx *testContext, ns *v1.Namespace, definition *apiextensionsv1.CustomResourceDefinition, resourceClient dynamic.ResourceInterface) { … }
func TestCascadingDeleteOnCRDConversionFailure(t *testing.T) { … }