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

Remove ?namespace= param handling/defaulting #9600

Merged
merged 1 commit into from
Jun 18, 2015

Conversation

liggitt
Copy link
Member

@liggitt liggitt commented Jun 10, 2015

Removes obsolete handling of namespace parameter and defaulting behavior

@liggitt liggitt force-pushed the remove_namespace_param branch 2 times, most recently from 6338331 to e548616 Compare June 10, 2015 20:18
@@ -730,6 +695,9 @@ func (n scopeNaming) GenerateLink(req *restful.Request, obj runtime.Object) (pat
return "", "", err
}
}
if len(name) == 0 {
return "", "", errEmptyName
}
Copy link
Member Author

Choose a reason for hiding this comment

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

@smarterclayton can you take a look at this? rootScopeNaming#GenerateLink returned an err if Name was empty, and TestSelfLinkSkipsEmptyName was complaining unless scopeNaming#GenerateLink behaved similarly

@smarterclayton
Copy link
Contributor

LGTM

@smarterclayton smarterclayton added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 11, 2015
@fabioy
Copy link
Contributor

fabioy commented Jun 16, 2015

@k8s-bot ok to test

I guess Jenkins got stuck. Trying again for green.

@saad-ali
Copy link
Member

Hey guys, thanks for the pull request -- we sincerely appreciate the work that goes into sending us a change.

As you might know, we're currently in a feature-freeze and general code slush as we work toward our 1.0 release. We're currently only accepting changes that meet any of the following criteria:

  1. Changes directly related to v1.0 issues: link
  2. Changes addressing P0 bugs: link
  3. Changes to supported platforms to bring them up to par with the primary development platforms
  4. Docs, user experience, and test related fixes

Our initial triage indicates that this is a non-critical change at this time, so we'd like to leave it open and revisit it after 1.0. We expect the freeze to wrap up in early to mid July.

If you feel that this triage is incorrect, please respond and let us know why.

Thanks again for your contribution! The community is really what has made this project so exciting.

CC @bgrant0607, @brendanburns

@liggitt liggitt force-pushed the remove_namespace_param branch from e548616 to a341b8f Compare June 17, 2015 02:40
@k8s-bot
Copy link

k8s-bot commented Jun 17, 2015

GCE e2e build/test passed for commit a341b8f.

@saad-ali saad-ali added this to the v1.0-post milestone Jun 17, 2015
@bgrant0607
Copy link
Member

Part of #8087

@bgrant0607 bgrant0607 assigned nikhiljindal and unassigned fabioy Jun 17, 2015
@@ -282,7 +281,7 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
actions = appendIf(actions, action{"CONNECT", itemPath + "/{path:*}", nameParams, namer}, isConnecter && connectSubpath)

} else {
// v1beta3 format with namespace in path
// v1beta3+ format with namespace in path
if scope.ParamPath() {
Copy link
Member

Choose a reason for hiding this comment

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

Why not just completely remove ParamPath()?

@bgrant0607 bgrant0607 modified the milestones: v1.0, v1.0-post Jun 17, 2015
saad-ali added a commit that referenced this pull request Jun 18, 2015
Remove ?namespace= param handling/defaulting
@saad-ali saad-ali merged commit 9ca9e43 into kubernetes:master Jun 18, 2015
@liggitt liggitt deleted the remove_namespace_param branch June 18, 2015 18:44
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.

8 participants