Group every two services into one in load test

This commit is contained in:
Shyam Jeedigunta
2017-07-14 00:12:47 +02:00
parent 8e5584fe95
commit 26006af4e0
2 changed files with 20 additions and 2 deletions

View File

@@ -108,6 +108,7 @@ type RunObjectConfig interface {
SetClient(clientset.Interface)
SetInternalClient(internalclientset.Interface)
GetReplicas() int
GetLabelValue(string) (string, bool)
}
type RCConfig struct {
@@ -500,6 +501,11 @@ func (config *RCConfig) GetReplicas() int {
return config.Replicas
}
func (config *RCConfig) GetLabelValue(key string) (string, bool) {
value, found := config.Labels[key]
return value, found
}
func (config *RCConfig) create() error {
dnsDefault := v1.DNSDefault
if config.DNSPolicy == nil {