// ScaleHTTPBIN scales the number of HTTPBIN pods to desired.
ScaleHTTPBIN scales the number of HTTPBIN pods to desired.
// ScaleHTTPBIN scales the number of HTTPBIN pods to desired .
func (s *Scaffold) ScaleHTTPBIN(desired int) error {
	httpbinDeployment := fmt.Sprintf(_httpbinDeploymentTemplate, desired)
	if err := k8s.KubectlApplyFromStringE(s.t, s.kubectlOptions, httpbinDeployment); err != nil {
		return err
	}
	if err := k8s.WaitUntilNumPodsCreatedE(s.t, s.kubectlOptions, s.labelSelector("app=httpbin-deployment-e2e-test"), desired, 5, 5*time.Second); err != nil {
		return err
	}
	return nil
}
func ( s * Scaffold ) ScaleHTTPBIN ( desired int ) error { httpbinDeployment := fmt . Sprintf ( _httpbinDeploymentTemplate , desired ) if err := k8s . KubectlApplyFromStringE ( s . t , s . kubectlOptions , httpbinDeployment ) ; err != nil { return err } if err := k8s . WaitUntilNumPodsCreatedE ( s . t , s . kubectlOptions , s . labelSelector ( " " ) , desired , 5 , 5 * time . Second ) ; err != nil { return err } return nil }
ScaleHTTPBIN scales the number of HTTPBIN pods to desired.
ScaleHTTPBIN scales the number of HTTPBIN pods to desired .