docs: add missing field Capabilities to Namespace API (#16931)

This commit is contained in:
Luiz Aoqui 2023-04-19 08:14:36 -07:00 committed by GitHub
parent d2beea3435
commit b0fe69fded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 1 deletions

View File

@ -145,6 +145,15 @@ The table below shows this endpoint's support for
- `Quota` `(string: "")` - Specifies an quota to attach to the namespace. - `Quota` `(string: "")` - Specifies an quota to attach to the namespace.
- `Capabilities` `(Capabilities: <optional>)` - Specifies capabilities allowed
in the namespace. These values are checked at job submission.
- `EnabledTaskDrivers` `(array<string>: [])` - List of task drivers allowed
in the namespace. If empty all task drivers are allowed.
- `DisabledTaskDrivers` `(array<string>: [])` - List of task drivers disabled
in the namespace.
### Sample Payload ### Sample Payload
```javascript ```javascript
@ -154,7 +163,10 @@ The table below shows this endpoint's support for
"Meta": { "Meta": {
"contact": "platform-eng@example.com" "contact": "platform-eng@example.com"
}, },
"Quota": "prod-quota" "Quota": "prod-quota",
"Capabilities": {
"DisabledTaskDrivers": ["raw_exec"]
}
} }
``` ```