mirror of https://github.com/portainer/portainer
fix(namespace): show yaml in namespaces without resource quota EE-6705
parent
a9ead542b3
commit
e1d3c9851e
|
@ -47,6 +47,9 @@ export function KubernetesResourcePoolService(
|
||||||
if (quotaAttempt.status === 'fulfilled') {
|
if (quotaAttempt.status === 'fulfilled') {
|
||||||
pool.Quota = quotaAttempt.value;
|
pool.Quota = quotaAttempt.value;
|
||||||
pool.Yaml += '---\n' + quotaAttempt.value.Yaml;
|
pool.Yaml += '---\n' + quotaAttempt.value.Yaml;
|
||||||
|
} else {
|
||||||
|
const ns = await KubernetesNamespaceService.get(name);
|
||||||
|
pool.Yaml = '---\n' + ns.Yaml;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return pool;
|
return pool;
|
||||||
|
|
Loading…
Reference in New Issue