mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 09:52:49 +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:
parent
d14b7781e2
commit
23e2899556
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user