[Azure] Filters service account secret volume mount for Windows (#60)

* filters the SA secret volume for windows

* make it a map

* bettern go convention
This commit is contained in:
chshou
2018-01-22 11:19:53 -08:00
committed by Robbie Zhang
parent 9eb0cf535f
commit 8c0345edcf
2 changed files with 58 additions and 12 deletions

View File

@@ -64,6 +64,9 @@ func New(nodeName, operatingSystem, namespace, kubeConfig, taint, provider, prov
rm := manager.NewResourceManager(clientset)
daemonEndpointPortEnv := os.Getenv("KUBELET_PORT")
if daemonEndpointPortEnv == "" {
daemonEndpointPortEnv = "10250"
}
i64value, err := strconv.ParseInt(daemonEndpointPortEnv, 10, 32)
daemonEndpointPort := int32(i64value)