Add serve_stale, cache_repodata, sync_interval and parallel_fetch #37
Reference in New Issue
Block a user
Delete Branch "benvin/remote-cache-sync-fields"
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?
artifactapi v3.24/v3.25 added four remote/virtual fields. Its PUT is a full replace, so any field the provider leaves out resets on every apply.
serve_staleto all remotescache_repodatato remotes;trueonly on github_rpmsync_intervalto remotes, 0..2592000; >0 only on github_rpm/deb/alpine, checked at plan timeparallel_fetchto the virtual resourcesync_interval = 0explicitly set on a non-github remote is rejected at plan, but the API accepts 0 on any type (ValidateSyncIntervalonly errors when >0) → reject only whenValueInt64() > 0on unsupported types.cache_repodata = falseexplicitly set on a non-github_rpm remote is rejected; the API has no such check, so this blocks harmless configs (e.g. shared modules passing false) → error only whenValueBool()is true.serve_staleis added to every remote schema but only the rpm/deb/alpine/github_* docs list it → add the row to the remaining per-type docs or note it in the schema description.No findings.