Morten Torkildsen
21fba79d45
Promote PDBs to GA
2021-03-09 10:29:11 -05:00
Kubernetes Prow Robot
4fccba9e06
Merge pull request #99800 from deads2k/beta-more
...
remove more CRD v1beta1 client dependencies from test integration
2021-03-08 07:51:54 -08:00
David Eads
c14ff1a674
remove more CRD v1beta1 client dependencies
2021-03-05 08:10:47 -05:00
Maciej Szulik
9364d0fc81
Promote CronJobs to batch/v1
2021-03-05 12:44:23 +01:00
Maciej Szulik
f8b2cf653c
Drop batch/v2alpha1 leftovers
2021-03-05 12:44:21 +01:00
David Eads
b90179e0f2
write CRD validation function only valid in beta1 direct to etcd to test apply on migrated data
2021-03-02 15:57:57 -05:00
David Eads
c72b4b3f89
coerce apply tests to CRD v1. skip CRDs that are no longer valid
2021-03-02 14:34:41 -05:00
David Eads
b261364025
try to tidy up crd v1beta1 usage
2021-03-02 14:34:41 -05:00
Benjamin Elder
56e092e382
hack/update-bazel.sh
2021-02-28 15:17:29 -08:00
Antoine Pelisse
801aaac2b6
Fix test now that empty struct are tracked in mangaed fields
2021-02-12 10:36:15 -08:00
Jordan Liggitt
46699bf9de
Use apply to create objects in TestApplyStatus
2021-01-29 18:30:35 +00:00
Jordan Liggitt
0f6873c025
Stop skipping APIService in apply test
2021-01-29 18:30:35 +00:00
Jefftree
32a64cf14c
tests for buildOpenAPIModelsForApply
2020-12-10 15:33:18 -08: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
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
Kevin Wiesmüller
49abd3b3ab
add more tests on clearing managedFields
2019-06-11 20:30:53 +02:00
Kevin Wiesmüller
fe3c9c8b6f
add test to make sure managedFields can be reset
2019-05-13 18:34:11 +02:00
Andrew Kim
c919139245
update import of generic featuregate code from k8s.io/apiserver/pkg/util/feature -> k8s.io/component-base/featuregate
2019-05-08 10:01:50 -04:00
Julian V. Modesto
5303f431cb
Add tests for cross group-version SSA.
...
- Use apps/v1 APIs in integration tests.
As in https://github.com/kubernetes/kubernetes/pull/75302
- Add test for cross group-version server side apply.
https://github.com/kubernetes/kubernetes/pull/75157
- Add test for version conversion in the field manager.
https://github.com/kubernetes/kubernetes/pull/75151
Follow up to https://github.com/kubernetes/kubernetes/pull/75302 .
Addresses https://github.com/kubernetes/kubernetes/issues/73723 .
2019-04-25 22:01:28 -04:00
Kubernetes Prow Robot
290cf142e1
Merge pull request #75302 from liggitt/apps-v1-test
...
Use apps/v1 APIs in integration tests
2019-03-22 14:09:49 -07:00
Jordan Liggitt
0aaf1ca4ff
Use apps/v1 APIs in integration tests
2019-03-12 13:17:18 -07:00
jennybuckley
10259c959e
Fix int/float apply bug
2019-03-11 23:07:21 -07:00
jennybuckley
2fdc7e1f35
add test to verify fix
2019-03-08 22:35:33 -08:00
Antoine Pelisse
eb904d8fa8
Add "fieldManager" to flag to PATCH/CREATE/UPDATE
...
And add a corresponding flag in kubectl (for apply), even though the
value is defaulted in kubectl with "kubectl".
The flag is required for Apply patch-type, and optional for other PATCH,
CREATE and UPDATE (in which case we fallback on the user-agent).
2019-03-08 16:03:03 -08:00
Kubernetes Prow Robot
1b8c8f1daf
Merge pull request #73831 from jennybuckley/apply-create-service
...
Honor forceAllowCreate in service registry
2019-02-14 13:59:44 -08:00
Kevin Wiesmüller
9082cac482
strip selected fields from managedFields
...
refactor fieldstrip and update tests
add checks and remove empty fields
shorten test and check for nil manager
fix gofmt
panic on nil manager
2019-02-11 23:10:57 +01:00
Jennifer Buckley
1a5e48e29d
Honor forceAllowCreate in service registry
2019-02-11 11:05:30 -08:00
Antoine Pelisse
b55417f429
Plugin FieldManager in CRD handler, change to API
2019-02-04 13:51:49 -08:00
Antoine Pelisse
0e1d50e70f
API Machinery, Kubectl and tests
2019-02-04 13:51:48 -08:00