feat: support per-remote upstream timeouts #9
Reference in New Issue
Block a user
Delete Branch "benvin/remote-upstream-timeouts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds the per-remote upstream timeout fields introduced server-side in artifactapi PR #83.
Why
The artifactapi server now lets each remote override the upstream dial / TLS-handshake / response-header timeouts (seconds;
0= server default). The provider needs to manage these so they can be set via Terraform.Changes
remoteAPImodel:upstream_dial_timeout,upstream_tls_timeout,upstream_response_header_timeout.artifactapi_remote_*resource: three optional/computedInt64attributes (default0), wired throughmodelToAPI/apiToModel.artifactapi_remotedata source: same three computed attributes + Read mapping.Validation
make test(unit,-race) passes.terraform applysetupstream_dial_timeout=7/upstream_response_header_timeout=25; the server persisted them; a follow-upterraform planreported no drift.Depends on
artifactapi server PR #83 (the timeout columns/API). Merge/release that first.