kubernetes/pkg
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
..
api Use TTL-based caching configmap manager in kubelet 2017-05-31 10:39:40 +02:00
apimachinery/tests autogenerated 2017-04-14 10:40:57 -07:00
apis fix typos in pkg/apis/componentconfig/types.go 2017-05-31 11:21:04 +08:00
auth Add NodeIdentifier interface and default implementation 2017-05-18 16:43:41 -04:00
bootstrap/api autogenerated 2017-04-14 10:40:57 -07:00
capabilities Fix comment for method SetForTests 2017-02-14 17:16:49 +08:00
client Regenerate files 2017-05-28 10:11:02 -04:00
cloudprovider Merge pull request #45168 from redbaron/fix-aws-tagging 2017-06-01 05:43:39 -07:00
controller Migrate kubelet configmap management logic to an interface 2017-05-31 10:39:36 +02:00
conversion Revert "Remove conversion package" 2017-01-22 15:41:06 -08:00
credentialprovider Merge pull request #45056 from ericchiang/update-oauth2 2017-05-03 19:34:14 -07:00
features Certificate rotation for kubelet server certs. 2017-05-29 12:28:01 -07:00
fieldpath autogenerated 2017-04-14 10:40:57 -07:00
fields move pkg/fields to apimachinery 2017-01-19 09:50:16 -05:00
generated Regenerate files 2017-05-28 10:11:02 -04:00
hyperkube Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
kubeapiserver Merge pull request #46212 from CaoShuFeng/RBACSuperUser 2017-05-31 00:14:11 -07:00
kubectl Merge pull request #43505 from zjj2wry/004 2017-06-01 05:16:02 -07:00
kubelet Use TTL-based caching configmap manager in kubelet 2017-05-31 10:39:40 +02:00
kubemark Group container-runtime-specific flags/options together 2017-05-30 08:10:39 -07:00
labels add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
master Add TPR to CRD migration helper. 2017-05-31 19:07:38 -07:00
metrics autogenerated 2017-04-14 10:40:57 -07:00
printers Implement kubectl get controllerrevisions 2017-05-30 18:15:26 -07:00
probe Extend Iptables interface with SaveInto 2017-05-19 20:44:25 +02:00
proxy Store chain names to avoid recomputing them multiple times 2017-05-30 10:50:10 +02:00
quota Moved qos to api.helpers. 2017-05-20 07:17:57 -04:00
registry Add TPR to CRD migration helper. 2017-05-31 19:07:38 -07:00
routes Merge pull request #45490 from deads2k/owners-01-extensions 2017-05-10 12:51:51 -07:00
runtime add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
security Added host path whitelist to psp 2017-05-29 13:03:25 -04:00
securitycontext Use dedicated Unix User and Group ID types 2017-05-05 14:07:38 +02:00
serviceaccount autogenerated 2017-04-14 10:40:57 -07:00
ssh autogenerated 2017-04-14 10:40:57 -07:00
types add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
util Merge pull request #43275 from lvjiangzhao/fix-typo-170317 2017-05-30 07:49:00 -07:00
version autogenerated 2017-04-14 10:40:57 -07:00
volume Merge pull request #46470 from shyamjvs/configmap-interface 2017-06-01 01:53:34 -07:00
watch autogenerated 2017-04-14 10:40:57 -07:00
BUILD Regenerate files 2017-05-28 10:11:02 -04:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00