add ignore_services to stack

This commit is contained in:
mbecker20
2024-08-11 20:00:20 -07:00
parent c456b67018
commit 6ba0184551
6 changed files with 134 additions and 45 deletions

View File

@@ -212,6 +212,42 @@ export const StackConfig = ({
},
},
},
{
label: "Ignore Services",
description:
"If your compose file has init containers that exit early, ignore them here so your stack will report the correct health.",
actions: !disabled && (
<Button
variant="secondary"
onClick={() =>
set((update) => ({
...update,
ignore_services: [
...(update.ignore_services ??
config.ignore_services ??
[]),
"",
],
}))
}
className="flex items-center gap-2 w-[200px]"
>
<PlusCircle className="w-4 h-4" />
Add Service
</Button>
),
components: {
ignore_services: (values, set) => (
<InputList
field="ignore_services"
values={values ?? []}
set={set}
disabled={disabled}
placeholder="Input service name"
/>
),
},
},
],
"Git Repo": [
{