mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-03 02:07:38 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user