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

Add an rc strategy, start delta validating updates #5443

Merged
merged 1 commit into from
Mar 13, 2015

Conversation

bprashanth
Copy link
Contributor

Teaches replication controller to validate updates by giving the controller's RESTStorage a RESTUpdateStrategy. Validation now happens via BeforeUpdate, which compares the existing object with the update before applying it. This is the first step to moving the replication controller to using generic etcd, it also fixes #4973.

} else if strings.Index(err.Error(), "Controller.Namespace does not match the provided context") == -1 {
t.Errorf("Expected 'Controller.Namespace does not match the provided context' error, got '%v'", err.Error())
} else if !errors.IsBadRequest(err) {
t.Errorf("Expected a Bad Request error, got %v", err)
Copy link
Member

Choose a reason for hiding this comment

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

Can we still verify that the error message contains the word "namespace"? Generic "bad request" errors are a really bad user experience...

@lavalamp
Copy link
Member

LGTM, just a few minor questions/nits

@lavalamp
Copy link
Member

LGTM

lavalamp added a commit that referenced this pull request Mar 13, 2015
Add an rc strategy, start delta validating updates
@lavalamp lavalamp merged commit b02412f into kubernetes:master Mar 13, 2015
@bprashanth bprashanth deleted the rc_validation 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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move replication controller validation into rcstrategy
3 participants