Context
Our current deployments operate in restricted, high-latency, and low-bandwidth network environments. During operations such as proxy-caching or large image pulls from upstream registries, we are observing frequent failures.
Problem:
The Harbor Registry component uses a hardcoded default of 30 seconds for its internal HTTP client timeout. In our specific network conditions, this window is insufficient, leading to context canceled or timeout errors during the proxy-cache process.
Proposed Solution:
Introduce a configurable parameter in the values.yaml to allow for the dynamic setting of the REGISTRY_HTTP_CLIENT_TIMEOUT environment variable within the Registry deployment template.
Proposed Key: registry.httpClientTimeout
Default Value: 30
Implementation: Inject the value into the registry deployment container spec as an environment variable.