From 7ec6afb76005491ce06af1adada125a70c260d03 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Mon, 7 Nov 2022 17:14:46 -0800 Subject: [PATCH] Switch to use non-deprecated featuregate.Registry funcs (#6486) Signed-off-by: Bogdan Signed-off-by: Bogdan --- confmap/resolver.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/confmap/resolver.go b/confmap/resolver.go index 7c2ea7689ac8..c2754b627956 100644 --- a/confmap/resolver.go +++ b/confmap/resolver.go @@ -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.