mirror of https://github.com/portainer/portainer
fix(edge): save edge checkin interval during endpoint creation (#7541)
parent
e84126ec13
commit
bce4d02dd2
|
@ -105,11 +105,11 @@ export interface EnvironmentOptions {
|
||||||
url?: string;
|
url?: string;
|
||||||
publicUrl?: string;
|
publicUrl?: string;
|
||||||
meta?: EnvironmentMetadata;
|
meta?: EnvironmentMetadata;
|
||||||
checkinInterval?: number;
|
|
||||||
azure?: AzureSettings;
|
azure?: AzureSettings;
|
||||||
tls?: TLSSettings;
|
tls?: TLSSettings;
|
||||||
isEdgeDevice?: boolean;
|
isEdgeDevice?: boolean;
|
||||||
gpus?: Gpu[];
|
gpus?: Gpu[];
|
||||||
|
pollFrequency?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface CreateRemoteEnvironment {
|
interface CreateRemoteEnvironment {
|
||||||
|
@ -175,6 +175,7 @@ export function createEdgeAgentEnvironment({
|
||||||
meta = { tagIds: [] },
|
meta = { tagIds: [] },
|
||||||
gpus = [],
|
gpus = [],
|
||||||
isEdgeDevice,
|
isEdgeDevice,
|
||||||
|
pollFrequency,
|
||||||
}: CreateEdgeAgentEnvironment) {
|
}: CreateEdgeAgentEnvironment) {
|
||||||
return createEnvironment(
|
return createEnvironment(
|
||||||
name,
|
name,
|
||||||
|
@ -187,6 +188,7 @@ export function createEdgeAgentEnvironment({
|
||||||
},
|
},
|
||||||
gpus,
|
gpus,
|
||||||
isEdgeDevice,
|
isEdgeDevice,
|
||||||
|
pollFrequency,
|
||||||
...meta,
|
...meta,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -211,7 +213,7 @@ async function createEnvironment(
|
||||||
PublicURL: options.publicUrl,
|
PublicURL: options.publicUrl,
|
||||||
GroupID: groupId,
|
GroupID: groupId,
|
||||||
TagIds: arrayToJson(tagIds),
|
TagIds: arrayToJson(tagIds),
|
||||||
CheckinInterval: options.checkinInterval,
|
CheckinInterval: options.pollFrequency,
|
||||||
IsEdgeDevice: options.isEdgeDevice,
|
IsEdgeDevice: options.isEdgeDevice,
|
||||||
Gpus: arrayToJson(options.gpus),
|
Gpus: arrayToJson(options.gpus),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue