3 Commits

Author SHA1 Message Date
unkin-agent e4741dede2 Add autobackup-operator local docker registry
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
The autobackup-operator project needs a place to push its container
image in the artifactapi local docker registry during CI releases.

Add config/local_docker/autobackup-operator.yaml declaring the local
docker repo (description only, matching sibling convention).
2026-08-13 23:31:47 +10:00
benvin 2c3f52181a Merge pull request 'artifactapi module: plumb mirror_strategy on rpm/apk remotes' (#26) from benvin/mirror-strategy-config into main
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #26
2026-08-13 20:10:50 +10:00
unkin-agent b8ee0ed385 artifactapi module: plumb mirror_strategy on rpm/apk(alpine) remotes
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/plan Pipeline was successful
Expose the provider v0.5.1 mirror_strategy field through the config module
so rpm and alpine(apk) remotes can select how upstream mirrors are chosen
(round_robin | least_conn) across base_url + mirrorlist. Completes the
mirror IaC surface started in #24.

- remote_rpm / remote_alpine object vars gain mirror_strategy = optional(string, null)
- pass mirror_strategy through to the corresponding remote resources
- provider constraint stays ~> 0.5 (already resolves v0.5.1, which adds the attr)

Additive and optional; no real remote config changes.
2026-08-13 20:06:15 +10:00
3 changed files with 5 additions and 0 deletions
@@ -0,0 +1 @@
description: "Local container image registry for the autobackup-operator image"
+2
View File
@@ -10,6 +10,7 @@ resource "artifactapi_remote_alpine" "this" {
mutable_patterns = each.value.mutable_patterns
stale_on_error = each.value.stale_on_error
mirrorlist = each.value.mirrorlist
mirror_strategy = each.value.mirror_strategy
}
resource "artifactapi_remote_docker" "this" {
@@ -76,6 +77,7 @@ resource "artifactapi_remote_rpm" "this" {
mutable_patterns = each.value.mutable_patterns
stale_on_error = each.value.stale_on_error
mirrorlist = each.value.mirrorlist
mirror_strategy = each.value.mirror_strategy
}
resource "artifactapi_remote_pypi" "this" {
+2
View File
@@ -9,6 +9,7 @@ variable "remote_alpine" {
mutable_patterns = optional(list(string), [])
stale_on_error = optional(bool, true)
mirrorlist = optional(list(string), [])
mirror_strategy = optional(string, null)
}))
default = {}
}
@@ -80,6 +81,7 @@ variable "remote_rpm" {
mutable_patterns = optional(list(string), [])
stale_on_error = optional(bool, true)
mirrorlist = optional(list(string), [])
mirror_strategy = optional(string, null)
}))
default = {}
}