docker capture fixes

This commit is contained in:
Alex Holliday committed 2026-09-21 10:22:46 -07:00
1 parent d7f8bcc9e1
commit 4a2429d316
13 files changed
+180 -51

No files matched your search

+6 -15
View File
@@ -267,21 +267,12 @@ export const monitorSchema = monitorSchemaUnion.superRefine((data, ctx) => {
});
}
if (data.type === "docker" && isCaptureDockerUrl(data.url)) {
if (!data.secret.trim()) {
ctx.addIssue({
code: "custom",
path: ["secret"],
message: "Capture API secret is required",
});
}
if (data.dockerLogsEnabled) {
ctx.addIssue({
code: "custom",
path: ["dockerLogsEnabled"],
message: "Capture-backed Docker monitors do not support container logs",
});
}
if (data.type === "docker" && isCaptureDockerUrl(data.url) && !data.secret.trim()) {
ctx.addIssue({
code: "custom",
path: ["secret"],
message: "Capture API secret is required",
});
}
if (data.type === "docker" && isDockerTlsUrl(data.url)) {