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

Migrate replication controllers to generic etcd #5746

Merged

Conversation

bprashanth
Copy link
Contributor

The following will silently happen as a byproduct of the migration:

Also dropped controller tick to 5s, because if a pod dies it almost always does so within this time

@bprashanth
Copy link
Contributor Author

Still need to do a little bit of cleanup and write a few more uts, but for the most part I'm convinced this is OK.

@smarterclayton @lavalamp

@mbforbes
Copy link
Contributor

@lavalamp is out until Wednesday (I believe) and I feel bad explicitly giving work to @smarterclayton (as he's in a different org), so temporarily assigning to @davidopp; feel free to redistribute.

@smarterclayton
Copy link
Contributor

I'll review - I'm in that part of the codebase right now anyway. Don't few bad assigning things to me, but it's somewhat like assigning to Tim or Brian in terms of our ability to review :)

On Mar 21, 2015, at 2:12 PM, Maxwell Forbes notifications@github.com wrote:

@lavalamp is out until Wednesday (I believe) and I feel bad explicitly giving work to @smarterclayton (as he's in a different org), so temporarily assigning to @davidopp; feel free to redistribute.


Reply to this email directly or view it on GitHub.

@derekwaynecarr
Copy link
Member

I am happy to review as well. I tend to have more time than Clayton and also know this area well :-)

Sent from my iPhone

On Mar 21, 2015, at 3:39 PM, Clayton Coleman notifications@github.com wrote:

I'll review - I'm in that part of the codebase right now anyway. Don't few bad assigning things to me, but it's somewhat like assigning to Tim or Brian in terms of our ability to review :)

On Mar 21, 2015, at 2:12 PM, Maxwell Forbes notifications@github.com wrote:

@lavalamp is out until Wednesday (I believe) and I feel bad explicitly giving work to @smarterclayton (as he's in a different org), so temporarily assigning to @davidopp; feel free to redistribute.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.

@davidopp
Copy link
Member

Clayton or Derek, if you want to review this please assign it to yourself, otherwise I will review i tthis week.


Helper: h,
}
store.CreateStrategy = controller.Strategy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move these to struct init fields

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to add a subresource for /status, but I guess I'll just do that in the next cl.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, that's fine then. Leave it.

----- Original Message -----

  •   KeyFunc: func(ctx api.Context, name string) (string, error) {
    
  •       return etcdgeneric.NamespaceKeyFunc(ctx, controllerPrefix, name)
    
  •   },
    
  •   // Retrieve the name field of a replication controller
    
  •   ObjectNameFunc: func(obj runtime.Object) (string, error) {
    
  •       return obj.(*api.ReplicationController).Name, nil
    
  •   },
    
  •   // Used to match objects based on labels/fields for list and watch
    
  •   PredicateFunc: func(label labels.Selector, field fields.Selector)
    
    generic.Matcher {
  •       return controller.MatchController(label, field)
    
  •   },
    
  •   EndpointName: "replicationControllers",
    
  •   Helper: h,
    
  • }
  • store.CreateStrategy = controller.Strategy

I'm going to add a subresource for /status, but I guess I'll just do that in
the next cl.


Reply to this email directly or view it on GitHub:
https://github.com/GoogleCloudPlatform/kubernetes/pull/5746/files#r26963687

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed anyway, things might happen that prevent that cl from going in so it's cleaner this way.

@smarterclayton
Copy link
Contributor

Two minor comments

@bprashanth bprashanth force-pushed the rc_genericetcd_interface branch from 344fae6 to eda8716 Compare March 24, 2015 00:58
@bprashanth bprashanth force-pushed the rc_genericetcd_interface branch from eda8716 to ef66016 Compare March 24, 2015 01:01
@bprashanth
Copy link
Contributor Author

PTAL

@smarterclayton
Copy link
Contributor

LGTM

@smarterclayton smarterclayton added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 24, 2015
@bprashanth
Copy link
Contributor Author

Haven't run e2e post rebase yet

@bprashanth
Copy link
Contributor Author

e2e done, this should be good to go

smarterclayton added a commit that referenced this pull request Mar 24, 2015
Migrate replication controllers to generic etcd
@smarterclayton smarterclayton merged commit 0902ffd into kubernetes:master Mar 24, 2015
@bprashanth bprashanth deleted the rc_genericetcd_interface branch October 26, 2015 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants