Skip to content

Commit

Permalink
feat: disabling windows updates by default (Azure#3073)
Browse files Browse the repository at this point in the history
* feat: disabling windows updates by default
  • Loading branch information
marosset authored and alexeldeib committed Apr 21, 2020
1 parent e401b4f commit dd24492
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/topics/clusterdefinitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,7 @@ https://{keyvaultname}.vault.azure.net:443/secrets/{secretName}/{version}
| adminUsername | yes | Username for the Windows adminstrator account created on each Windows node |
| adminPassword | yes | Password for the Windows adminstrator account created on each Windows node |
| csiProxyURL | no | Path to a package containing csi proxy binaries for Windows. |
| enableAutomaticUpdates | no | If set to `true` Windows Update will be configured to automatically apply updates on Windows nodes. Default: `false` |
| enableCSIProxy | no | If set to `true` the csi-proxy specified by `windowsProfile.csiProxyURL` will get installed during node provisioning. See [Windows Csi Proxy](csi-proxy-windows.md) for more details. |
| windowsPublisher | no | Publisher used to find Windows VM to deploy from marketplace. Default: `microsoft-aks` |
| windowsOffer | no | Offer used to find Windows VM to deploy from marketplace. Default: `aks-windows` |
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ const (
// https://docs.microsoft.com/en-us/azure/azure-subscription-service-limits#load-balancer.
DefaultMaximumLoadBalancerRuleCount = 250
// DefaultEnableAutomaticUpdates determines the aks-engine provided default for enabling automatic updates
DefaultEnableAutomaticUpdates = true
DefaultEnableAutomaticUpdates = false
// DefaultPreserveNodesProperties determines the aks-engine provided default for preserving nodes properties
DefaultPreserveNodesProperties = true
// DefaultEnableVMSSNodePublicIP determines the aks-engine provided default for enable VMSS node public IP
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3453,8 +3453,8 @@ func TestWindowsProfile(t *testing.T) {
}

update := w.GetEnableWindowsUpdate()
if !update {
t.Fatalf("Expected GetEnableWindowsUpdate() to equal default 'true', got %t", update)
if update {
t.Fatalf("Expected GetEnableWindowsUpdate() to equal default 'false', got %t", update)
}

autoGenerated := w.GetIsCredentialAutoGenerated()
Expand Down

0 comments on commit dd24492

Please sign in to comment.