-
Notifications
You must be signed in to change notification settings - Fork 195
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
[full-ci][tests-only]Add support to update running service in ociswrapper #11003
base: master
Are you sure you want to change the base?
Conversation
76def2d
to
aaa382d
Compare
aaa382d
to
8600467
Compare
|
message := fmt.Sprintf("Service %s stopped successfully", service) | ||
log.Println(message) | ||
return true, fmt.Sprintf(message) |
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.
message := fmt.Sprintf("Service %s stopped successfully", service) | |
log.Println(message) | |
return true, fmt.Sprintf(message) | |
return true, fmt.Sprintf("Service %s stopped successfully", service) |
@@ -364,7 +361,7 @@ func WaitForServiceStatus(service string, waitForUp bool) bool { | |||
log.Println(fmt.Sprintf("%s service is not ready on port %d. %v", service, port, err)) | |||
} else { | |||
if err != nil { | |||
log.Println(fmt.Sprintf("%s service port %d is no longer reachable", service, port)) | |||
log.Println(fmt.Sprintf("%s service port %d is no longer reachable", service, port)) |
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.
log.Println(fmt.Sprintf("%s service port %d is no longer reachable", service, port)) | |
log.Println(fmt.Sprintf("%s service port %d is no longer reachable", service, port)) |
for key, value := range envBody { | ||
serviceEnvMap = append(serviceEnvMap, fmt.Sprintf("%s=%v", key, value)) | ||
ocis.ServiceEnvConfigs = append(serviceEnvMap, fmt.Sprintf("%s=%v", key, value)) |
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.
we need to store envs separately for different services. So maybe:
ServiceEnvConfigs = ["serviceA" => [...envs], "serviceB" => [...envs]]
Description
This PR add support to update running service with extra env.
Tests cases
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: