mirror of
https://github.com/portainer/portainer.git
synced 2025-08-09 07:45:22 +02:00
fix(namespace): show yaml in namespaces without resource quota EE-6705
This commit is contained in:
parent
a9ead542b3
commit
e1d3c9851e
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue