Repository navigation
Add scheduling options to the operator-managed Jobs - #1690
fontaineajulien wants to merge 1 commit into
Conversation
Adds node_selector, tolerations and affinity to PulpJob, so admin_password_job, migration_job and signing_job can place their Job pods like the other Pulp components. commonJob() copies them into the pod spec. The update-content-checksums Job follows migration_job, as it already does for its resources. Ran `make manifests` and `make bundle` to update the CRDs. closes pulp#1628 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: fontaineajulien The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @fontaineajulien. Thanks for your PR. I'm waiting for a pulp member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Closes #1628.
The operator builds its Jobs in
commonJob()with a pod spec that has nonodeSelector,tolerationsoraffinity, and the CR has no field to set them. On clusters split into node pools, these Jobs can land on nodes that cannot run them, for example nodes that cannot pull the Pulp image from a private registry. A migration Job that never starts blocks the api, content and worker Deployments inwait_on_database_migrations.sh.This PR adds the same scheduling fields that the long-running components already have to
PulpJob:commonJob()copies them into the Job pod spec. Unset fields produce the same pod spec as before.migration_job, as it already does for its container resources.make manifestsandmake bundle. The CRD change is additive only.controllers/repo_manager/job_test.go.go test ./...passes, including the envtest suite.