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

List objects in deterministic order #3812

Merged
merged 1 commit into from
Jan 27, 2015
Merged

Conversation

ddysher
Copy link
Contributor

@ddysher ddysher commented Jan 26, 2015

Closes #3772

/cc @smarterclayton

@dchen1107
Copy link
Member

Can you add / update testcase in etcd_tools_test.go for this?

@smarterclayton
Copy link
Contributor

This may break default event behavior, which may be relying on the default sort. Can you verify? Another option is to make this a Boolean on EtcdHelper and set it on a per registry basis.

@ddysher ddysher force-pushed the list-order branch 2 times, most recently from b8b0dbf to 65a5b60 Compare January 27, 2015 03:00
@ddysher
Copy link
Contributor Author

ddysher commented Jan 27, 2015

@dchen1107 test updated

@smarterclayton I'll take a look later

@ddysher
Copy link
Contributor Author

ddysher commented Jan 27, 2015

@smarterclayton What is the 'default event behavior'? For event, we sort all of them based on Timestamp in client: https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/kubectl/sorted_event_list.go
So I think we are good here?

@smarterclayton
Copy link
Contributor

Yeah I think so.

On Jan 27, 2015, at 3:42 PM, Deyuan Deng [email protected] wrote:

@smarterclayton What is the 'default event behavior'? For event, we sort all of them based on Timestamp in client: https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/kubectl/sorted_event_list.go
So I think we are good here?


Reply to this email directly or view it on GitHub.

@ddysher
Copy link
Contributor Author

ddysher commented Jan 27, 2015

Sounds good. PTAL

@dchen1107
Copy link
Member

LGTM.

dchen1107 added a commit that referenced this pull request Jan 27, 2015
List objects in deterministic order
@dchen1107 dchen1107 merged commit deebc7a into kubernetes:master Jan 27, 2015
@ddysher ddysher deleted the list-order branch March 13, 2016 13:37
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.

Return resources in deterministic order
3 participants