Implement GetSingularName for LegacyBindingREST

LegacyBindingREST is only used for `bindings` resource. It is not
a subresource and that's why it is required to implement
`GetSingularName` function. However, there is no need to implement
this function for BindingREST because it is only used for binding
subresource.

That's why, this function statically adds GetSingularName for
LegacyBindingREST.
This commit is contained in:
Arda Güçlü 2022-11-18 11:27:54 +03:00
parent d14b7781e2
commit 23e2899556

View File

@ -289,6 +289,10 @@ func (r *LegacyBindingREST) Create(ctx context.Context, obj runtime.Object, crea
return r.bindingRest.Create(ctx, metadata.GetName(), obj, createValidation, options)
}
func (r *LegacyBindingREST) GetSingularName() string {
return "bindings"
}
// StatusREST implements the REST endpoint for changing the status of a pod.
type StatusREST struct {
store *genericregistry.Store