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

Commit

Permalink
pkg/components/flatcar-linux-update-operator: add NewConfig function
Browse files Browse the repository at this point in the history
To be consistent with other components.

Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
  • Loading branch information
invidian committed Dec 2, 2020
1 parent 5fd4800 commit 2c4e78b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/components/flatcar-linux-update-operator/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ const (
)

func init() {
components.Register(Name, &component{})
components.Register(Name, NewConfig())
}

// NewConfig returns new Flatcar Linux Update Operator component configuration with default values set.
//
//nolint:golint
func NewConfig() *component {
return &component{}
}

type component struct{}
Expand Down

0 comments on commit 2c4e78b

Please sign in to comment.