remove the outdated TODO
Kubernetes-commit: 9be76ec461e6bd2bddb5ab26b41b3ef5938e0791
This commit is contained in:
parent
ba6d999b6e
commit
39fbe7ba58
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue