Cleanup hooks pull clastix/kubectl by bare tag, bypassing the registry override
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- go, kubernetes
- Domain
- infrastructure
Research direction
Read the four affected templates: packages/apps/kubernetes/templates/delete.yaml, packages/apps/tenant/templates/cleanup-job.yaml, packages/system/dashboard/templates/adopt-configmap-hook.yaml, and packages/system/forklift/templates/forklift-cr-cleanup-hook.yaml. Compare with #3088 and the existing images/*.tag files, then add a unit test for the registry prefix. Done when the hooks use digest-pinned refs rendered through cozy-lib.image and the test verifies the registry override.
Written by the indexing model from the issue text.
Description
Some cleanup hooks still pull docker.io/clastix/kubectl:v1.32 by bare tag, outside cozy-lib.image, so _cluster.images-registry does not apply to them. In an airgapped install or with a registry override these hooks still go to Docker Hub, and a pre-delete hook that cannot pull its image blocks the uninstall.
Affected templates, from the list in #5363:
packages/apps/kubernetes/templates/delete.yamlpackages/apps/tenant/templates/cleanup-job.yamlpackages/system/dashboard/templates/adopt-configmap-hook.yamlpackages/system/forklift/templates/forklift-cr-cleanup-hook.yaml
Without a digest these refs are also not reproducible and are not picked up by Renovate or by the image mirror and multi-arch checks.
Fix would be the same shape as #3088 did for harbor and mariadb: move the ref into an images/*.tag file with tag and digest, render it through include "cozy-lib.image", and add a unit test for the registry prefix. #5363 covers Renovate tracking and leaves these four out on purpose.
- Dominant language
- Go
- Stars
- 2.2k
- Forks
- 209
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 150
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from cozystack/cozystack
-
area/testing kind/cleanup priority/backlog triage/accepted
Difficulty 1/5 Under an hour Newbie friendliness 94/100
cozystack/cozystack#5560 · 1 reaction ·
Maintainers usually reply within 2 days
-
area/testing kind/cleanup priority/backlog triage/accepted
Difficulty 1/5 Under an hour Newbie friendliness 85/100
cozystack/cozystack#5559 · 1 comment · 1 reaction ·
Maintainers usually reply within 2 days
-
area/dx kind/documentation priority/backlog triage/accepted
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
cozystack/cozystack#5558 · 1 reaction ·
Maintainers usually reply within 2 days
-
area/dx kind/documentation priority/backlog triage/accepted
Difficulty 1/5 1-3 hours Newbie friendliness 84/100
cozystack/cozystack#5557 · 1 reaction ·
Maintainers usually reply within 2 days
-
area/testing kind/bug priority/important-longterm triage/accepted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cozystack/cozystack#5464 · 1 reaction ·
Maintainers usually reply within 2 days
All issues in cozystack/cozystack
Similar issues
-
Query service sends an empty traceresponse header on untraced requestsPossibly taken @pingxin403 claimed this today. Openbug
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
jaegertracing/jaeger#10342 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
keyxmakerx/Chronicle#3048 ·
Maintainers usually reply within 1 day
-
meta
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
last9/last9-mcp-server#801 ·
Maintainers usually reply within 1 day
-
KIA1106 flags a VirtualService against itself when it lists one service under several host forms (all Knative routes affected)Possibly taken @pingxin403 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
kiali/kiali#10656 · 1 comment ·
Maintainers usually reply within 1 day