pulp / pulp/pulp-operator

Job definition for reset-admin-password doesn't propagate image pull policy

Open
#1,630 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue
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:

  1. Run pulp operator, e.g. on minikube or just as a local service
  2. Send a CRD that uses spec.image_pull_policy=Never (example
  3. Generated job reset-admin-password uses wrong image pull policy

How a user might encounter it:

  1. Run pulp operator on minikube
  2. 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
  1. Apply CRD with image_pull_policy: Never: https://gist.github.com/zombiecalypse/3d16a7d01ae7dd8a95b29ea9d2091845
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.