Use correct singular name format for subresources

This commit is contained in:
Arda Güçlü
2022-11-04 16:05:45 +03:00
parent 578ddde80e
commit 672e0b1e01
32 changed files with 48 additions and 44 deletions

View File

@@ -222,5 +222,5 @@ func (r *StatusREST) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set {
var _ rest.SingularNameProvider = &StatusREST{}
func (r *StatusREST) GetSingularName() string {
return r.store.GetSingularName()
return r.store.GetSingularName() + "/status"
}

View File

@@ -172,5 +172,5 @@ func (r *StatusREST) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set {
}
func (r *StatusREST) GetSingularName() string {
return r.store.GetSingularName()
return r.store.GetSingularName() + "/status"
}