Jordan Liggitt
df80775693
Include managed field comparison in test
2023-10-31 14:03:39 -07:00
Antoine Pelisse
5b268e6daf
apply: Add test for duplicates in associative lists
2023-10-30 15:55:50 -07:00
Alexander Zielenski
2b01f63b11
move check for noop managed field timestamp updates
...
this check needs to go after any mutations. After the mutating admission chain, rest.BeforeUpdate (which is responsible for reverting updates to immutable timestamp fields, among other things.) is called in the store.Update function. Without moving this check, it will be possible for an object to be written to etcd with only a change to its managed fields timestamp.
2023-03-22 11:29:33 -07:00
Wojciech Tyczyński
57c95fbfa1
Lock ServerSideApply feature to true
2022-09-27 13:48:28 +02:00
Alexander Zielenski
bd648f3f9e
add regression test of formerly atomic claimRef
2022-08-03 10:57:13 -07:00
Kubernetes Prow Robot
8bc12f24e6
Merge pull request #106388 from alexzielenski/ssa-ignore-nonsemantic-changes
...
Ignore non-semantic changes to objects
2022-07-26 11:35:10 -07:00
Alexander Zielenski
7233538008
revert timestamp updates to object if non-managed fields do not change
...
add short-circuiting logic for long comaprison
replace timestamps rather than doing a full managed fields deepcopy
add guard
2022-07-14 11:55:26 -07:00
Abirdcfly
00b9ead02c
cleanup: remove duplicate import
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-07-14 11:25:19 +08:00
SataQiu
20f8a06e50
using t.Run() in integration test TestApplyAlsoCreates
2022-06-15 00:01:10 +08:00
Wojciech Tyczyński
3b61f4ac20
Clean shutdown of apply integration tests
2022-05-28 21:14:09 +02:00
Wojciech Tyczyński
492e7111a0
Minor cleanup of apply tests
2022-05-13 11:37:22 +02:00
Wojciech Tyczyński
41ee6a3e44
Remove selflink integration tests
2022-02-14 11:11:56 +01:00
Jeffrey Ying
ecb9b620fe
Revert "Populate OpenAPI in all integration tests"
2022-01-26 13:30:03 -05:00
Jefftree
eb8f6fe0f9
Populate OpenAPI in all integration tests
2022-01-25 14:16:31 -08:00
Mengjiao Liu
257b494478
test/integration: Rename masterConfig to instanceConfig
2021-06-08 17:21:47 +08:00
Mengjiao Liu
ac5535c949
test/integration: Rename MasterConfigOptions to ControlPlaneConfigOptions
2021-06-08 16:58:46 +08:00
Mengjiao Liu
6871b2b3c7
Rename masterConfig to controlPlaneConfig
2021-06-04 20:55:08 +08:00
Mengjiao Liu
387154f1a9
Part3: master to controlplane in test/integration
...
Rename RunAMaster to RunAControlPlane
2021-06-03 11:06:19 +08:00
Mengjiao Liu
c9ec486287
Part of master to controlplane in test/integration
...
Rename NewIntegrationTestMasterConfig to NewIntegrationTestControlPlaneConfig
2021-05-25 13:26:28 +08:00
Kubernetes Prow Robot
0f4de95e5b
Merge pull request #101330 from deads2k/apply-remove-beta
...
apply test for manager limit to only use v1 apis
2021-04-22 13:19:49 -07:00
David Eads
b1ce579517
apply test for manager limit to only use v1 apis
2021-04-21 14:38:24 -04:00
Antoine Pelisse
816e80206c
Use ScaleHandler for all scalable resources
2021-04-21 18:41:40 +02:00
Andrea Nodari
a9ea98b3b9
Track ownership of deployments scale subresource
2021-04-21 18:41:40 +02:00
Andrea Nodari
862d256195
Add "subresource" field to ManagedFieldEntry
...
This field is useful to namespace the managed field entries of a
subresource and differentiate them from the ones of the main resource.
2021-04-16 14:13:18 -07:00
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
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
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
Antoine Pelisse
ed2cf6ef2c
FieldManager: Reset if we receive nil or a list with one empty item
2020-06-05 12:49:13 -07:00
Antoine Pelisse
5378a788e4
fieldManager: Ignore and log all errors when updating managedFields
2020-06-04 09:32:23 -07: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
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
Ted Yu
9828f986af
Move Update Apply conflict test to field manager test
2019-08-30 14:47:39 -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