Support image-overrides in spec for testing
Some checks failed
Lint Checks / Run linter (push) Failing after 3h11m25s
Some checks failed
Lint Checks / Run linter (push) Failing after 3h11m25s
Spec can override container images:
image-overrides:
dumpster-kubo: ghcr.io/.../dumpster-kubo:test-tag
Merged with CLI overrides (CLI wins). Enables testing with
GHCR-pushed test tags without modifying compose files.
Also reverts the image-pull-policy spec key (not needed —
the fix is to use proper GHCR tags, not IfNotPresent).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1052a1d4e7
commit
90e32ffd60
@ -817,6 +817,12 @@ class K8sDeployer(Deployer):
|
||||
raise
|
||||
|
||||
def up(self, detach, skip_cluster_management, services, image_overrides=None):
|
||||
# Merge spec-level image overrides with CLI overrides
|
||||
spec_overrides = self.cluster_info.spec.get("image-overrides", {})
|
||||
if spec_overrides:
|
||||
if image_overrides:
|
||||
spec_overrides.update(image_overrides) # CLI wins
|
||||
image_overrides = spec_overrides
|
||||
self.image_overrides = image_overrides
|
||||
self.skip_cluster_management = skip_cluster_management
|
||||
if not opts.o.dry_run:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user