Unverified Commit 02543998 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #61105 from lcfang/test0313-2

Automatic merge from submit-queue (batch tested with PRs 57871, 61094, 60459, 61089, 61105). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. remove the outdated TODO **What this PR does / why we need it**: remove the outdated TODO in [https://github.com/kubernetes/kubernetes/blob/a7d6340ad28970a99a67feba3913d0bd653855b1/staging/src/k8s.io/apiserver/pkg/registry/rest/meta.go#L42](https://github.com/kubernetes/kubernetes/blob/a7d6340ad28970a99a67feba3913d0bd653855b1/staging/src/k8s.io/apiserver/pkg/registry/rest/meta.go#L42) **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
parents e15066f9 9be76ec4
......@@ -38,8 +38,6 @@ func FillObjectMetaSystemFields(ctx genericapirequest.Context, meta metav1.Objec
// ValidNamespace returns false if the namespace on the context differs from
// the resource. If the resource has no namespace, it is set to the value in
// the context.
//
// TODO(sttts): move into pkg/genericapiserver/endpoints
func ValidNamespace(ctx genericapirequest.Context, resource metav1.Object) bool {
ns, ok := genericapirequest.NamespaceFrom(ctx)
if len(resource.GetNamespace()) == 0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment