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

WIP - Azure CNI by default for Windows vlabs api #2105

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/api/vlabs/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,5 @@ const (
// DefaultNetworkPolicy defines the network policy to use by default
DefaultNetworkPolicy = "azure"
// DefaultNetworkPolicyWindows defines the network policy to use by default for clusters with Windows agent pools
DefaultNetworkPolicyWindows = "none"
DefaultNetworkPolicyWindows = "azure"
)
2 changes: 1 addition & 1 deletion pkg/api/vlabs/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ func (a *Properties) validateNetworkPolicy() error {
}

// Temporary safety check, to be removed when Windows support is added.
if (networkPolicy == "calico" || networkPolicy == "azure") && a.HasWindows() {
if (networkPolicy == "calico") && a.HasWindows() {
return fmt.Errorf("networkPolicy '%s' is not supporting windows agents", networkPolicy)
}

Expand Down