Skip to content
Snippets Groups Projects
Commit 386da9df authored by xiaohua guan's avatar xiaohua guan Committed by Yas Naoi
Browse files

Issue #3230748 by Xiaohua Guan, yas: Support to edit pod from Cloud Orchestrator master to workers

parent c14d03d7
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ class K8sEditForm extends K8sContentForm {
}
}
method_exists($this->entity, 'getNamespace')
$result = method_exists($this->entity, 'getNamespace')
? $this->k8sService->$method_name(
$entity->getNamespace(),
$params
......@@ -104,6 +104,14 @@ class K8sEditForm extends K8sContentForm {
$entity->save();
if (!empty($result['SendToWorker'])) {
$this->processOperationStatus($entity, 'updated remotely');
$form_state->setRedirect("view.k8s_{$name_underscore}.list", [
'cloud_context' => $entity->getCloudContext(),
]);
return;
}
// Update the entity.
$name_plural_camel = $this->getShortEntityTypeNamePluralCamel($entity);
$method_name = "update${name_plural_camel}";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment