Make rootscoped resource no namespace selectable field

This commit is contained in:
feihujiang
2015-10-31 10:48:24 +08:00
parent c31a22227d
commit 726def04d5
15 changed files with 22 additions and 16 deletions

View File

@@ -97,7 +97,7 @@ func (deploymentStatusStrategy) ValidateUpdate(ctx api.Context, obj, old runtime
// DeploymentToSelectableFields returns a field set that represents the object.
func DeploymentToSelectableFields(deployment *extensions.Deployment) fields.Set {
return generic.ObjectMetaFieldsSet(deployment.ObjectMeta)
return generic.ObjectMetaFieldsSet(deployment.ObjectMeta, true)
}
// MatchDeployment is the filter used by the generic etcd backend to route