/** * {@inheritdoc} */ public function create(Pod $pod) { return $this->connector->post($this->namespaceClient->prefixPath('/pods'), $pod, ['class' => Pod::class]); }
/** * {@inheritdoc} */ public function create(ServiceAccount $serviceAccount) { return $this->connector->post($this->namespaceClient->prefixPath('/serviceaccounts'), $serviceAccount, ['class' => ServiceAccount::class]); }
/** * {@inheritdoc} */ public function create(PersistentVolumeClaim $claim) { return $this->connector->post($this->namespaceClient->prefixPath('/persistentvolumeclaims'), $claim, ['class' => PersistentVolumeClaim::class]); }
/** * {@inheritdoc} */ public function create(Service $service) { return $this->connector->post($this->namespaceClient->prefixPath('/services'), $service, ['class' => Service::class]); }
/** * {@inheritdoc} */ public function create(KubernetesNamespace $namespace) { return $this->connector->post('/namespaces', $namespace, ['class' => KubernetesNamespace::class]); }
/** * {@inheritdoc} */ public function create(Secret $secret) { return $this->connector->post($this->namespaceClient->prefixPath('/secrets'), $secret, ['class' => Secret::class]); }
/** * {@inheritdoc} */ public function create(Ingress $ingress) { $url = $this->namespaceClient->prefixPath('/ingresses'); $url = '/apis/extensions/v1beta1' . $url; return $this->connector->post($url, $ingress, ['class' => Ingress::class]); }
/** * {@inheritdoc} */ public function create(ReplicationController $replicationController) { return $this->connector->post($this->namespaceClient->prefixPath('/replicationcontrollers'), $replicationController, ['class' => ReplicationController::class, 'groups' => ['Default', 'create']]); }
/** * {@inheritdoc} */ public function rollback(Deployment\DeploymentRollback $deploymentRollback) { $url = $this->namespaceClient->prefixPath(sprintf('/deployments/%s/rollback', $deploymentRollback->getName())); $url = '/apis/extensions/v1beta1' . $url; return $this->connector->post($url, $deploymentRollback, ['class' => Deployment\DeploymentRollback::class]); }