From 34b662c3e12af1638545b080be62f6e6b75391a3 Mon Sep 17 00:00:00 2001 From: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com> Date: Mon, 29 Sep 2025 13:48:23 +0300 Subject: [PATCH] Chore: Deprecate direct access to Cfg (#111442) Deprecate direct access to Cfg --- pkg/setting/setting.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/setting/setting.go b/pkg/setting/setting.go index d91a9c82a22..50cecb688bb 100644 --- a/pkg/setting/setting.go +++ b/pkg/setting/setting.go @@ -78,6 +78,8 @@ var ( ) // TODO move all global vars to this struct +// Deprecated: Direct access to Cfg will be disallowed in a future release. +// Use the ConfigProvider interface (see pkg/configprovider/configprovider.go) instead. type Cfg struct { Target []string Raw *ini.File