Skip to content
Permalink
Browse files

Add support for deletecollection operation on services

  • Loading branch information
astefanutti committed Dec 2, 2019
1 parent f6337c7 commit 9abbebbe11ceb49b170e8d1540a03d69fe616d52
Showing with 5 additions and 5 deletions.
  1. +5 −5 pkg/registry/core/service/storage/rest.go
@@ -74,12 +74,8 @@ type ServiceNodePort struct {
}

type ServiceStorage interface {
rest.StandardStorage
rest.Scoper
rest.Getter
rest.Lister
rest.CreaterUpdater
rest.GracefulDeleter
rest.Watcher
rest.Exporter
rest.StorageVersionProvider
}
@@ -365,6 +361,10 @@ func (rs *REST) healthCheckNodePortUpdate(oldService, service *api.Service, node
return true, nil
}

func (rs *REST) DeleteCollection(ctx context.Context, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions, listOptions *metainternalversion.ListOptions) (runtime.Object, error) {
return rs.services.DeleteCollection(ctx, deleteValidation, options, listOptions)
}

func (rs *REST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error) {
oldObj, err := rs.services.Get(ctx, name, &metav1.GetOptions{})
if err != nil {

0 comments on commit 9abbebb

Please sign in to comment.
You can’t perform that action at this time.