kubernetes/pkg/controller/deployment/deployment_controller_test.go

var alwaysReady

var noTimestamp

func rs(name string, replicas int32, selector map[string]string, timestamp metav1.Time) *apps.ReplicaSet {}

func newRSWithStatus(name string, specReplicas, statusReplicas int32, selector map[string]string) *apps.ReplicaSet {}

func newDeployment(name string, replicas int32, revisionHistoryLimit *int32, maxSurge, maxUnavailable *intstr.IntOrString, selector map[string]string) *apps.Deployment {}

func newReplicaSet(d *apps.Deployment, name string, replicas int32) *apps.ReplicaSet {}

type fixture

func (f *fixture) expectGetDeploymentAction(d *apps.Deployment) {}

func (f *fixture) expectUpdateDeploymentStatusAction(d *apps.Deployment) {}

func (f *fixture) expectUpdateDeploymentAction(d *apps.Deployment) {}

func (f *fixture) expectCreateRSAction(rs *apps.ReplicaSet) {}

func newFixture(t testing.TB) *fixture {}

func (f *fixture) newController(ctx context.Context) (*DeploymentController, informers.SharedInformerFactory, error) {}

func (f *fixture) runExpectError(ctx context.Context, deploymentName string, startInformers bool) {}

func (f *fixture) run(ctx context.Context, deploymentName string) {}

func (f *fixture) run_(ctx context.Context, deploymentName string, startInformers bool, expectError bool) {}

func filterInformerActions(actions []core.Action) []core.Action {}

func TestSyncDeploymentCreatesReplicaSet(t *testing.T) {}

func TestSyncDeploymentDontDoAnythingDuringDeletion(t *testing.T) {}

func TestSyncDeploymentDeletionRace(t *testing.T) {}

// issue: https://github.com/kubernetes/kubernetes/issues/23218
func TestDontSyncDeploymentsWithEmptyPodSelector(t *testing.T) {}

func TestReentrantRollback(t *testing.T) {}

// TestPodDeletionEnqueuesRecreateDeployment ensures that the deletion of a pod
// will requeue a Recreate deployment iff there is no other pod returned from the
// client.
func TestPodDeletionEnqueuesRecreateDeployment(t *testing.T) {}

// TestPodDeletionDoesntEnqueueRecreateDeployment ensures that the deletion of a pod
// will not requeue a Recreate deployment iff there are other pods returned from the
// client.
func TestPodDeletionDoesntEnqueueRecreateDeployment(t *testing.T) {}

// TestPodDeletionPartialReplicaSetOwnershipEnqueueRecreateDeployment ensures that
// the deletion of a pod will requeue a Recreate deployment iff there is no other
// pod returned from the client in the case where a deployment has multiple replica
// sets, some of which have empty owner references.
func TestPodDeletionPartialReplicaSetOwnershipEnqueueRecreateDeployment(t *testing.T) {}

// TestPodDeletionPartialReplicaSetOwnershipDoesntEnqueueRecreateDeployment that the
// deletion of a pod will not requeue a Recreate deployment iff there are other pods
// returned from the client in the case where a deployment has multiple replica sets,
// some of which have empty owner references.
func TestPodDeletionPartialReplicaSetOwnershipDoesntEnqueueRecreateDeployment(t *testing.T) {}

func TestGetReplicaSetsForDeployment(t *testing.T) {}

func TestGetReplicaSetsForDeploymentAdoptRelease(t *testing.T) {}

func TestGetPodMapForReplicaSets(t *testing.T) {}

func TestAddReplicaSet(t *testing.T) {}

func TestAddReplicaSetOrphan(t *testing.T) {}

func TestUpdateReplicaSet(t *testing.T) {}

func TestUpdateReplicaSetOrphanWithNewLabels(t *testing.T) {}

func TestUpdateReplicaSetChangeControllerRef(t *testing.T) {}

func TestUpdateReplicaSetRelease(t *testing.T) {}

func TestDeleteReplicaSet(t *testing.T) {}

func TestDeleteReplicaSetOrphan(t *testing.T) {}

func BenchmarkGetPodMapForDeployment(b *testing.B) {}

func bumpResourceVersion(obj metav1.Object) {}

// generatePodFromRS creates a pod, with the input ReplicaSet's selector and its template
func generatePodFromRS(rs *apps.ReplicaSet) *v1.Pod {}