diff --git a/frontend/packages/console-shared/locales/en/console-shared.json b/frontend/packages/console-shared/locales/en/console-shared.json index 01ed4c5bd31..587092d8fbc 100644 --- a/frontend/packages/console-shared/locales/en/console-shared.json +++ b/frontend/packages/console-shared/locales/en/console-shared.json @@ -231,6 +231,7 @@ "Project": "Project", "Namespace": "Namespace", "Enable Autoscale": "Enable Autoscale", + "This image is not intended to run with more than one replica. Scaling up may cause unexpected behavior.": "This image is not intended to run with more than one replica. Scaling up may cause unexpected behavior.", "Increase the Pod count": "Increase the Pod count", "Decrease the Pod count": "Decrease the Pod count", "No Pods found for this resource.": "No Pods found for this resource.", diff --git a/frontend/packages/console-shared/src/components/pod/PodRing.tsx b/frontend/packages/console-shared/src/components/pod/PodRing.tsx index 458c10b58b0..73da73059ac 100644 --- a/frontend/packages/console-shared/src/components/pod/PodRing.tsx +++ b/frontend/packages/console-shared/src/components/pod/PodRing.tsx @@ -1,12 +1,13 @@ import type { FC } from 'react'; import { useState, useEffect } from 'react'; -import { Button, Split, SplitItem, Bullseye } from '@patternfly/react-core'; +import { Button, Split, SplitItem, Bullseye, Tooltip } from '@patternfly/react-core'; import { AngleDownIcon, AngleUpIcon, AutomationIcon } from '@patternfly/react-icons'; import * as _ from 'lodash'; import { useTranslation } from 'react-i18next'; import type { ImpersonateKind } from '@console/dynamic-plugin-sdk'; import type { K8sResourceKind, K8sKind } from '@console/internal/module/k8s'; import { k8sPatch } from '@console/internal/module/k8s'; +import { useNonScalableImageCheck } from '../../hooks/useNonScalableImageCheck'; import { useRelatedHPA } from '../../hooks/useRelatedHPA'; import type { ExtPodKind } from '../../types'; import { usePodRingLabel, usePodScalingAccessStatus } from '../../utils/pod-ring-utils'; @@ -82,6 +83,7 @@ const PodRing: FC = ({ } = obj; const [hpa] = useRelatedHPA(apiVersion, kind, name, namespace); const hpaControlledScaling = !!hpa; + const { isNonScalable } = useNonScalableImageCheck(obj); const isScalingAllowed = isAccessScalingAllowed && !hpaControlledScaling; @@ -126,15 +128,33 @@ const PodRing: FC = ({
-