Skip to content

Commit

Permalink
Merge pull request #10452 from aristosvo/fix-windows-password
Browse files Browse the repository at this point in the history
Fix `kubernetes_cluster` acctest by changing length of Windows Profile password
  • Loading branch information
tombuildsstuff authored Feb 3, 2021
2 parents 57f874e + acc5547 commit e40f9c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ resource "azurerm_kubernetes_cluster" "test" {
windows_profile {
admin_username = "azureuser"
admin_password = "P@55W0rd1234!"
admin_password = "P@55W0rd1234!h@2h1C0rP"
}
# the default node pool /has/ to be Linux agents - Windows agents can be added via the node pools resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ func resourceKubernetesCluster() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Sensitive: true,
ValidateFunc: validation.StringIsNotEmpty,
ValidateFunc: validation.StringLenBetween(14, 123),
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/kubernetes_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ A `windows_profile` block supports the following:

* `admin_username` - (Required) The Admin Username for Windows VMs.

* `admin_password` - (Required) The Admin Password for Windows VMs.
* `admin_password` - (Required) The Admin Password for Windows VMs. Length must be between 14 and 123 characters.


## Attributes Reference
Expand Down

0 comments on commit e40f9c0

Please sign in to comment.