-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add labels
to allow runtime labels on containers
#2186
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay thank you for following-up on this!
internal/pkg/deploy/cloudformation/stack/testdata/workloads/job-manifest.yml
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for continuing this PR!
internal/pkg/deploy/cloudformation/stack/testdata/workloads/job-test.stack.yml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! just the doc change below, feel free to remove the label when its ready. I wonder if we should also add this field to the sidecar docs as well?
ContainerDefinitions: | ||
- Name: !Ref WorkloadName | ||
Image: !Ref ContainerImage | ||
{{include "container-definition-base-properties" . | indent 6}} | ||
{{include "envvars" . | indent 10}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was there a reason why we didn't include "envvars" to the new template?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LB web services have the LB URL as an extra environment variable and that adds messy conditionals.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in latest commit.
@@ -0,0 +1,13 @@ | |||
ContainerDefinitions: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should take either one of these routes:
- Transform this file to
container-definitions.yml
and includesidecars
here. - Or alternatively rename this file to
workload-container.yml
and moveContainerDefinitions
outside of this file so thatsidecars.yml
and this file ends up being individual elements in the list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've done 2) in the latest commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yay lgtm
<!-- Provide summary of changes --> Incorporates and builds on top of aws#2165. This addresses @efekarakus' feedback and adds a test. <!-- Issue number, if available. E.g. "Fixes aws#31", "Addresses aws#42, 77" --> By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Incorporates and builds on top of #2165. This addresses @efekarakus' feedback and adds a test.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.