Horizontal Pod Autoscaler is deleted along with namespace

This commit is contained in:
Ewa Socala 2015-09-10 12:06:05 +02:00
parent 73d71d6a67
commit d6d199ddab

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) {