@@ -21,12 +21,12 @@ import (
21
21
prom "k8s.io/perf-tests/clusterloader2/pkg/prometheus/clients"
22
22
)
23
23
24
- type AKSProvider struct {
24
+ type AzureProvider struct {
25
25
features Features
26
26
}
27
27
28
- func NewAKSProvider (_ map [string ]string ) Provider {
29
- return & AKSProvider {
28
+ func NewAzureProvider (_ map [string ]string ) Provider {
29
+ return & AzureProvider {
30
30
features : Features {
31
31
SupportProbe : true ,
32
32
SupportImagePreload : true ,
@@ -40,30 +40,30 @@ func NewAKSProvider(_ map[string]string) Provider {
40
40
}
41
41
}
42
42
43
- func (p * AKSProvider ) Name () string {
44
- return AKSName
43
+ func (p * AzureProvider ) Name () string {
44
+ return AzureName
45
45
}
46
46
47
- func (p * AKSProvider ) Features () * Features {
47
+ func (p * AzureProvider ) Features () * Features {
48
48
return & p .features
49
49
}
50
50
51
- func (p * AKSProvider ) GetComponentProtocolAndPort (componentName string ) (string , int , error ) {
51
+ func (p * AzureProvider ) GetComponentProtocolAndPort (componentName string ) (string , int , error ) {
52
52
return getComponentProtocolAndPort (componentName )
53
53
}
54
54
55
- func (p * AKSProvider ) GetConfig () Config {
55
+ func (p * AzureProvider ) GetConfig () Config {
56
56
return Config {}
57
57
}
58
58
59
- func (p * AKSProvider ) RunSSHCommand (cmd , host string ) (string , string , int , error ) {
59
+ func (p * AzureProvider ) RunSSHCommand (cmd , host string ) (string , string , int , error ) {
60
60
return runSSHCommand (cmd , host )
61
61
}
62
62
63
- func (p * AKSProvider ) Metadata (_ clientset.Interface ) (map [string ]string , error ) {
63
+ func (p * AzureProvider ) Metadata (_ clientset.Interface ) (map [string ]string , error ) {
64
64
return nil , nil
65
65
}
66
66
67
- func (p * AKSProvider ) GetManagedPrometheusClient () (prom.Client , error ) {
67
+ func (p * AzureProvider ) GetManagedPrometheusClient () (prom.Client , error ) {
68
68
return nil , ErrNoManagedPrometheus
69
69
}
0 commit comments