Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
pkg/platform/aks: add NewConfig function to align with other platforms
Browse files Browse the repository at this point in the history
As a preparation for solving #992.

Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
  • Loading branch information
invidian committed Oct 29, 2020
1 parent 053334e commit dbd08c6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/platform/aks/aks.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,16 @@ const (

// init registers AKS as a platform.
func init() { //nolint:gochecknoinits
c := &config{
platform.Register(name, NewConfig())
}

// NewConfig() returns new AKS platform configuration with default values set.
func NewConfig() *config {
return &config{
Location: "West Europe",
ManageResourceGroup: true,
KubernetesVersion: kubernetesVersion,
}

platform.Register(name, c)
}

// LoadConfig loads configuration values into the config struct from given HCL configuration.
Expand Down

0 comments on commit dbd08c6

Please sign in to comment.