resource_remote: add mirrorlist attribute (rpm/deb/apk remotes) #18
Reference in New Issue
Block a user
Delete Branch "benvin/mirrorlist"
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?
Why
The artifactapi remotes API now accepts a
mirrorlist(extra upstream mirror base URLs) on remote rpm/deb/apk repos, load-balancingbase_url+mirrorlistwith failover. This provider exposes it so users can set it from Terraform. PR (c) of the mirrorlist feature.How
mirrorlistlist attribute to the remote resource schema and theartifactapi_remotedata source (read-only).json:"mirrorlist,omitempty"),modelToAPI/apiToModel, andpreserveListNullEmptySemantics(viareconcileOptionalLists) so null/empty distinction is kept and there is no perpetual diff.ValidateConfigimplementation raises a plan-time error ifmirrorlistis set on any non-rpm/deb/alpine remote; the API's 400 is the backstop.Optional and back-compat: omitting
mirrorlistis unchanged. Version bump/release intentionally deferred.