Skip to content

Add Release file#25

Closed
Joeavaikath wants to merge 7 commits into
migtools:mainfrom
Joeavaikath:main
Closed

Add Release file#25
Joeavaikath wants to merge 7 commits into
migtools:mainfrom
Joeavaikath:main

Conversation

@Joeavaikath

Copy link
Copy Markdown
Contributor

No description provided.

- Triggers on version tags (v*)
- Builds all 6 architectures using existing make release-build
- Creates proper tar.gz archives with LICENSE
- Generates SHA256 checksums
- Creates GitHub release with all artifacts
- Disable Go cache to avoid tar restoration conflicts
- Add explicit cache cleaning for fresh builds
- Download and verify dependencies explicitly
- Ensures clean build environment for releases
- Generate final kubectl-oadp.yaml with real SHA256 checksums
- Use Python for readable and maintainable string processing
- Include final manifest as release artifact
- Update release notes with installation instructions
- Ready for krew index submission automation
- Use v0.0.0 as template version placeholder
- All URLs now use consistent template version
- Add missing windows-arm64 platform (matches workflow builds)
- Ready for Python automation to populate real versions and SHA256s
✨ Major improvements:
- Convert oadp.yaml to environment variable template
- Replace complex Python regex with clean envsubst
- Much more readable and maintainable approach
- Robust error handling and validation
- Template uses ${VERSION}, ${LINUX_AMD64_SHA}, etc.

🔧 Technical benefits:
- No more fragile regex string replacement
- Standard environment variable substitution
- Easier to debug and modify
- Less code, more reliable
🎯 Perfect for krew index submission:
- Generate oadp.yaml directly (not oadp-final.yaml)
- Release artifact is ready to drop into krew index
- No renaming needed - matches krew convention exactly
- Clean workflow: template → envsubst → oadp.yaml
🐛 Fixes checksum validation errors:
- Only create archives for the 6 krew platforms (not ppc64le/s390x)
- Fix Windows naming: .exe binary → .tar.gz archive (no .exe in archive name)
- Skip non-binary files (kubectl-oadp-design.md)
- Explicit platform list ensures exact match with oadp.yaml
- Better error handling if binaries missing

✅ Now checksums.txt will have exactly the files the workflow expects
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.

1 participant