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

Make periodic sync nodes from -cloud_provider/-machines optional. #3498

Merged
merged 1 commit into from
Feb 9, 2015

Conversation

pravisankar
Copy link

-sync_nodes=false gives user flexibility to add/remove nodes in the
cluster using REST api/kubectl cli and at the same time can use
cloud provider for other resources like persistent disks, etc.

@pravisankar
Copy link
Author

@smarterclayton @ddysher please review

@lavalamp
Copy link
Member

This LGTM, but can you please file a CLA so we can accept it? (CONTRIBUTING.md)

@@ -48,6 +48,7 @@ var (
cloudProvider = flag.String("cloud_provider", "", "The provider for cloud services. Empty string for no provider.")
cloudConfigFile = flag.String("cloud_config", "", "The path to the cloud provider configuration file. Empty string for no configuration file.")
minionRegexp = flag.String("minion_regexp", "", "If non empty, and -cloud_provider is specified, a regular expression for matching minion VMs.")
syncNodes = flag.Bool("sync_nodes", true, "If true, and -cloud_provider/-machines is specified, sync nodes from the cloud provider/machine list. Default true.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you rename it to syncNodeList? Soonish, node controller will also sync node status, kill pod on down minions, etc, that part is not optional afaict.

@smarterclayton
Copy link
Contributor

Ravi is a Red Hat employee and covered under our CLA

On Jan 14, 2015, at 8:50 PM, Daniel Smith notifications@github.com wrote:

This LGTM, but can you please file a CLA so we can accept it? (CONTRIBUTING.md)


Reply to this email directly or view it on GitHub.

@pravisankar pravisankar force-pushed the ravi/sync-nodes-optional branch from 066f309 to cec9b2b Compare January 15, 2015 19:17
@pravisankar
Copy link
Author

@ddysher updated, please take a look

@pravisankar pravisankar force-pushed the ravi/sync-nodes-optional branch from cec9b2b to 4d4e37b Compare January 15, 2015 19:34
@pravisankar pravisankar force-pushed the ravi/sync-nodes-optional branch 2 times, most recently from ba80340 to fbe387d Compare January 15, 2015 23:57
@ddysher
Copy link
Contributor

ddysher commented Jan 16, 2015

travis is failing, can you double check code is go formatted?

@pravisankar pravisankar force-pushed the ravi/sync-nodes-optional branch 2 times, most recently from 71bc916 to 5fff370 Compare January 19, 2015 20:34
@pravisankar pravisankar force-pushed the ravi/sync-nodes-optional branch from 5fff370 to a2d4ce0 Compare January 21, 2015 19:09
@ddysher
Copy link
Contributor

ddysher commented Jan 26, 2015

need a rebase

@pravisankar pravisankar force-pushed the ravi/sync-nodes-optional branch from a2d4ce0 to 0ee6e50 Compare January 26, 2015 22:14
@pravisankar
Copy link
Author

@ddysher rebase done

@ddysher
Copy link
Contributor

ddysher commented Jan 29, 2015

sorry, looks like you need to rebase again.. Also, ur change is conflict with #3733. You can either wait until that one is in, or rebase earlier so this can go in quickly :)

@pravisankar pravisankar force-pushed the ravi/sync-nodes-optional branch 2 times, most recently from b2f6164 to 4cc48fd Compare February 4, 2015 01:25
@pravisankar pravisankar force-pushed the ravi/sync-nodes-optional branch from 4cc48fd to cc73e74 Compare February 5, 2015 01:13
@pravisankar
Copy link
Author

@ddysher @lavalamp rebased the code couple of times, could you please merge the pull request

@bgrant0607 bgrant0607 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 6, 2015
@bgrant0607
Copy link
Member

Should be merged in the morning.

@ddysher
Copy link
Contributor

ddysher commented Feb 6, 2015

@pravisankar k8s is under heavy development, I've rebased PRs several times before.

With node status syncs, this is no longer the correct way to do this. We must keep node controller running for syncing node status
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/cloudprovider/controller/nodecontroller.go#L105
and make sync node list optional.

You need to pass the param as a configuration to controller.

@ddysher
Copy link
Contributor

ddysher commented Feb 8, 2015

@pravisankar There are some more changes going on with controller manager, can we have a fix?

--sync_nodes=false gives user flexibility to add/remove nodes in the
cluster using REST api/kubectl cli and at the same time can use
cloud provider for other resources like persistent disks, etc.
@pravisankar pravisankar force-pushed the ravi/sync-nodes-optional branch from cc73e74 to 3a5ef05 Compare February 9, 2015 21:54
@pravisankar
Copy link
Author

@ddysher @lavalamp please review the fix

@ddysher
Copy link
Contributor

ddysher commented Feb 9, 2015

LGTM

ddysher added a commit that referenced this pull request Feb 9, 2015
Make periodic sync nodes from -cloud_provider/-machines optional.
@ddysher ddysher merged commit f5bc43a into kubernetes:master Feb 9, 2015
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.

5 participants