kubernetes/test/integration
Kubernetes Submit Queue 98e5496aa2 Merge pull request #46677 from enisoc/tpr-migrate-etcd
Automatic merge from submit-queue (batch tested with PRs 43505, 45168, 46439, 46677, 46623)

Add TPR to CRD migration helper.

This is a helper for migrating TPR data to CustomResource. It's rather hacky because it requires crossing apiserver boundaries, but doing it this way keeps the mess contained to the TPR code, which is scheduled for deletion anyway.

It's also not completely hands-free because making it resilient enough to be completely automated is too involved to be worth it for an alpha-to-beta migration, and would require investing significant effort to fix up soon-to-be-deleted TPR code. Instead, this feature will be documented as a best-effort helper whose results should be verified by hand.

The intended benefit of this over a totally manual process is that it should be possible to copy TPR data into a CRD without having to tear everything down in the middle. The process would look like this:

1. Upgrade to k8s 1.7. Nothing happens to your TPRs.
1. Create CRD with group/version and resource names that match the TPR. Still nothing happens to your TPRs, as the CRD is hidden by the overlapping TPR.
1. Delete the TPR. The TPR data is converted to CustomResource data, and the CRD begins serving at the same REST path.

Note that the old TPR data is left behind by this process, so watchers should not receive DELETE events. This also means the user can revert to the pre-migration state by recreating the TPR definition.

Ref. https://github.com/kubernetes/kubernetes/issues/45728
2017-06-01 05:43:44 -07:00
..
apiserver plumb stopch to post start hook index since many of them are starting go funcs 2017-05-11 09:16:13 -04:00
auth Add Node authorization mode based on graph of node-related objects 2017-05-30 16:53:03 -04:00
client plumb stopch to post start hook index since many of them are starting go funcs 2017-05-11 09:16:13 -04:00
configmap plumb stopch to post start hook index since many of them are starting go funcs 2017-05-11 09:16:13 -04:00
defaulttolerationseconds plumb stopch to post start hook index since many of them are starting go funcs 2017-05-11 09:16:13 -04:00
deployment Extract common code in deployment e2e and integration test 2017-05-17 14:41:59 -07:00
etcd Add TPR to CRD migration helper. 2017-05-31 19:07:38 -07:00
evictions PDB MaxUnavailable: e2e tests 2017-05-23 07:18:44 -07:00
examples Add TPR to CRD migration helper. 2017-05-31 19:07:38 -07:00
federation fed cluster selector integration test 2017-05-19 13:47:52 -07:00
framework Add TPR to CRD migration helper. 2017-05-31 19:07:38 -07:00
garbagecollector GC: allow ignored resources to be customized 2017-05-23 12:05:09 -04:00
kubectl don't use build tags to mark integration tests 2017-04-28 14:19:39 -07:00
master plumb stopch to post start hook index since many of them are starting go funcs 2017-05-11 09:16:13 -04:00
metrics plumb stopch to post start hook index since many of them are starting go funcs 2017-05-11 09:16:13 -04:00
objectmeta plumb stopch to post start hook index since many of them are starting go funcs 2017-05-11 09:16:13 -04:00
openshift don't use build tags to mark integration tests 2017-04-28 14:19:39 -07:00
pods plumb stopch to post start hook index since many of them are starting go funcs 2017-05-11 09:16:13 -04:00
quota ResourceQuota admission control injects registry 2017-05-18 23:17:13 -04:00
replicaset plumb stopch to post start hook index since many of them are starting go funcs 2017-05-11 09:16:13 -04:00
replicationcontroller plumb stopch to post start hook index since many of them are starting go funcs 2017-05-11 09:16:13 -04:00
scheduler Scheduler should use a shared informer 2017-05-22 13:50:14 -04:00
scheduler_perf Scheduler should use a shared informer 2017-05-22 13:50:14 -04:00
secrets plumb stopch to post start hook index since many of them are starting go funcs 2017-05-11 09:16:13 -04:00
serviceaccount Switch the tokens controller to use shared informers 2017-05-20 14:19:49 -04:00
storageclasses plumb stopch to post start hook index since many of them are starting go funcs 2017-05-11 09:16:13 -04:00
thirdparty plumb stopch to post start hook index since many of them are starting go funcs 2017-05-11 09:16:13 -04:00
ttlcontroller plumb stopch to post start hook index since many of them are starting go funcs 2017-05-11 09:16:13 -04:00
volume Add Keepterminatedpodvolumes as a annotation on node 2017-05-11 22:31:14 -04:00
benchmark-controller.json build/pause: write in C 2016-05-04 21:45:52 -04:00
BUILD Add integration test for deployment 2017-05-17 14:41:59 -07:00
doc.go don't use build tags to mark integration tests 2017-04-28 14:19:39 -07:00
utils.go mechanical 2017-01-16 09:35:12 -05:00