Skip to content

Commit

Permalink
Patch AWS::Batch again for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
markpeek committed Jan 14, 2025
1 parent 4df1471 commit 922828c
Showing 1 changed file with 114 additions and 0 deletions.
114 changes: 114 additions & 0 deletions scripts/patches/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,118 @@
"path": "/ResourceTypes/AWS::Batch::JobDefinition/Properties/Timeout/Type",
"value": "Timeout",
},
# backward compatibility
{
"op": "move",
"from": "/PropertyTypes/AWS::Batch::JobDefinition.EksMetadata",
"path": "/PropertyTypes/AWS::Batch::JobDefinition.Metadata",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::Batch::JobDefinition.EksPodProperties/Properties/Metadata/Type",
"value": "Metadata",
},
# backward compatibility
{
"op": "move",
"from": "/PropertyTypes/AWS::Batch::JobDefinition.EksPodProperties",
"path": "/PropertyTypes/AWS::Batch::JobDefinition.PodProperties",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::Batch::JobDefinition.EksProperties/Properties/PodProperties/Type",
"value": "PodProperties",
},
# backward compatibility
{
"op": "move",
"from": "/PropertyTypes/AWS::Batch::JobDefinition.EFSAuthorizationConfig",
"path": "/PropertyTypes/AWS::Batch::JobDefinition.AuthorizationConfig",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::Batch::JobDefinition.EFSVolumeConfiguration/Properties/AuthorizationConfig/Type",
"value": "AuthorizationConfig",
},
# backward compatibility
{
"op": "move",
"from": "/PropertyTypes/AWS::Batch::JobDefinition.EFSVolumeConfiguration",
"path": "/PropertyTypes/AWS::Batch::JobDefinition.EfsVolumeConfiguration",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::Batch::JobDefinition.Volume/Properties/EfsVolumeConfiguration/Type",
"value": "EfsVolumeConfiguration",
},
# backward compatibility
{
"op": "move",
"from": "/PropertyTypes/AWS::Batch::JobDefinition.Host",
"path": "/PropertyTypes/AWS::Batch::JobDefinition.VolumesHost",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::Batch::JobDefinition.Volume/Properties/Host/Type",
"value": "VolumesHost",
},
# backward compatibility
{
"op": "move",
"from": "/PropertyTypes/AWS::Batch::JobDefinition.MountPoint",
"path": "/PropertyTypes/AWS::Batch::JobDefinition.MountPoints",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::Batch::JobDefinition.ContainerProperties/Properties/MountPoints/ItemType",
"value": "MountPoints",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::Batch::JobDefinition.MultiNodeContainerProperties/Properties/MountPoints/ItemType",
"value": "MountPoints",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::Batch::JobDefinition.TaskContainerProperties/Properties/MountPoints/ItemType",
"value": "MountPoints",
},
# backward compatibility
{
"op": "move",
"from": "/PropertyTypes/AWS::Batch::JobDefinition.Volume",
"path": "/PropertyTypes/AWS::Batch::JobDefinition.Volumes",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::Batch::JobDefinition.ContainerProperties/Properties/Volumes/ItemType",
"value": "Volumes",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::Batch::JobDefinition.EcsTaskProperties/Properties/Volumes/ItemType",
"value": "Volumes",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::Batch::JobDefinition.MultiNodeContainerProperties/Properties/Volumes/ItemType",
"value": "Volumes",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::Batch::JobDefinition.MultiNodeEcsTaskProperties/Properties/Volumes/ItemType",
"value": "Volumes",
},
]

0 comments on commit 922828c

Please sign in to comment.