Skip to content
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

fix(manifest): preserve default values on environment overrides for jobs #2044

Merged
merged 1 commit into from
Mar 11, 2021

Conversation

efekarakus
Copy link
Contributor

Fixes #2043, fixes #1736

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Comment on lines +96 to +113
if props.Name != "" {
job.Name = aws.String(props.Name)
}
if props.Dockerfile != "" {
job.ScheduledJobConfig.ImageConfig.Build.BuildArgs.Dockerfile = aws.String(props.Dockerfile)
}
if props.Image != "" {
job.ScheduledJobConfig.ImageConfig.Location = aws.String(props.Image)
}
if props.Schedule != "" {
job.On.Schedule = aws.String(props.Schedule)
}
if props.Retries != 0 {
job.Retries = aws.Int(props.Retries)
}
if props.Timeout != "" {
job.Timeout = aws.String(props.Timeout)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

o_O thank you so much for cleaning up this craziness

@mergify mergify bot merged commit f32310c into aws:mainline Mar 11, 2021
Sprint 🏃‍♀️ automation moved this from In review to Pending release Mar 11, 2021
thrau pushed a commit to localstack/copilot-cli-local that referenced this pull request Dec 9, 2022
…obs (aws#2044)

Fixes aws#2043, fixes aws#1736

_By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Sprint 🏃‍♀️
  
Pending release
3 participants