mirror of https://github.com/portainer/portainer
docs(endpoints): deprecate EdgeCheckinInterval [EE-5281] (#8864)
parent
2383d243d5
commit
d77a0887a7
|
@ -160,8 +160,12 @@ func (payload *endpointCreatePayload) Validate(r *http.Request) error {
|
|||
}
|
||||
payload.Gpus = gpus
|
||||
|
||||
checkinInterval, _ := request.RetrieveNumericMultiPartFormValue(r, "CheckinInterval", true)
|
||||
payload.EdgeCheckinInterval = checkinInterval
|
||||
edgeCheckinInterval, _ := request.RetrieveNumericMultiPartFormValue(r, "EdgeCheckinInterval", true)
|
||||
if edgeCheckinInterval == 0 {
|
||||
// deprecated CheckinInterval
|
||||
edgeCheckinInterval, _ = request.RetrieveNumericMultiPartFormValue(r, "CheckinInterval", true)
|
||||
}
|
||||
payload.EdgeCheckinInterval = edgeCheckinInterval
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -211,7 +211,7 @@ async function createEnvironment(
|
|||
PublicURL: options.publicUrl,
|
||||
GroupID: groupId,
|
||||
TagIds: arrayToJson(tagIds),
|
||||
CheckinInterval: options.pollFrequency,
|
||||
EdgeCheckinInterval: options.pollFrequency,
|
||||
};
|
||||
|
||||
const { tls, azure } = options;
|
||||
|
|
Loading…
Reference in New Issue