Commit 123fa58
committed
pkg/cli/admin/upgrade: Use PATCH instead of POST for spec updates
ClusterVersion's spec can evolve over time, growing additional
properties like capabilities [1]. With the old POST/Update(...)
approach, that could lead to older oc (who didn't know about the new
properties) naively clearing them when they washed the in-cluster
resource through their local ClusterVersion Go type. With this
commit, we transition to PATCH, so we can touch just
spec.desiredUpdate, regardless of what else is going on in spec.
[1]: openshift/api@5b826351 parent 27c7bdb commit 123fa58
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
321 | 322 | | |
322 | 323 | | |
323 | 324 | | |
324 | | - | |
325 | | - | |
326 | | - | |
| 325 | + | |
327 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
328 | 331 | | |
329 | 332 | | |
330 | 333 | | |
| |||
0 commit comments