@@ -24,6 +24,18 @@ Date: (removed)
24
24
25
25
---
26
26
27
+ GET http://kube-apiserver/apis/addons.example.org/v1alpha1/simpletests?allowWatchBookmarks=true&resourceVersion=3&timeoutSeconds=<replaced>&watch=true
28
+ Accept : application/json, */*
29
+
30
+ 200 OK
31
+ Cache-Control : no-cache, private
32
+ Content-Type : application/json
33
+ Date : (removed)
34
+
35
+ <streaming response not included>
36
+
37
+ ---
38
+
27
39
GET http://kube-apiserver/api/v1?timeout=32s
28
40
Accept : application/json, */*
29
41
@@ -74,6 +86,110 @@ Content-Type: application/json
74
86
{"kind":"SimpleTest","apiVersion":"addons.example.org/v1alpha1","metadata":{"name":"simple1","namespace":"ns1","uid":"00000000-0000-0000-0000-000000000002","resourceVersion":"2","creationTimestamp":"2022-01-01T00:00:01Z"},"spec":{"channel":"stable"},"status":{"healthy":true}}
75
87
76
88
89
+ 200 OK
90
+ Cache-Control : no-cache, private
91
+ Content-Length : 276
92
+ Content-Type : application/json
93
+ Date : (removed)
94
+
95
+ {"apiVersion":"addons.example.org/v1alpha1","kind":"SimpleTest","metadata":{"creationTimestamp":"2022-01-01T00:00:01Z","name":"simple1","namespace":"ns1","resourceVersion":"4","uid":"00000000-0000-0000-0000-000000000002"},"spec":{"channel":"stable"},"status":{"healthy":true}}
96
+
97
+ ---
98
+
99
+ GET http://kube-apiserver/api/v1/configmaps?allowWatchBookmarks=true&labelSelector=addons.example.org%2Fsimpletest%3Dsimple1&watch=true
100
+ Accept : application/json
101
+
102
+ 200 OK
103
+ Cache-Control : no-cache, private
104
+ Content-Type : application/json
105
+ Date : (removed)
106
+
107
+ <streaming response not included>
108
+
109
+ ---
110
+
111
+ GET http://kube-apiserver/api/v1/namespaces/ns1/configmaps/foo
112
+ Accept : application/json
113
+
114
+ 200 OK
115
+ Cache-Control : no-cache, private
116
+ Content-Length : 492
117
+ Content-Type : application/json
118
+ Date : (removed)
119
+
120
+ {"apiVersion":"v1","data":{"k1":"v1"},"kind":"ConfigMap","metadata":{"creationTimestamp":"2022-01-01T00:00:02Z","labels":{"addons.example.org/simpletest":"simple1","example-app":"simpletest","l1":"v1"},"name":"foo","namespace":"ns1","ownerReferences":[{"apiVersion":"addons.example.org/v1alpha1","blockOwnerDeletion":true,"controller":true,"kind":"SimpleTest","name":"simple1","uid":"00000000-0000-0000-0000-000000000002"}],"resourceVersion":"3","uid":"00000000-0000-0000-0000-000000000003"}}
121
+
122
+ ---
123
+
124
+ PATCH http://kube-apiserver/api/v1/namespaces/ns1/configmaps/foo?fieldManager=kdp-test&force=true
125
+ Accept : application/json
126
+ Content-Type : application/apply-patch+yaml
127
+
128
+ {"apiVersion":"v1","data":{"k1":"v1"},"kind":"ConfigMap","metadata":{"labels":{"addons.example.org/simpletest":"simple1","example-app":"simpletest","l1":"v1"},"name":"foo","namespace":"ns1","ownerReferences":[{"apiVersion":"addons.example.org/v1alpha1","blockOwnerDeletion":true,"controller":true,"kind":"SimpleTest","name":"simple1","uid":"00000000-0000-0000-0000-000000000002"}]}}
129
+
130
+ 200 OK
131
+ Cache-Control : no-cache, private
132
+ Content-Length : 492
133
+ Content-Type : application/json
134
+ Date : (removed)
135
+
136
+ {"apiVersion":"v1","data":{"k1":"v1"},"kind":"ConfigMap","metadata":{"creationTimestamp":"2022-01-01T00:00:02Z","labels":{"addons.example.org/simpletest":"simple1","example-app":"simpletest","l1":"v1"},"name":"foo","namespace":"ns1","ownerReferences":[{"apiVersion":"addons.example.org/v1alpha1","blockOwnerDeletion":true,"controller":true,"kind":"SimpleTest","name":"simple1","uid":"00000000-0000-0000-0000-000000000002"}],"resourceVersion":"3","uid":"00000000-0000-0000-0000-000000000003"}}
137
+
138
+ ---
139
+
140
+ PUT http://kube-apiserver/apis/addons.example.org/v1alpha1/namespaces/ns1/simpletests/simple1/status
141
+ Accept : application/json, */*
142
+ Content-Type : application/json
143
+
144
+ {"kind":"SimpleTest","apiVersion":"addons.example.org/v1alpha1","metadata":{"name":"simple1","namespace":"ns1","uid":"00000000-0000-0000-0000-000000000002","resourceVersion":"4","creationTimestamp":"2022-01-01T00:00:01Z"},"spec":{"channel":"stable"},"status":{"healthy":true}}
145
+
146
+
147
+ 200 OK
148
+ Cache-Control : no-cache, private
149
+ Content-Length : 276
150
+ Content-Type : application/json
151
+ Date : (removed)
152
+
153
+ {"apiVersion":"addons.example.org/v1alpha1","kind":"SimpleTest","metadata":{"creationTimestamp":"2022-01-01T00:00:01Z","name":"simple1","namespace":"ns1","resourceVersion":"4","uid":"00000000-0000-0000-0000-000000000002"},"spec":{"channel":"stable"},"status":{"healthy":true}}
154
+
155
+ ---
156
+
157
+ GET http://kube-apiserver/api/v1/namespaces/ns1/configmaps/foo
158
+ Accept : application/json
159
+
160
+ 200 OK
161
+ Cache-Control : no-cache, private
162
+ Content-Length : 492
163
+ Content-Type : application/json
164
+ Date : (removed)
165
+
166
+ {"apiVersion":"v1","data":{"k1":"v1"},"kind":"ConfigMap","metadata":{"creationTimestamp":"2022-01-01T00:00:02Z","labels":{"addons.example.org/simpletest":"simple1","example-app":"simpletest","l1":"v1"},"name":"foo","namespace":"ns1","ownerReferences":[{"apiVersion":"addons.example.org/v1alpha1","blockOwnerDeletion":true,"controller":true,"kind":"SimpleTest","name":"simple1","uid":"00000000-0000-0000-0000-000000000002"}],"resourceVersion":"3","uid":"00000000-0000-0000-0000-000000000003"}}
167
+
168
+ ---
169
+
170
+ PATCH http://kube-apiserver/api/v1/namespaces/ns1/configmaps/foo?fieldManager=kdp-test&force=true
171
+ Accept : application/json
172
+ Content-Type : application/apply-patch+yaml
173
+
174
+ {"apiVersion":"v1","data":{"k1":"v1"},"kind":"ConfigMap","metadata":{"labels":{"addons.example.org/simpletest":"simple1","example-app":"simpletest","l1":"v1"},"name":"foo","namespace":"ns1","ownerReferences":[{"apiVersion":"addons.example.org/v1alpha1","blockOwnerDeletion":true,"controller":true,"kind":"SimpleTest","name":"simple1","uid":"00000000-0000-0000-0000-000000000002"}]}}
175
+
176
+ 200 OK
177
+ Cache-Control : no-cache, private
178
+ Content-Length : 492
179
+ Content-Type : application/json
180
+ Date : (removed)
181
+
182
+ {"apiVersion":"v1","data":{"k1":"v1"},"kind":"ConfigMap","metadata":{"creationTimestamp":"2022-01-01T00:00:02Z","labels":{"addons.example.org/simpletest":"simple1","example-app":"simpletest","l1":"v1"},"name":"foo","namespace":"ns1","ownerReferences":[{"apiVersion":"addons.example.org/v1alpha1","blockOwnerDeletion":true,"controller":true,"kind":"SimpleTest","name":"simple1","uid":"00000000-0000-0000-0000-000000000002"}],"resourceVersion":"3","uid":"00000000-0000-0000-0000-000000000003"}}
183
+
184
+ ---
185
+
186
+ PUT http://kube-apiserver/apis/addons.example.org/v1alpha1/namespaces/ns1/simpletests/simple1/status
187
+ Accept : application/json, */*
188
+ Content-Type : application/json
189
+
190
+ {"kind":"SimpleTest","apiVersion":"addons.example.org/v1alpha1","metadata":{"name":"simple1","namespace":"ns1","uid":"00000000-0000-0000-0000-000000000002","resourceVersion":"4","creationTimestamp":"2022-01-01T00:00:01Z"},"spec":{"channel":"stable"},"status":{"healthy":true}}
191
+
192
+
77
193
200 OK
78
194
Cache-Control : no-cache, private
79
195
Content-Length : 276
0 commit comments