refactor: remove unused ctx from resolveAllowedNetworkIDs function and related tests

This commit is contained in:
Nirmal N R
2026-04-02 10:54:38 +05:30
parent db330663bd
commit 8997b0e802
2 changed files with 4 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ func (d dediRegistryProvider) New(ctx context.Context, config map[string]string)
}
}
allowedNetworkIDs, err := resolveAllowedNetworkIDs(ctx, config)
allowedNetworkIDs, err := resolveAllowedNetworkIDs(config)
if err != nil {
return nil, nil, err
}
@@ -67,7 +67,7 @@ func parseAllowedNetworkIDs(raw string) []string {
return networkIDs
}
func resolveAllowedNetworkIDs(ctx context.Context, config map[string]string) ([]string, error) {
func resolveAllowedNetworkIDs(config map[string]string) ([]string, error) {
if rawParentNamespaces, exists := config["allowedParentNamespaces"]; exists && rawParentNamespaces != "" {
if _, hasAllowedNetworkIDs := config["allowedNetworkIDs"]; !hasAllowedNetworkIDs {
return nil, fmt.Errorf("config key 'allowedParentNamespaces' is no longer supported; use 'allowedNetworkIDs' with full network IDs")