Skip to content

Commit

Permalink
Updated Operator API Reservation documentation to use reservations.
Browse files Browse the repository at this point in the history
We updated this already in d831e27, but it was mistakenly using
the `reservation` field rather than the `reservations` field.
  • Loading branch information
mpark committed Feb 6, 2018
1 parent a79fe26 commit 7cee22c
Showing 1 changed file with 28 additions and 16 deletions.
44 changes: 28 additions & 16 deletions docs/reservation.md
Original file line number Diff line number Diff line change
Expand Up @@ -623,19 +623,25 @@ We send an HTTP POST request to the master's
"name": "cpus",
"type": "SCALAR",
"scalar": { "value": 8 },
"reservation": {
"principal": <operator_principal>,
"role": "ads"
}
"reservations": [
{
type: DYNAMIC,
role: "ads",
principal: <operator_principal>,
}
]
},
{
"name": "mem",
"type": "SCALAR",
"scalar": { "value": 4096 },
"reservation": {
"principal": <operator_principal>,
"role": "ads"
}
"reservations": [
{
type: DYNAMIC,
role: "ads",
principal: <operator_principal>,
}
]
}
]' \
-X POST http://<ip>:<port>/master/reserve
Expand Down Expand Up @@ -671,19 +677,25 @@ We can send an HTTP POST request to the master's
"name": "cpus",
"type": "SCALAR",
"scalar": { "value": 8 },
"reservation": {
"principal": <reserver_principal>,
"role": "ads"
}
"reservations": [
{
type: DYNAMIC,
role: "ads",
principal: <reserver_principal>,
}
]
},
{
"name": "mem",
"type": "SCALAR",
"scalar": { "value": 4096 },
"reservation": {
"principal": <reserver_principal>,
"role": "ads"
}
"reservations": [
{
type: DYNAMIC,
role: "ads",
principal: <reserver_principal>,
}
]
}
]' \
-X POST http://<ip>:<port>/master/unreserve
Expand Down

0 comments on commit 7cee22c

Please sign in to comment.