/**
  * {@inheritdoc}
  */
 public function delete(ReplicationController $replicationController)
 {
     try {
         $path = $this->namespaceClient->prefixPath(sprintf('/replicationcontrollers/%s', $replicationController->getMetadata()->getName()));
         return $this->connector->delete($path, null, ['class' => ReplicationController::class]);
     } catch (ClientError $e) {
         if ($e->getStatus()->getCode() === 404) {
             throw new ReplicationControllerNotFound();
         }
         throw $e;
     }
 }
 /**
  * {@inheritdoc}
  */
 public function findByReplicationController(ReplicationController $replicationController)
 {
     $selector = $replicationController->getSpecification()->getSelector();
     $labelSelector = HttpAdapter::createLabelSelector($selector);
     $path = '/pods?labelSelector=' . urlencode($labelSelector);
     return $this->connector->get($this->namespaceClient->prefixPath($path), ['class' => PodList::class, 'groups' => ['Default', 'show']]);
 }