Skip to content

Fix: set imagePullPolicy Always on dev container sidecar#368

Merged
bmbouter merged 1 commit intomainfrom
fix-dev-container-pull-policy
Apr 21, 2026
Merged

Fix: set imagePullPolicy Always on dev container sidecar#368
bmbouter merged 1 commit intomainfrom
fix-dev-container-pull-policy

Conversation

@bmbouter
Copy link
Copy Markdown
Owner

Problem

Dev container images use mutable tags like :main. Without imagePullPolicy: Always, Kubernetes defaults to IfNotPresent for non-:latest tags, causing stale cached images on nodes. This caused the rootless dev container fix (pulp/pulp-service#1075) to not take effect on OpenShift — the node had the old root-requiring image cached and kept using it.

Fix

One line: add ImagePullPolicy: corev1.PullAlways to the dev container spec in kubernetes.go.

Test plan

  • CI passes
  • go test ./internal/runtime/ passes (existing k8s tests verify container spec)

Dev container images commonly use mutable tags like :main or :latest.
Without imagePullPolicy: Always, Kubernetes uses IfNotPresent for
non-:latest tags, causing stale cached images to be used even after
the upstream image is rebuilt. This caused the rootless dev container
fix to not take effect on OpenShift because the node had the old
root-requiring image cached.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bmbouter bmbouter merged commit c25ed7d into main Apr 21, 2026
8 of 10 checks passed
@bmbouter bmbouter deleted the fix-dev-container-pull-policy branch April 21, 2026 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant