From b0fe69fded7c103ca519f7c682743c7a0113158e Mon Sep 17 00:00:00 2001 From: Luiz Aoqui Date: Wed, 19 Apr 2023 08:14:36 -0700 Subject: [PATCH] docs: add missing field Capabilities to Namespace API (#16931) --- website/content/api-docs/namespaces.mdx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/website/content/api-docs/namespaces.mdx b/website/content/api-docs/namespaces.mdx index f1050081c..ba4e6528e 100644 --- a/website/content/api-docs/namespaces.mdx +++ b/website/content/api-docs/namespaces.mdx @@ -145,6 +145,15 @@ The table below shows this endpoint's support for - `Quota` `(string: "")` - Specifies an quota to attach to the namespace. +- `Capabilities` `(Capabilities: )` - Specifies capabilities allowed + in the namespace. These values are checked at job submission. + + - `EnabledTaskDrivers` `(array: [])` - List of task drivers allowed + in the namespace. If empty all task drivers are allowed. + + - `DisabledTaskDrivers` `(array: [])` - List of task drivers disabled + in the namespace. + ### Sample Payload ```javascript @@ -154,7 +163,10 @@ The table below shows this endpoint's support for "Meta": { "contact": "platform-eng@example.com" }, - "Quota": "prod-quota" + "Quota": "prod-quota", + "Capabilities": { + "DisabledTaskDrivers": ["raw_exec"] + } } ```