mirror of https://github.com/k3s-io/k3s.git
Update expected AdmissionReview
--- FAIL: TestCompatibility/admission.k8s.io.v1beta1.AdmissionReview/v1.14.0 (0.02s) compatibility.go:460: json differs compatibility.go:461: strings.Join({ ... // 31 identical lines ` "object": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}},`, ` "oldObject": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}},`, - ` "dryRun": true`, + ` "dryRun": true,`, + ` "options": null`, " },", ` "response": {`, ... // 33 identical lines }, "\n") compatibility.go:466: yaml differs compatibility.go:467: strings.Join({ ... // 23 identical lines " available: 1", " operation: 祈¡ıŵDz廔ȇ{sŊƏp饏姥呄鐊", + " options: null", " resource:", ` group: "5"`, ... // 38 identical lines }, "\n") compatibility.go:472: proto differs compatibility.go:474: strings.Join({ ... // 37 identical lines " }", " 11: 1", + ` 12: ""`, + ` 15: ""`, " }", " 2 {", ... // 36 identical lines }, "\n") Null `options` in json and additional proto tag 12 caused by https://github.com/kubernetes/kubernetes/pull/77563#discussion_r282803268 Proto tag 15 caused by https://github.com/kubernetes/kubernetes/pull/78135/files#diff-3bc4acaf71b6b50648da046287017c54R82k3s-v1.15.3
parent
fa43686543
commit
fcea91c165
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
"kind": "AdmissionReview",
|
||||
"apiVersion": "admission.k8s.io/v1beta1",
|
||||
"request": {
|
||||
"uid": "ő岅ȕHH壬%龺ǟ橸章蒪ʤǎ",
|
||||
"kind": {
|
||||
"group": "2",
|
||||
"version": "3",
|
||||
"kind": "4"
|
||||
},
|
||||
"resource": {
|
||||
"group": "5",
|
||||
"version": "6",
|
||||
"resource": "7"
|
||||
},
|
||||
"subResource": "8",
|
||||
"name": "9",
|
||||
"namespace": "10",
|
||||
"operation": "祈¡ıŵDz廔ȇ{sŊƏp饏姥呄鐊",
|
||||
"userInfo": {
|
||||
"username": "11",
|
||||
"uid": "12",
|
||||
"groups": [
|
||||
"13"
|
||||
],
|
||||
"extra": {
|
||||
"14": [
|
||||
"15"
|
||||
]
|
||||
}
|
||||
},
|
||||
"object": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}},
|
||||
"oldObject": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}},
|
||||
"dryRun": true,
|
||||
"options": null
|
||||
},
|
||||
"response": {
|
||||
"uid": "爟¼ªov鈶",
|
||||
"allowed": false,
|
||||
"status": {
|
||||
"metadata": {
|
||||
"selfLink": "(湗Ć]ʪƬ滈憴Uą飋ī",
|
||||
"resourceVersion": "71208173751669476"
|
||||
},
|
||||
"status": "16",
|
||||
"message": "17",
|
||||
"reason": "Hr鯹)晿\u003co,c鮽ort昍řČ扷5Ɨ",
|
||||
"details": {
|
||||
"name": "18",
|
||||
"group": "19",
|
||||
"kind": "20",
|
||||
"uid": "Ƣ6/ʕVŚ(ĿȊ甞",
|
||||
"causes": [
|
||||
{
|
||||
"reason": "颋Dž",
|
||||
"message": "21",
|
||||
"field": "22"
|
||||
}
|
||||
],
|
||||
"retryAfterSeconds": 1001983654
|
||||
},
|
||||
"code": 153738858
|
||||
},
|
||||
"patch": "fQ==",
|
||||
"patchType": "-Ǐ忄*齧獚敆Ȏțê",
|
||||
"auditAnnotations": {
|
||||
"23": "24"
|
||||
}
|
||||
}
|
||||
}
|
BIN
staging/src/k8s.io/api/testdata/v1.14.0/admission.k8s.io.v1beta1.AdmissionReview.after_roundtrip.pb
vendored
Normal file
BIN
staging/src/k8s.io/api/testdata/v1.14.0/admission.k8s.io.v1beta1.AdmissionReview.after_roundtrip.pb
vendored
Normal file
Binary file not shown.
|
@ -0,0 +1,65 @@
|
|||
apiVersion: admission.k8s.io/v1beta1
|
||||
kind: AdmissionReview
|
||||
request:
|
||||
dryRun: true
|
||||
kind:
|
||||
group: "2"
|
||||
kind: "4"
|
||||
version: "3"
|
||||
name: "9"
|
||||
namespace: "10"
|
||||
object:
|
||||
apiVersion: example.com/v1
|
||||
kind: CustomType
|
||||
spec:
|
||||
replicas: 1
|
||||
status:
|
||||
available: 1
|
||||
oldObject:
|
||||
apiVersion: example.com/v1
|
||||
kind: CustomType
|
||||
spec:
|
||||
replicas: 1
|
||||
status:
|
||||
available: 1
|
||||
operation: 祈¡ıŵDz廔ȇ{sŊƏp饏姥呄鐊
|
||||
options: null
|
||||
resource:
|
||||
group: "5"
|
||||
resource: "7"
|
||||
version: "6"
|
||||
subResource: "8"
|
||||
uid: ő岅ȕHH壬%龺ǟ橸章蒪ʤǎ
|
||||
userInfo:
|
||||
extra:
|
||||
"14":
|
||||
- "15"
|
||||
groups:
|
||||
- "13"
|
||||
uid: "12"
|
||||
username: "11"
|
||||
response:
|
||||
allowed: false
|
||||
auditAnnotations:
|
||||
"23": "24"
|
||||
patch: fQ==
|
||||
patchType: -Ǐ忄*齧獚敆Ȏțê
|
||||
status:
|
||||
code: 153738858
|
||||
details:
|
||||
causes:
|
||||
- field: "22"
|
||||
message: "21"
|
||||
reason: 颋Dž
|
||||
group: "19"
|
||||
kind: "20"
|
||||
name: "18"
|
||||
retryAfterSeconds: 1001983654
|
||||
uid: Ƣ6/ʕVŚ(ĿȊ甞
|
||||
message: "17"
|
||||
metadata:
|
||||
resourceVersion: "71208173751669476"
|
||||
selfLink: (湗Ć]ʪƬ滈憴Uą飋ī
|
||||
reason: Hr鯹)晿<o,c鮽ort昍řČ扷5Ɨ
|
||||
status: "16"
|
||||
uid: 爟¼ªov鈶
|
Loading…
Reference in New Issue