Slide 9
Slide 9 text
"ENJTTJPO3FWJFX
u "1*4FSWFSͱ8FCIPPLؒ
ͰΓͱΓ͢Δ+40/ܗࣜ
u 3FRVFTUʹɺ8FCIPPLͷ
ରͱͳΔΦϒδΣΫτɺૢ
࡞Λ͓͜ͳͬͨϢʔβʔͷใ
ͳͲؚ͕·ΕΔɻ
u .VUBUJOHͷ3FTQPOTFɺ
+40/1BUDIܗࣜͰมߋ༰
Λදݱ͢Δɻ
{
"request": {
"uid": "XXXX-YYYY",
"name": "sample",
"namespace": "default",
"operation": "UPDATE",
"userInfo": {
// 省略
},
"object": {
"kind": "Deployment",
"apiVersion": "apps/v1",
"metadata": {
"name": "sample",
"namespace": "default"
},
"spec": {
// 省略
}
},
"oldObject": {
// 省略
},
"dryRun": false,
"options": {
"kind": "UpdateOptions",
"apiVersion": "meta.k8s.io/v1"
}
}
}
Request
{
"response": {
"uid": "XXXX-YYYY",
"allowed": true
}
}
Response (Validating)
Response (Mutating)
{
"response": {
"uid": "XXXX-YYYY",
"allowed": true,
"patchType": "JSONPatch",
"patch":
"W3sib3AiOiAiYWRkIiwgInBhdGgiOiAiL3NwZWM
vcmVwbGljYXMiLCAidmFsdWUiOiAzfV0="
}
}
[{
"op": "add",
"path": "/spec/replicas",
"value": 3
}]
base64