Skip to content

Commit

Permalink
Switch to use non-deprecated featuregate.Registry funcs (#6486)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan <bogdandrutu@gmail.com>

Signed-off-by: Bogdan <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu authored Nov 8, 2022
1 parent 2b03abd commit 7ec6afb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions confmap/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ const expandEnabled = "confmap.expandEnabled"

func init() {
// TODO: Remove this if by v0.64.0 no complains from distros.
featuregate.GetRegistry().MustRegister(featuregate.Gate{
ID: expandEnabled,
Description: "controls whether expending embedded external config providers URIs",
Enabled: true,
})
featuregate.GetRegistry().MustRegisterID(
expandEnabled,
featuregate.Beta,
featuregate.WithRegisterDescription("controls whether expending embedded external config providers URIs"),
)
}

// Resolver resolves a configuration as a Conf.
Expand Down

0 comments on commit 7ec6afb

Please sign in to comment.