@@ -30,8 +30,8 @@ import (
3030 "github.com/deckhouse/deckhouse-cli/pkg/registry/service"
3131)
3232
33- func (r * PluginsCommand ) initPluginServices () {
34- r .logger .Debug ("Initializing plugin services" )
33+ func (pc * PluginsCommand ) initPluginServices () {
34+ pc .logger .Debug ("Initializing plugin services" )
3535
3636 // Extract registry host from the source registry repo
3737 // SourceRegistryRepo can be:
@@ -48,22 +48,22 @@ func (r *PluginsCommand) initPluginServices() {
4848 testRef := registryHost
4949 if ! containsSlash (registryHost ) {
5050 // Just a hostname, use it as-is
51- r .logger .Debug ("Using hostname as registry" , slog .String ("host" , registryHost ))
51+ pc .logger .Debug ("Using hostname as registry" , slog .String ("host" , registryHost ))
5252 } else {
5353 // Has path components, parse to extract registry
5454 ref , err := name .ParseReference (registryHost )
5555 if err == nil {
5656 registryHost = ref .Context ().RegistryStr ()
57- r .logger .Debug ("Extracted registry from path" ,
57+ pc .logger .Debug ("Extracted registry from path" ,
5858 slog .String ("original" , testRef ),
5959 slog .String ("extracted" , registryHost ))
6060 }
6161 }
6262 }
6363
64- auth := getPluginRegistryAuthProvider (registryHost , r .logger )
64+ auth := getPluginRegistryAuthProvider (registryHost , pc .logger )
6565
66- r .logger .Debug ("Creating plugin registry client" ,
66+ pc .logger .Debug ("Creating plugin registry client" ,
6767 slog .String ("registry_host" , registryHost ),
6868 slog .Bool ("insecure" , d8flags .Insecure ),
6969 slog .Bool ("tls_skip_verify" , d8flags .TLSSkipVerify ))
@@ -73,24 +73,24 @@ func (r *PluginsCommand) initPluginServices() {
7373 Auth : auth ,
7474 Insecure : d8flags .Insecure ,
7575 TLSSkipVerify : d8flags .TLSSkipVerify ,
76- Logger : r .logger .Named ("registry-client" ),
76+ Logger : pc .logger .Named ("registry-client" ),
7777 })
7878
7979 // Build scoped client using chained WithSegment calls
8080 // Example: registry.deckhouse.io -> deckhouse -> ee -> modules
81- r .pluginRegistryClient = baseClient
81+ pc .pluginRegistryClient = baseClient
8282
83- r .logger .Debug ("Creating plugin service with scoped client" ,
83+ pc .logger .Debug ("Creating plugin service with scoped client" ,
8484 slog .String ("scope_path" , strings .TrimPrefix (sourceRepo , sourceRepo )))
8585
8686 registryService := service .NewService (
87- r .pluginRegistryClient ,
88- r .logger .Named ("registry-service" ),
87+ pc .pluginRegistryClient ,
88+ pc .logger .Named ("registry-service" ),
8989 )
9090
91- r .service = registryService .PluginService ()
91+ pc .service = registryService .PluginService ()
9292
93- r .logger .Debug ("Plugin services initialized successfully" )
93+ pc .logger .Debug ("Plugin services initialized successfully" )
9494}
9595
9696// containsSlash checks if a string contains a forward slash
0 commit comments