Merge pull request #13786 from socaa/hpa-test

Horizontal Pod Autoscaler is deleted along with namespace
This commit is contained in:
Marcin Wielgus 2015-09-18 12:22:38 +02:00
commit 0f8cc8926f

View File

@ -203,7 +203,6 @@ func (rc *ResourceConsumer) CleanUp() {
rc.stopMem <- 0
expectNoError(DeleteRC(rc.framework.Client, rc.framework.Namespace.Name, rc.name))
expectNoError(rc.framework.Client.Services(rc.framework.Namespace.Name).Delete(rc.name))
expectNoError(rc.framework.Client.Experimental().HorizontalPodAutoscalers(rc.framework.Namespace.Name).Delete(rc.name, api.NewDeleteOptions(0)))
}
func runServiceAndRCForResourceConsumer(c *client.Client, ns, name string, replicas int, cpuLimitMillis, memLimitMb int64) {