diff --git a/app/react/kubernetes/namespaces/components/ResourceQuotaFormSection/ResourceQuotaFormSection.tsx b/app/react/kubernetes/namespaces/components/ResourceQuotaFormSection/ResourceQuotaFormSection.tsx index dcf1c0600..f4d5bf3a6 100644 --- a/app/react/kubernetes/namespaces/components/ResourceQuotaFormSection/ResourceQuotaFormSection.tsx +++ b/app/react/kubernetes/namespaces/components/ResourceQuotaFormSection/ResourceQuotaFormSection.tsx @@ -57,13 +57,24 @@ export function ResourceQuotaFormSection({
Resource Limits
+ + {(!cpuLimit || !memoryLimit) && ( + + Not enough resources available in the cluster to apply a resource + reservation. + + )} + {/* keep the FormError component present, but invisible to avoid layout shift */} - - {/* 'error' keeps the formerror the exact same height while hidden so there is no layout shift */} - {typeof errors === 'string' ? errors : 'error'} - + {cpuLimit && memoryLimit ? ( + + {/* 'error' keeps the formerror the exact same height while hidden so there is no layout shift */} + {typeof errors === 'string' ? errors : 'error'} + + ) : null} +