Job definition for reset-admin-password doesn't propagate image pull policy
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 88
- Forks
- 66
- Avg merge
- 53m
- Merged PRs (30d)
- 1
Description
Version: Found in pulp-operator version: 2.0.0-20260317, though likely other versions are affected as well.
Describe the bug When setting a non-default spec.image_pull_policy, such as Never, the job reset-admin-password will still use Always.
To Reproduce
Basic:
- Run pulp operator, e.g. on minikube or just as a local service
- Send a CRD that uses
spec.image_pull_policy=Never(example - Generated job
reset-admin-passworduses wrong image pull policy
How a user might encounter it:
- Run pulp operator on minikube
- Create custom pulp image (simulated here by simple copy of default tag):
docker pull pulp/pulp-minimal && \
docker tag pulp/pulp-minimal:stable foo/bar:baz && \
minikube image load foo/bar:baz
- Apply CRD with
image_pull_policy: Never: https://gist.github.com/zombiecalypse/3d16a7d01ae7dd8a95b29ea9d2091845 - job reset-admin-password fails to start with image pull error
Expected behavior Job uses the same image_pull_policy as the rest of the deployment.
Additional context Proposed fix: https://github.com/pulp/pulp-operator/commit/2131e13e146d77a2425a120860be8251fed0bacf
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the proposed fix commit 2131e13e146d77a2425a120860be8251fed0bacf, then inspect the reset-admin-password job definition and how spec.image_pull_policy is propagated. Done means the job uses the configured policy, including Never, and the reproduction no longer fails with an image-pull error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes
- Domain
- infrastructure
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100