Fix Kaniko cache_repo path — remove doubled registry prefix #110
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-kaniko-cache-repo-path"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fix the cache_repo path so Kaniko layer caching actually works. The plugin prepends the
registrysetting automatically, so the full URL in PR #106 caused a doubled path and 401 Unauthorized on cache pushes.Changes
cache_repofromharbor.harbor.svc.cluster.local/landscaping-assistant/cachetolandscaping-assistant/cacheharbor.harbor.svc.cluster.local/automatically, producing the correct pathBefore (pipeline #226 logs):
After:
harbor.harbor.svc.cluster.local/landscaping-assistant/cache(correct path, robot account has access)Test Plan
Review Checklist
.woodpecker.yamlRelated Notes
docs/infrastructure-and-pipeline.md— will update after confirming cache worksPR #110 Review
DOMAIN REVIEW
Domain: CI/CD pipeline (Woodpecker + Kaniko + Harbor)
The fix is correct and well-reasoned. The
woodpeckerci/plugin-kanikoplugin prepends theregistrysetting (harbor.harbor.svc.cluster.local) to bothrepoandcache_repoautomatically. The previous value ofharbor.harbor.svc.cluster.local/landscaping-assistant/cacheresulted in a doubled path:The fix aligns
cache_repowith the existingrepopattern -- both now use justproject/nameand let the plugin prepend the registry. This is consistent (line 66:repo: landscaping-assistant/app, line 71:cache_repo: landscaping-assistant/cache).No credentials are exposed. Secrets are properly referenced via
from_secret.BLOCKERS
None. This is a one-line config fix with no new functionality requiring test coverage. No security concerns.
NITS
None.
SOP COMPLIANCE
fix-kaniko-cache-repo-path. SOP requires{issue-number}-{kebab-case-purpose}. Missing the issue number prefix.## Relatedsection with a plan slug. It references PR #106 and docs, but not a plan slug.PROCESS OBSERVATIONS
docs/infrastructure-and-pipeline.mdafter confirming cache works -- that should be tracked.VERDICT: NOT APPROVED
The code change itself is correct and clean. The sole blocker is the incorrect issue reference: "Fixes #107" points to an unrelated Keycloak auth issue. Merging as-is would auto-close the wrong issue. Fix the PR body to remove or correct the issue reference, and correct the branch name or acknowledge the deviation, then this is ready to merge.
Fixed: removed the incorrect
Fixes #107reference. This is a standalone follow-up to PR #106, no parent issue needed for a one-line config fix.