<#3315 Dynamic platform detection for ImageSpec to...
# flyte-github
c
#3315 Dynamic platform detection for ImageSpec to support cross-platform development Pull request opened by BarryWu0812 ## Tracking issue Closes flyteorg/flyte#6565 ## Why are the changes needed? The ImageSpec should automatically detect the current machine's architecture and set an appropriate default platform: "linux/arm64" for Apple Silicon Macs (ARM64) "linux/amd64" for Intel Macs (x86_64) ## What changes were proposed in this pull request? Use platform.machine() to detect the current machine's architecture ## How was this patch tested? Unit test ## Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. https://bito.ai#summarystart| ### Summary by Bito This pull request enhances the ImageSpec class with dynamic platform detection, automatically configuring the default platform based on the machine's architecture for both Apple Silicon and Intel Macs. This improvement boosts cross-platform usability for developers in varied environments. Additionally, the platform parameter has been made optional to facilitate this functionality. flyteorg/flytekit