fix(docker): add docker desktop extension flag in settings and add migration EE-5277 (#8948)
This commit is contained in:
@@ -49,6 +49,8 @@ type publicSettingsResponse struct {
|
||||
// The check in interval for edge agent (in seconds) - used in non async mode [seconds]
|
||||
CheckinInterval int `example:"60"`
|
||||
}
|
||||
|
||||
IsDockerDesktopExtention bool `json:"IsDockerDesktopExtention" example:"false"`
|
||||
}
|
||||
|
||||
// @id SettingsPublic
|
||||
@@ -89,6 +91,8 @@ func generatePublicSettings(appSettings *portainer.Settings) *publicSettingsResp
|
||||
publicSettings.Edge.CommandInterval = appSettings.Edge.CommandInterval
|
||||
publicSettings.Edge.CheckinInterval = appSettings.EdgeAgentCheckinInterval
|
||||
|
||||
publicSettings.IsDockerDesktopExtention = appSettings.IsDockerDesktopExtention
|
||||
|
||||
//if OAuth authentication is on, compose the related fields from application settings
|
||||
if publicSettings.AuthenticationMethod == portainer.AuthenticationOAuth {
|
||||
publicSettings.OAuthLogoutURI = appSettings.OAuthSettings.LogoutURI
|
||||
|
||||
Reference in New Issue
Block a user