Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
set api NetworkPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
Yongli Chen committed Jun 12, 2018
1 parent 9995c58 commit fd63aa4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/api/convertertoapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,8 @@ func setVlabsKubernetesDefaults(vp *vlabs.Properties, api *OrchestratorProfile)
} else if vp.OrchestratorProfile.KubernetesConfig.NetworkPolicy == NetworkPolicyAzure {
if !common.IsKubernetesVersionGe(vp.OrchestratorProfile.OrchestratorVersion, "1.8.0") {
api.KubernetesConfig.NetworkPolicy = ""
} else {
api.KubernetesConfig.NetworkPolicy = vp.OrchestratorProfile.KubernetesConfig.NetworkPolicy
}
} else {
api.KubernetesConfig.NetworkPlugin = vp.OrchestratorProfile.KubernetesConfig.NetworkPlugin
Expand Down

0 comments on commit fd63aa4

Please sign in to comment.