feat: add runtime version validation for remote client deployments by feluelle · Pull Request #1983 · astronomer/astro-cli

@feluelle

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 feluelle marked this pull request as ready for review

November 18, 2025 10:47

neel-astro

@feluelle

@feluelle feluelle deleted the feature/remote-deploy-cmd-runtime-version-validation branch

November 25, 2025 12:02