type pdbStates …
var alwaysReady …
func (ps *pdbStates) Set(ctx context.Context, pdb *policy.PodDisruptionBudget) error { … }
func (ps *pdbStates) Get(key string) policy.PodDisruptionBudget { … }
func (ps *pdbStates) VerifyPdbStatus(t *testing.T, key string, disruptionsAllowed, currentHealthy, desiredHealthy, expectedPods int32, disruptedPodMap map[string]metav1.Time) { … }
func (ps *pdbStates) VerifyDisruptionAllowed(t *testing.T, key string, disruptionsAllowed int32) { … }
func (ps *pdbStates) VerifyNoStatusError(t *testing.T, key string) { … }
type disruptionController …
var customGVK …
func newFakeDisruptionController(ctx context.Context) (*disruptionController, *pdbStates) { … }
func newFakeDisruptionControllerWithTime(ctx context.Context, now time.Time) (*disruptionController, *pdbStates) { … }
func fooBar() map[string]string { … }
func newSel(labels map[string]string) *metav1.LabelSelector { … }
func newSelFooBar() *metav1.LabelSelector { … }
func newMinAvailablePodDisruptionBudget(t *testing.T, minAvailable intstr.IntOrString) (*policy.PodDisruptionBudget, string) { … }
func newMaxUnavailablePodDisruptionBudget(t *testing.T, maxUnavailable intstr.IntOrString) (*policy.PodDisruptionBudget, string) { … }
func updatePodOwnerToRc(t *testing.T, pod *v1.Pod, rc *v1.ReplicationController) { … }
func updatePodOwnerToRs(t *testing.T, pod *v1.Pod, rs *apps.ReplicaSet) { … }
func updatePodOwnerToSs(t *testing.T, pod *v1.Pod, ss *apps.StatefulSet) { … }
func newPod(t *testing.T, name string) (*v1.Pod, string) { … }
func newReplicationController(t *testing.T, size int32) (*v1.ReplicationController, string) { … }
func newDeployment(t *testing.T, size int32) (*apps.Deployment, string) { … }
func newReplicaSet(t *testing.T, size int32) (*apps.ReplicaSet, string) { … }
func newStatefulSet(t *testing.T, size int32) (*apps.StatefulSet, string) { … }
func update(t *testing.T, store cache.Store, obj interface{ … }
func add(t *testing.T, store cache.Store, obj interface{ … }
func TestNoSelector(t *testing.T) { … }
func TestUnavailable(t *testing.T) { … }
func TestIntegerMaxUnavailable(t *testing.T) { … }
func TestIntegerMaxUnavailableWithScaling(t *testing.T) { … }
func TestPercentageMaxUnavailableWithScaling(t *testing.T) { … }
func TestNakedPod(t *testing.T) { … }
func TestUnsupportedControllerPod(t *testing.T) { … }
func TestStatusForUnmanagedPod(t *testing.T) { … }
func TestTotalUnmanagedPods(t *testing.T) { … }
func TestReplicaSet(t *testing.T) { … }
func TestScaleResource(t *testing.T) { … }
func TestScaleFinderNoResource(t *testing.T) { … }
func TestMultipleControllers(t *testing.T) { … }
func TestReplicationController(t *testing.T) { … }
func TestStatefulSetController(t *testing.T) { … }
func TestTwoControllers(t *testing.T) { … }
func TestPDBNotExist(t *testing.T) { … }
func TestUpdateDisruptedPods(t *testing.T) { … }
func TestBasicFinderFunctions(t *testing.T) { … }
func TestDeploymentFinderFunction(t *testing.T) { … }
func TestUpdatePDBStatusRetries(t *testing.T) { … }
func TestInvalidSelectors(t *testing.T) { … }
func TestStalePodDisruption(t *testing.T) { … }
func TestKeepExistingPDBConditionDuringSync(t *testing.T) { … }
func waitForCacheCount(store cache.Store, n int) error { … }
func verifyEventEmitted(t *testing.T, dc *disruptionController, expectedEvent string) { … }