Commit Graph

64 Commits

Author SHA1 Message Date
Antoine Pelisse
d3e641e84e Add default for protocol and test that it works 2020-11-13 17:06:35 -08:00
Kubernetes Prow Robot
396dd2555d
Merge pull request #91993 from nodo/89274-change-of-managefields-via-subresources
Do not allow manual changes to manageFields via subresources
2020-09-15 12:26:43 -07:00
Chao Xu
86dd4ce3b5 Let kube-apiserver host the storage version API
Co-authored-by: Haowei Cai <haoweic@google.com>
2020-09-08 19:14:36 -07:00
Kubernetes Prow Robot
f736be5721
Merge pull request #94397 from wojtek-t/stop_setting_selflink
Stop setting SelfLink in kube-apiserver.
2020-09-03 12:31:55 -07:00
Daniel Smith
a86afc12df update scripts 2020-09-02 10:49:40 -07:00
Daniel Smith
15e0e3e90e rename 2020-09-02 10:48:26 -07:00
wojtekt
2539912a22 Stop setting SelfLink in kube-apiserver. 2020-09-01 20:57:38 +02:00
Andrea Nodari
c522ee08a3 Do not allow manual changes to manageFields via subresources
If a request tries to change managedFields, the response returns the
managedField of the live object.
2020-08-18 13:33:39 +02:00
Julian V. Modesto
f2deb2417a Add tests for managed fields tracking.
- Test that client-side apply users don't encounter a conflict with
server-side apply for objects that previously didn't track managedFields
- Test that we stop tracking managed fields with `managedFields: []`
- Test that we stop tracking managed fields when the feature is disabled
2020-08-05 18:22:44 -04:00
Kubernetes Prow Robot
6079cebfae
Merge pull request #90187 from julianvmodesto/last-applied-updater
Implement server-side apply upgrade and downgrade
2020-07-13 16:45:20 -07:00
Joe Betz
3c2842fbc6 Add ownership transfer test 2020-07-09 06:18:59 -07:00
Joe Betz
ec136db9ce Add server side apply unsetting field tests 2020-07-09 06:18:58 -07:00
Julian V. Modesto
e4368eb67e Implement server-side apply upgrade & downgrade.
- Allow client-side to server-side apply upgrade.

  Ensure that a user can change management of an object from client-side apply to
  server-side apply without conflicts.

- Allow server-side apply to client-side downgrade.

  For an object managed with client-side apply, a user may upgrade to
  managing the object with server-side apply, then decide to downgrade.

  We can support this downgrade by keeping the last-applied-configuration
  annotation for client-side apply updated with server-side apply.
2020-07-08 19:14:03 -04:00
Kubernetes Prow Robot
7a68eac8f7
Merge pull request #91873 from kwiesmueller/fix-crd-update-bug
Fix FieldManager Conversion Error for CRD Updates
2020-06-18 19:04:51 -07:00
Kubernetes Prow Robot
53f3699cf9
Merge pull request #89778 from cmluciano/cml/ingressv1
ingress: Add Ingress to v1 API and update backend to defaultBackend
2020-06-16 23:10:39 -07:00
Kevin
bd961781d7 prevent update handler being called on disallowed CreateOnUpdate 2020-06-12 13:04:17 +00:00
Kubernetes Prow Robot
dbfc3aa877
Merge pull request #91748 from apelisse/resetting-managed-fields-and-fieldtype
Resetting managed fields and fieldtype
2020-06-09 14:49:40 -07:00
Kubernetes Prow Robot
3f8bb1bf50
Merge pull request #91685 from liggitt/csr-v1
CertificateSigningRequest v1 API
2020-06-05 15:30:14 -07:00
Antoine Pelisse
ed2cf6ef2c FieldManager: Reset if we receive nil or a list with one empty item 2020-06-05 12:49:13 -07:00
Jordan Liggitt
e0f5cca410 Copy CSR v1beta1 to v1
* Remove prerelease tags
* Update copyright, package, imports to v1
* Remove signerName, usages, and condition status defaulting
2020-06-05 00:47:24 -04:00
Antoine Pelisse
5378a788e4 fieldManager: Ignore and log all errors when updating managedFields 2020-06-04 09:32:23 -07:00
Christopher M. Luciano
2b091f60ca
ingress: Add Ingress to v1 API and update backend to defaultBackend
ingress: use new serviceBackend split

ingress: remove all v1beta1 restrictions on creation

This change removes creation and update restrictions enforced by
k8s 1.18 for not allowing resource backends.

Paths are no longer
required to be valid regex and a PathType is now user-specified
and no longer defaulted.

Also remove all TODOs in staging/net/v1 types

Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
2020-05-22 11:57:41 -04:00
Antoine Pelisse
94cb60e0e8 Use discovery to test apply all status 2020-03-19 09:58:46 -07:00
Kubernetes Prow Robot
a019609d5d
Merge pull request #87508 from jennybuckley/large-obj
Don't save managedFields if object is too large
2020-03-02 16:16:05 -08:00
Elijah Oyekunle
2e187415fd extend CRD map and set validation 2020-02-28 16:00:59 +01:00
jennybuckley
ccd9e4e2de Don't save managedFields if object is too large 2020-02-27 12:41:44 -08:00
Mike Danese
3aa59f7f30 generated: run refactor 2020-02-07 18:16:47 -08:00
Mike Danese
d55d6175f8 refactor 2020-01-29 08:50:45 -08:00
jennybuckley
b33fbc84d9 Update Structured Merge Diff to V3 2020-01-21 15:23:13 -08:00
danielqsj
6596a14d39 add missing alias of api errors under test 2019-12-26 17:29:38 +08:00
Antoine Pelisse
5038f80b45 Strip nullable for Server-side apply 2019-11-13 10:43:51 -08:00
jennybuckley
61b19c7298 Cap the number of managedFields entries for updates at 10 2019-10-03 16:24:58 -07:00
jennybuckley
d72260b9da Refactor fieldmanager to be more modular 2019-10-03 16:24:58 -07:00
Kubernetes Prow Robot
f5ae0604ad
Merge pull request #82175 from yutedz/fld-mgr-conflict
Move Update Apply conflict test to field manager test
2019-09-11 10:40:14 -07:00
Jordan Liggitt
3904e14b40 Fallback to schemaless apply behavior for custom resources with unhandled schemas 2019-09-06 15:39:28 -04:00
Ted Yu
9828f986af Move Update Apply conflict test to field manager test 2019-08-30 14:47:39 -07:00
jennybuckley
badd5b9a26 Update generated 2019-08-29 19:10:28 -07:00
jennybuckley
cf24968309 Fix validation and add many tests 2019-08-29 19:10:28 -07:00
jennybuckley
c0617933d4 Use CRD validation field in server-side apply 2019-08-29 18:42:24 -07:00
Kubernetes Prow Robot
61e2f52e38
Merge pull request #81754 from apelisse/version-fields
Add FieldsType field to ManagedFields to track content format
2019-08-28 01:37:50 -07:00
Jennifer Buckley
f99252f2c6
Add issue to TODO 2019-08-27 15:00:15 -07:00
Antoine Pelisse
ff4e1f3592 Add new FieldsType to clarify the format of Fields 2019-08-27 14:52:36 -07:00
jennybuckley
2e669a7f22 Fix failing test 2019-08-23 13:11:09 -07:00
jennybuckley
3279c73945 Add tests 2019-08-23 12:45:36 -07:00
jennybuckley
9a12e37a6d Only update managedFields on update if it already exists 2019-08-23 12:38:08 -07:00
jennybuckley
aa1f01ec7e Make sure no op updates don't affect the resource version 2019-08-21 10:27:01 -07:00
Kubernetes Prow Robot
6f13032fb4
Merge pull request #81524 from jennybuckley/apply-group-updates-by-manager
Group managedFieldsEntries for update by manager name
2019-08-20 01:59:46 -07:00
jennybuckley
87eabcdbfa Group update managedFieldsEntries by manager name 2019-08-19 13:50:15 -07:00
Antoine Pelisse
4de7b6ddfb Add benchmark for updates and get with/without server-side apply 2019-08-16 15:18:22 -07:00
jennybuckley
addad99b6f Use raw bytes in metav1.Fields instead of map
Also define custom proto unmarshaller that understands the old format
2019-07-31 16:05:54 -07:00