mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 21:53:52 +00:00
Group every two services into one in load test
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user