Skip to content

Commit

Permalink
Add adminpassword
Browse files Browse the repository at this point in the history
  • Loading branch information
willie-yao committed Nov 7, 2023
1 parent 85432a4 commit a7d77a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions azure/services/managedclusters/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
infrav1 "sigs.k8s.io/cluster-api-provider-azure/api/v1beta1"
"sigs.k8s.io/cluster-api-provider-azure/azure"
"sigs.k8s.io/cluster-api-provider-azure/azure/converters"
"sigs.k8s.io/cluster-api-provider-azure/util/generators"
"sigs.k8s.io/cluster-api-provider-azure/util/tele"
)

Expand Down Expand Up @@ -345,6 +346,7 @@ func (s *ManagedClusterSpec) Parameters(ctx context.Context, existing interface{
},
WindowsProfile: &armcontainerservice.ManagedClusterWindowsProfile{
AdminUsername: ptr.To(azure.DefaultAKSUserName),
AdminPassword: ptr.To(generators.SudoRandomPassword(123)),
},
},
}
Expand Down

0 comments on commit a7d77a3

Please sign in to comment.