-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return an empty secrets list for task definitions (#7096)
The first time I ran #7009 on a real ECS deployment, I observed new task definitions getting registered when they shouldn't have. It turns out the actual ECS task definition defaults to an empty list of secrets for each container definition that does not explicitly provide them whereas our stub was doing a direct pass-through of the container definitions. This fixes our stub to bring its defaults more in line with the actual ECS API and fixes our comparison to ensure we're checking for secrets equality correctly. I didn't explicitly pass in an empty list with our RegisterTaskDefinitions call because we omit a lot of other kwargs and let ECS handle their defaults; it felt wrong to pass in an empty list every time.
- Loading branch information
Showing
4 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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