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

This commit is contained in:
Dakota Walsh
2024-04-30 13:56:17 -04:00
parent a9ead542b3
commit e1d3c9851e

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;