fix(namespace): show yaml in namespaces without resource quota EE-6705

pull/11743/head
Dakota Walsh 2024-04-30 13:56:17 -04:00
parent a9ead542b3
commit e1d3c9851e
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@ export function KubernetesResourcePoolService(
if (quotaAttempt.status === 'fulfilled') {
pool.Quota = quotaAttempt.value;
pool.Yaml += '---\n' + quotaAttempt.value.Yaml;
} else {
const ns = await KubernetesNamespaceService.get(name);
pool.Yaml = '---\n' + ns.Yaml;
}
}
return pool;