-
Notifications
You must be signed in to change notification settings - Fork 770
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
Support old restart policy in compose v3 #950
Conversation
LGTM |
restart: "unless-stopped" | ||
environment: | ||
GITHUB: surajssd | ||
|
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.
remove blank line
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.
@surajnarwade updated! thanks!
0dd7126
to
ca53676
Compare
@hangyan one last thing, can you please add documentation stating that we are converting |
ca53676
to
acfab6b
Compare
@surajnarwade thanks, I will remeber this in the feature PRs. |
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.
one small change, otherwise LGTM!
pkg/loader/compose/v3.go
Outdated
if composeServiceConfig.Deploy.RestartPolicy != nil { | ||
serviceConfig.Restart = composeServiceConfig.Deploy.RestartPolicy.Condition | ||
} | ||
if serviceConfig.Restart == "unless-stopped" { | ||
log.Warnf("Restart policy 'unless-stopped in service %s is not supported, convert it to 'always'", name) |
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.
missing a '
around unless-stopped
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
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.
updated!
acfab6b
to
723bd0f
Compare
Awesome! Tests pass and this looks great to me 👍 merging! |
related to #876