[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:
shidao-ytt
2018-11-27 03:08:37 +08:00
committed by Robbie Zhang
parent f07daf494b
commit 688c10fa8b
4 changed files with 25 additions and 6 deletions

View File

@@ -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
}