[AliCloud] Add cluster name and bug fix (#412)
* [AliCloud] add tag ClusterName for different k8s cluster * [AliCloud] BugFix: vk get wrong pod ip * update serverless kubernetes help doc link
This commit is contained in:
@@ -15,6 +15,7 @@ type providerConfig struct {
|
||||
Pods string
|
||||
VSwitch string
|
||||
SecureGroup string
|
||||
ClusterName string
|
||||
}
|
||||
|
||||
func (p *ECIProvider) loadConfig(r io.Reader) error {
|
||||
@@ -47,5 +48,9 @@ func (p *ECIProvider) loadConfig(r io.Reader) error {
|
||||
if p.operatingSystem == "" {
|
||||
p.operatingSystem = providers.OperatingSystemLinux
|
||||
}
|
||||
p.clusterName = config.ClusterName
|
||||
if p.clusterName == "" {
|
||||
p.clusterName = "default"
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user