feat: add runtime version validation for remote client deployments by feluelle · Pull Request #1983 · astronomer/astro-cli
Prevent deployment of client images with runtime versions newer than the target deployment's runtime version to ensure compatibility. Changes: - Add --deployment-id flag to 'astro remote deploy' command for validation - Implement validateClientImageRuntimeVersion() function that: - Fetches deployment runtime version from platform API - Parses Dockerfile.client to extract client image runtime version - Rejects deployment if client version > deployment version - Enhance ParseImageTag() function to extract runtime versions from image tags like '3.1-1-python-3.12-astro-agent-1.1.0' - Add comprehensive test coverage for all validation scenarios - Update docker parsing to support Dockerfile.client files This ensures client images are compatible with the deployment environment and prevents runtime incompatibility issues.
feluelle
marked this pull request as ready for review
feluelle
deleted the
feature/remote-deploy-cmd-runtime-version-validation
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters