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
|
payload.Gpus = gpus
|
||||||
|
|
||||||
checkinInterval, _ := request.RetrieveNumericMultiPartFormValue(r, "CheckinInterval", true)
|
edgeCheckinInterval, _ := request.RetrieveNumericMultiPartFormValue(r, "EdgeCheckinInterval", true)
|
||||||
payload.EdgeCheckinInterval = checkinInterval
|
if edgeCheckinInterval == 0 {
|
||||||
|
// deprecated CheckinInterval
|
||||||
|
edgeCheckinInterval, _ = request.RetrieveNumericMultiPartFormValue(r, "CheckinInterval", true)
|
||||||
|
}
|
||||||
|
payload.EdgeCheckinInterval = edgeCheckinInterval
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -211,7 +211,7 @@ async function createEnvironment(
|
||||||
PublicURL: options.publicUrl,
|
PublicURL: options.publicUrl,
|
||||||
GroupID: groupId,
|
GroupID: groupId,
|
||||||
TagIds: arrayToJson(tagIds),
|
TagIds: arrayToJson(tagIds),
|
||||||
CheckinInterval: options.pollFrequency,
|
EdgeCheckinInterval: options.pollFrequency,
|
||||||
};
|
};
|
||||||
|
|
||||||
const { tls, azure } = options;
|
const { tls, azure } = options;
|
||||||
|
|
Loading…
Reference in New Issue