Configuring the config with cli-config set does not modify the configuration of the instantiated Harbor API client - it only modifies the running config. Should we reload the client after every invocation of this command?
Example:
> cli-config get harbor.url
https://example.com/api/v2.0.
> cli-config set --session harbor.url https://demo.goharbor.io/api/v2.0
Set harbor.url to 'https://demo.goharbor.io/api/v2.0' ✅
> cli-config get harbor.url
https://demo.goharbor.io/api/v2.0
> user get pederhan
[ERROR] 403 Forbidden: GET https://example.com/api/v2.0. sure you have permissions to access the resource.
The API URL has not been updared on the client despite being updated in the config.
Configuring the config with
cli-config setdoes not modify the configuration of the instantiated Harbor API client - it only modifies the running config. Should we reload the client after every invocation of this command?Example:
The API URL has not been updared on the client despite being updated in the config.