Skip to content

fix: pvc migration for the gitea-gitea-valkey#3234

Merged
ferruhcihan merged 21 commits into
mainfrom
APL-1821
May 13, 2026
Merged

fix: pvc migration for the gitea-gitea-valkey#3234
ferruhcihan merged 21 commits into
mainfrom
APL-1821

Conversation

@ferruhcihan
Copy link
Copy Markdown
Contributor

@ferruhcihan ferruhcihan commented May 12, 2026

📌 Summary

This PR fixes the PVC migration for the gitea-gitea-valkey.

LKE Enterprise upgrade from v4.15.3 to v5.0.0 could leave Gitea unavailable due to ArgoCD sync being permanently disabled. Enterprise clusters use linode-block-storage-retain as the default StorageClass, which triggers a PVC migration that disables ArgoCD sync for gitea-gitea-valkey. The sync was never re-enabled because applyAll() exited early before reaching applyAsApps when an operator version change was detected.

The issue is fixed by making the migration idempotent on re-runs, and throwing on timeout instead of silently continuing during the migration.

🔍 Reviewer Notes

🧹 Checklist

  • Code is readable, maintainable, and robust.
  • Unit tests added/updated

@ferruhcihan ferruhcihan requested a review from CasLubbers as a code owner May 12, 2026 06:07
Comment thread src/cmd/migrate.ts
Comment thread src/cmd/apply.ts Outdated
Copy link
Copy Markdown
Collaborator

@merll merll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have concerns that while solving this particular issue this implementation will cause another one in following releases.

@ferruhcihan ferruhcihan merged commit d5e2636 into main May 13, 2026
13 checks passed
@ferruhcihan ferruhcihan deleted the APL-1821 branch May 13, 2026 08:32
ferruhcihan added a commit that referenced this pull request May 28, 2026
Co-authored-by: svcAPLBot <174728082+svcAPLBot@users.noreply.github.com>
(cherry picked from commit d5e2636)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants