Skip to content

Commit 73a301c

Browse files
authored
Merge pull request #4772 from gaurav1086/ValidatePluginConfig_fix_range_iterator_issue
[cri/config] : fix range iterator issue in ValidatePluginConfig
2 parents efad13f + 071a185 commit 73a301c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/cri/config/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ func ValidatePluginConfig(ctx context.Context, c *PluginConfig) error {
352352
c.Registry.Configs = make(map[string]RegistryConfig)
353353
}
354354
for endpoint, auth := range c.Registry.Auths {
355+
auth := auth
355356
config := c.Registry.Configs[endpoint]
356357
config.Auth = &auth
357358
c.Registry.Configs[endpoint] = config

0 commit comments

Comments
 (0)