Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add startup code to apiserver to migrate etcd keys #7567

Merged

Conversation

kbeecher
Copy link
Contributor

@erictune mentioned in #3476 that, as part of the work adding a custom etcd prefix, we should also add a flag to tell the apiserver what old, possibly empty prefix, to copy old data from. In the apiserver startup code the etcd keys should be migrated those flags.

I played around with some migration code and thought I would share it with you in a WIP branch to see if this is the general way it should go.

Would be grateful for any comments.

Refs: #3476

@cjcullen cjcullen changed the title Add startup code to apiserver to migrate etcd keys WIP: Add startup code to apiserver to migrate etcd keys Apr 30, 2015
@erictune
Copy link
Member

erictune commented May 1, 2015

LGTM, assuming a manual migration test succeeded for you.

@erictune
Copy link
Member

erictune commented May 1, 2015

I'm out next week. Unassigning myself so that someone else can be assigned to merge it. I'm just waiting for confirmation that it was tested in some suitable way.

@erictune erictune removed their assignment May 1, 2015
@kbeecher
Copy link
Contributor Author

kbeecher commented May 4, 2015

Thanks @erictune, I'm working on an integration test for this.

@kbeecher kbeecher force-pushed the kbeecher/wip_etcd_migrate_keys branch 2 times, most recently from 679be84 to 822e25f Compare May 5, 2015 10:25
@kbeecher kbeecher force-pushed the kbeecher/wip_etcd_migrate_keys branch from 822e25f to 0473f65 Compare May 5, 2015 10:28
@kbeecher
Copy link
Contributor Author

kbeecher commented May 5, 2015

Done.

@brendandburns
Copy link
Contributor

Merging this on @erictune 's LGTM and a passing integration test.

brendandburns added a commit that referenced this pull request May 7, 2015
WIP: Add startup code to apiserver to migrate etcd keys
@brendandburns brendandburns merged commit 5461231 into kubernetes:master May 7, 2015
@kbeecher kbeecher deleted the kbeecher/wip_etcd_migrate_keys branch May 11, 2015 08:53
@lavalamp
Copy link
Member

I think this was the wrong approach to solving this problem, filed #8192.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants