@skyhook-io/k8s-ui 1.8.10 → 1.8.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -6
- package/src/assets/gitops/argocd.png +0 -0
- package/src/assets/gitops/flux.svg +7 -0
- package/src/components/applications/AppChips.tsx +10 -0
- package/src/components/applications/ApplicationDetail.test.tsx +697 -0
- package/src/components/applications/ApplicationDetail.tsx +3269 -474
- package/src/components/applications/ApplicationsView.tsx +62 -10
- package/src/components/applications/applications-view.test.tsx +47 -0
- package/src/components/applications/index.ts +1 -1
- package/src/components/audit/AuditAlerts.tsx +14 -10
- package/src/components/checks/ChecksView.tsx +2 -3
- package/src/components/checks/severity.ts +14 -10
- package/src/components/cluster-switcher/ClusterSwitcher.tsx +2 -2
- package/src/components/compare/CompareResourcePicker.tsx +2 -2
- package/src/components/gitops/GitOpsDetailLayout.tsx +13 -3
- package/src/components/gitops/GitOpsGraphFilterRail.tsx +2 -1
- package/src/components/gitops/GitOpsTableView.tsx +13 -6
- package/src/components/gitops/ManagedResourcesList.tsx +8 -11
- package/src/components/gitops/SyncCountdown.tsx +26 -17
- package/src/components/gitops/SyncOptionsDialog.test.ts +48 -0
- package/src/components/gitops/SyncOptionsDialog.tsx +190 -46
- package/src/components/gitops/insights/ArgoResourceDiff.tsx +172 -0
- package/src/components/gitops/insights/GitOpsInsightViews.tsx +474 -121
- package/src/components/gitops/insights/index.ts +1 -0
- package/src/components/gitops/insights/insights-helpers.test.ts +102 -1
- package/src/components/gitops/insights/insights-helpers.ts +74 -1
- package/src/components/gitops/tree/GitOpsTreeGraph.tsx +10 -2
- package/src/components/issues/IssuesView.tsx +91 -52
- package/src/components/issues/ResourceIssuesSection.test.tsx +39 -6
- package/src/components/issues/ResourceIssuesSection.tsx +46 -144
- package/src/components/issues/index.ts +3 -0
- package/src/components/issues/issue-timing.ts +53 -0
- package/src/components/issues/issues.test.ts +102 -1
- package/src/components/issues/severity.ts +3 -0
- package/src/components/logs/LogCore.tsx +14 -4
- package/src/components/logs/WorkloadLogsViewer.tsx +31 -6
- package/src/components/logs/useLogStream.ts +8 -1
- package/src/components/namespace-switcher/NamespacePicker.tsx +86 -107
- package/src/components/resources/ResourcesSidebar.test.tsx +71 -0
- package/src/components/resources/ResourcesSidebar.tsx +46 -46
- package/src/components/resources/ResourcesView.selected-kind.test.ts +143 -0
- package/src/components/resources/ResourcesView.tsx +233 -51
- package/src/components/resources/renderers/AWSMachineRenderer.tsx +3 -2
- package/src/components/resources/renderers/AWSManagedClusterRenderer.tsx +3 -2
- package/src/components/resources/renderers/AWSManagedControlPlaneRenderer.tsx +3 -2
- package/src/components/resources/renderers/AWSManagedMachinePoolRenderer.tsx +3 -2
- package/src/components/resources/renderers/AzureMachineRenderer.tsx +3 -2
- package/src/components/resources/renderers/AzureManagedControlPlaneRenderer.tsx +3 -2
- package/src/components/resources/renderers/AzureManagedMachinePoolRenderer.tsx +3 -2
- package/src/components/resources/renderers/CAPIClusterRenderer.tsx +3 -2
- package/src/components/resources/renderers/CAPIKubeadmControlPlaneRenderer.tsx +3 -2
- package/src/components/resources/renderers/CAPIMachineDeploymentRenderer.tsx +3 -2
- package/src/components/resources/renderers/CAPIMachineHealthCheckRenderer.tsx +3 -2
- package/src/components/resources/renderers/CAPIMachinePoolRenderer.tsx +3 -2
- package/src/components/resources/renderers/CAPIMachineRenderer.tsx +3 -2
- package/src/components/resources/renderers/CAPIMachineSetRenderer.tsx +3 -2
- package/src/components/resources/renderers/CertificateRenderer.tsx +3 -2
- package/src/components/resources/renderers/CertificateRequestRenderer.tsx +3 -2
- package/src/components/resources/renderers/ClusterComplianceReportRenderer.tsx +2 -2
- package/src/components/resources/renderers/CompositeRenderer.tsx +3 -2
- package/src/components/resources/renderers/CronWorkflowRenderer.tsx +99 -0
- package/src/components/resources/renderers/ExternalSecretRenderer.tsx +3 -2
- package/src/components/resources/renderers/GCPMachineRenderer.tsx +3 -2
- package/src/components/resources/renderers/GCPManagedControlPlaneRenderer.tsx +3 -2
- package/src/components/resources/renderers/GCPManagedMachinePoolRenderer.tsx +3 -2
- package/src/components/resources/renderers/GRPCRouteRenderer.tsx +7 -3
- package/src/components/resources/renderers/GatewayClassRenderer.tsx +3 -2
- package/src/components/resources/renderers/HTTPRouteRenderer.tsx +7 -3
- package/src/components/resources/renderers/JobRenderer.tsx +3 -1
- package/src/components/resources/renderers/KarpenterEC2NodeClassRenderer.tsx +3 -2
- package/src/components/resources/renderers/KarpenterNodeClaimRenderer.tsx +3 -2
- package/src/components/resources/renderers/KarpenterNodePoolRenderer.tsx +3 -2
- package/src/components/resources/renderers/KedaScaledJobRenderer.tsx +3 -2
- package/src/components/resources/renderers/KedaScaledObjectRenderer.tsx +3 -2
- package/src/components/resources/renderers/ManagedResourceRenderer.tsx +3 -2
- package/src/components/resources/renderers/PVCRenderer.tsx +3 -2
- package/src/components/resources/renderers/PrometheusRuleRenderer.tsx +2 -2
- package/src/components/resources/renderers/SbomReportRenderer.tsx +2 -2
- package/src/components/resources/renderers/SealedSecretRenderer.tsx +3 -2
- package/src/components/resources/renderers/SecretRenderer.tsx +2 -0
- package/src/components/resources/renderers/SecretStoreRenderer.tsx +3 -2
- package/src/components/resources/renderers/ServiceRenderer.tsx +58 -40
- package/src/components/resources/renderers/SimpleRouteRenderer.tsx +7 -3
- package/src/components/resources/renderers/VulnerabilityReportRenderer.tsx +2 -2
- package/src/components/resources/renderers/WorkflowRenderer.test.tsx +43 -0
- package/src/components/resources/renderers/WorkflowRenderer.tsx +60 -78
- package/src/components/resources/renderers/index.ts +1 -0
- package/src/components/resources/resource-utils-argo.test.ts +18 -1
- package/src/components/resources/resource-utils-argo.ts +8 -0
- package/src/components/resources/resource-utils-capi.ts +1 -1
- package/src/components/resources/resource-utils.ts +31 -0
- package/src/components/shared/DetailShell.tsx +2 -2
- package/src/components/shared/ResourceActionsBar.tsx +142 -111
- package/src/components/shared/ResourceRendererDispatch.tsx +33 -4
- package/src/components/shared/UnifiedDiff.tsx +51 -0
- package/src/components/shared/index.ts +1 -0
- package/src/components/timeline/TimelineList.tsx +375 -354
- package/src/components/timeline/TimelineStrip.test.tsx +194 -0
- package/src/components/timeline/TimelineStrip.tsx +836 -0
- package/src/components/timeline/TimelineSwimlanes.test.tsx +1028 -0
- package/src/components/timeline/TimelineSwimlanes.tsx +2498 -593
- package/src/components/timeline/TimelineToolbar.test.tsx +320 -0
- package/src/components/timeline/TimelineToolbar.tsx +759 -0
- package/src/components/timeline/TimelineToolbarState.test.tsx +88 -0
- package/src/components/timeline/index.ts +23 -0
- package/src/components/timeline/scrubber-math.test.ts +235 -0
- package/src/components/timeline/scrubber-math.ts +249 -0
- package/src/components/timeline/shared.test.tsx +219 -0
- package/src/components/timeline/shared.tsx +232 -447
- package/src/components/timeline/timeline-filters.test.ts +196 -0
- package/src/components/timeline/timeline-filters.ts +180 -0
- package/src/components/timeline/timeline-lane-sort.test.ts +97 -0
- package/src/components/timeline/timeline-lane-sort.ts +77 -0
- package/src/components/timeline/timeline-live.test.ts +131 -0
- package/src/components/timeline/timeline-live.ts +77 -0
- package/src/components/topology/GroupNode.tsx +9 -2
- package/src/components/topology/K8sResourceNode.test.ts +11 -0
- package/src/components/topology/K8sResourceNode.tsx +387 -243
- package/src/components/topology/TopologyBreadcrumb.tsx +30 -0
- package/src/components/topology/TopologyControls.tsx +3 -1
- package/src/components/topology/TopologyFilterSidebar.tsx +9 -0
- package/src/components/topology/TopologyGraph.tsx +149 -90
- package/src/components/topology/TopologyOverlayBar.tsx +30 -0
- package/src/components/topology/TopologySearch.tsx +25 -17
- package/src/components/topology/index.ts +2 -0
- package/src/components/topology/layout.ts +10 -2
- package/src/components/topology/topology.css +0 -92
- package/src/components/ui/Badge.tsx +6 -1
- package/src/components/ui/CodeViewer.tsx +2 -2
- package/src/components/ui/Collapse.tsx +59 -0
- package/src/components/ui/ConfirmDialog.tsx +7 -3
- package/src/components/ui/DialogPortal.tsx +31 -9
- package/src/components/ui/Input.tsx +24 -0
- package/src/components/ui/MultiSelectPicker.test.tsx +101 -0
- package/src/components/ui/MultiSelectPicker.tsx +167 -0
- package/src/components/ui/PaneLoader.tsx +10 -2
- package/src/components/ui/ResourceBar.tsx +68 -25
- package/src/components/ui/SearchBox.tsx +18 -4
- package/src/components/ui/SearchPillInput.tsx +2 -2
- package/src/components/ui/SelectMenu.tsx +81 -0
- package/src/components/ui/drawer-components.tsx +48 -32
- package/src/components/ui/index.ts +6 -0
- package/src/components/ui/severity-tone.ts +11 -4
- package/src/components/workload/ResourceDetailDrawer.tsx +6 -2
- package/src/components/workload/WorkloadView.tsx +2706 -475
- package/src/components/workload/index.ts +1 -1
- package/src/theme/tailwind-theme.css +1 -0
- package/src/theme/variables.css +2 -1
- package/src/types/core.ts +57 -4
- package/src/types/gitops-insights.ts +69 -1
- package/src/types/gitops.ts +3 -3
- package/src/utils/application-history.test.ts +538 -0
- package/src/utils/application-history.ts +257 -0
- package/src/utils/application-topology.test.ts +198 -0
- package/src/utils/application-topology.ts +261 -0
- package/src/utils/applications.test.ts +201 -1
- package/src/utils/applications.ts +1182 -393
- package/src/utils/index.ts +3 -0
- package/src/utils/navigation.test.ts +32 -1
- package/src/utils/navigation.ts +70 -0
- package/src/utils/resource-hierarchy.test.ts +1024 -1
- package/src/utils/resource-hierarchy.ts +925 -267
- package/src/utils/resource-icons.ts +2 -0
- package/src/utils/topology-neighborhood.test.ts +202 -1
- package/src/utils/topology-neighborhood.ts +194 -13
- package/src/utils/workflow-execution.test.ts +556 -0
- package/src/utils/workflow-execution.ts +814 -0
- package/src/utils/workload-colors.ts +2 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Globe, Shield, Settings } from 'lucide-react'
|
|
2
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner } from '../../ui/drawer-components'
|
|
2
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, useOperationalIssuesShown} from '../../ui/drawer-components'
|
|
3
3
|
import { getCAPIConditions } from '../resource-utils-capi'
|
|
4
4
|
import { getAzureMCPStatus, getAzureMCPLocation, getAzureMCPVersion, getAzureMCPResourceGroup, getAzureMCPSKUTier, getAzureMCPNetworkPlugin, getAzureMCPNetworkPolicy, getAzureMCPDNSPrefix, getAzureMCPUpgradeChannel, getAzureMCPPrivateCluster } from '../resource-utils-azure-capi'
|
|
5
5
|
|
|
@@ -13,13 +13,14 @@ export function AzureManagedControlPlaneRenderer({ data }: Props) {
|
|
|
13
13
|
const conditions = getCAPIConditions(data)
|
|
14
14
|
const mcpStatus = getAzureMCPStatus(data)
|
|
15
15
|
const isFailed = mcpStatus.level === 'unhealthy'
|
|
16
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
16
17
|
const readyCond = conditions.find((c: any) => c.type === 'Ready')
|
|
17
18
|
const apiAccess = spec.apiServerAccessProfile || {}
|
|
18
19
|
const authorizedRanges = apiAccess.authorizedIPRanges || []
|
|
19
20
|
|
|
20
21
|
return (
|
|
21
22
|
<>
|
|
22
|
-
{isFailed && (
|
|
23
|
+
{isFailed && !operationalIssuesShown && (
|
|
23
24
|
<AlertBanner variant="error" title="AKS Control Plane Not Ready" message={readyCond?.message || 'AzureManagedControlPlane is not ready.'} />
|
|
24
25
|
)}
|
|
25
26
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Server, Settings } from 'lucide-react'
|
|
2
2
|
import { clsx } from 'clsx'
|
|
3
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner } from '../../ui/drawer-components'
|
|
3
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, useOperationalIssuesShown} from '../../ui/drawer-components'
|
|
4
4
|
import { getCAPIConditions } from '../resource-utils-capi'
|
|
5
5
|
import { getAzureMMPStatus, getAzureMMPSKU, getAzureMMPMode, getAzureMMPOSDiskInfo, getAzureMMPScaling, getAzureMMPScaleSetPriority, getAzureMMPOSType } from '../resource-utils-azure-capi'
|
|
6
6
|
import { CAPACITY_TYPE_BADGE, NODEPOOL_MODE_BADGE } from '../../../utils/badge-colors'
|
|
@@ -16,6 +16,7 @@ export function AzureManagedMachinePoolRenderer({ data }: Props) {
|
|
|
16
16
|
const conditions = getCAPIConditions(data)
|
|
17
17
|
const mmpStatus = getAzureMMPStatus(data)
|
|
18
18
|
const isFailed = mmpStatus.level === 'unhealthy'
|
|
19
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
19
20
|
const readyCond = conditions.find((c: any) => c.type === 'Ready')
|
|
20
21
|
const scaling = getAzureMMPScaling(data)
|
|
21
22
|
const mode = getAzureMMPMode(data)
|
|
@@ -26,7 +27,7 @@ export function AzureManagedMachinePoolRenderer({ data }: Props) {
|
|
|
26
27
|
|
|
27
28
|
return (
|
|
28
29
|
<>
|
|
29
|
-
{isFailed && (
|
|
30
|
+
{isFailed && !operationalIssuesShown && (
|
|
30
31
|
<AlertBanner variant="error" title="AKS Node Pool Not Ready" message={readyCond?.message || 'AzureManagedMachinePool is not ready.'} />
|
|
31
32
|
)}
|
|
32
33
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react'
|
|
2
2
|
import { Server, Globe, Network, Layers, Download, CheckCircle, AlertCircle } from 'lucide-react'
|
|
3
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceLink } from '../../ui/drawer-components'
|
|
3
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceLink, useOperationalIssuesShown} from '../../ui/drawer-components'
|
|
4
4
|
import { kindToPlural } from '../../../utils/navigation'
|
|
5
5
|
import { formatAge } from '../resource-utils'
|
|
6
6
|
import { getClusterStatus, getClusterClass, getClusterVersion, getClusterEndpoint, getProviderFromInfraKind, parseCAPIConditionMessage } from '../resource-utils-capi'
|
|
@@ -18,6 +18,7 @@ export function CAPIClusterRenderer({ data, onNavigate, apiBase = '' }: Props) {
|
|
|
18
18
|
|
|
19
19
|
const clusterStatus = getClusterStatus(data)
|
|
20
20
|
const isFailed = clusterStatus.level === 'unhealthy'
|
|
21
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
21
22
|
const readyCond = conditions.find((c: any) => c.type === 'Ready' || c.type === 'Available')
|
|
22
23
|
|
|
23
24
|
const phase = status.phase || 'Unknown'
|
|
@@ -102,7 +103,7 @@ export function CAPIClusterRenderer({ data, onNavigate, apiBase = '' }: Props) {
|
|
|
102
103
|
/>
|
|
103
104
|
)}
|
|
104
105
|
|
|
105
|
-
{isFailed && (() => {
|
|
106
|
+
{isFailed && !operationalIssuesShown && (() => {
|
|
106
107
|
const msg = readyCond?.message || `Cluster is in ${phase} state.`
|
|
107
108
|
const items = parseCAPIConditionMessage(msg)
|
|
108
109
|
return <AlertBanner variant="error" title="Cluster Not Ready" items={items || undefined} message={items ? undefined : msg} />
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Server, Shield, Settings } from 'lucide-react'
|
|
2
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceLink } from '../../ui/drawer-components'
|
|
2
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceLink, useOperationalIssuesShown} from '../../ui/drawer-components'
|
|
3
3
|
import { kindToPlural } from '../../../utils/navigation'
|
|
4
4
|
import { formatAge } from '../resource-utils'
|
|
5
5
|
import { getKCPStatus, getKCPVersion, getKCPInitialized, getMachineClusterName } from '../resource-utils-capi'
|
|
@@ -16,6 +16,7 @@ export function CAPIKubeadmControlPlaneRenderer({ data, onNavigate }: Props) {
|
|
|
16
16
|
|
|
17
17
|
const kcpStatus = getKCPStatus(data)
|
|
18
18
|
const isFailed = kcpStatus.level === 'unhealthy'
|
|
19
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
19
20
|
const readyCond = conditions.find((c: any) => c.type === 'Ready')
|
|
20
21
|
|
|
21
22
|
const clusterName = getMachineClusterName(data)
|
|
@@ -33,7 +34,7 @@ export function CAPIKubeadmControlPlaneRenderer({ data, onNavigate }: Props) {
|
|
|
33
34
|
|
|
34
35
|
return (
|
|
35
36
|
<>
|
|
36
|
-
{isFailed && (
|
|
37
|
+
{isFailed && !operationalIssuesShown && (
|
|
37
38
|
<AlertBanner
|
|
38
39
|
variant="error"
|
|
39
40
|
title="Control Plane Not Ready"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Server, Settings } from 'lucide-react'
|
|
2
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceLink } from '../../ui/drawer-components'
|
|
2
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceLink, useOperationalIssuesShown} from '../../ui/drawer-components'
|
|
3
3
|
import { kindToPlural } from '../../../utils/navigation'
|
|
4
4
|
import { formatAge } from '../resource-utils'
|
|
5
5
|
import { getMachineDeploymentStatus, getMachineDeploymentVersion, getMachineClusterName } from '../resource-utils-capi'
|
|
@@ -16,6 +16,7 @@ export function CAPIMachineDeploymentRenderer({ data, onNavigate }: Props) {
|
|
|
16
16
|
|
|
17
17
|
const mdStatus = getMachineDeploymentStatus(data)
|
|
18
18
|
const isFailed = mdStatus.level === 'unhealthy'
|
|
19
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
19
20
|
const readyCond = conditions.find((c: any) => c.type === 'Ready')
|
|
20
21
|
|
|
21
22
|
const phase = status.phase || 'Unknown'
|
|
@@ -40,7 +41,7 @@ export function CAPIMachineDeploymentRenderer({ data, onNavigate }: Props) {
|
|
|
40
41
|
/>
|
|
41
42
|
)}
|
|
42
43
|
|
|
43
|
-
{isFailed && (
|
|
44
|
+
{isFailed && !operationalIssuesShown && (
|
|
44
45
|
<AlertBanner
|
|
45
46
|
variant="error"
|
|
46
47
|
title="MachineDeployment Not Ready"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HeartPulse, Settings, Shield } from 'lucide-react'
|
|
2
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, LabelSelectorDisplay } from '../../ui/drawer-components'
|
|
2
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, LabelSelectorDisplay, useOperationalIssuesShown} from '../../ui/drawer-components'
|
|
3
3
|
import { getMachineHealthCheckStatus, getMachineHealthCheckClusterName } from '../resource-utils-capi'
|
|
4
4
|
|
|
5
5
|
interface Props {
|
|
@@ -14,6 +14,7 @@ export function CAPIMachineHealthCheckRenderer({ data }: Props) {
|
|
|
14
14
|
|
|
15
15
|
const mhcStatus = getMachineHealthCheckStatus(data)
|
|
16
16
|
const isFailed = mhcStatus.level === 'unhealthy'
|
|
17
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
17
18
|
const readyCond = conditions.find((c: any) => c.type === 'Ready')
|
|
18
19
|
|
|
19
20
|
const clusterName = getMachineHealthCheckClusterName(data)
|
|
@@ -31,7 +32,7 @@ export function CAPIMachineHealthCheckRenderer({ data }: Props) {
|
|
|
31
32
|
|
|
32
33
|
return (
|
|
33
34
|
<>
|
|
34
|
-
{isFailed && (
|
|
35
|
+
{isFailed && !operationalIssuesShown && (
|
|
35
36
|
<AlertBanner
|
|
36
37
|
variant="error"
|
|
37
38
|
title="MachineHealthCheck Issue"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Server, Settings } from 'lucide-react'
|
|
2
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceLink } from '../../ui/drawer-components'
|
|
2
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceLink, useOperationalIssuesShown} from '../../ui/drawer-components'
|
|
3
3
|
import { kindToPlural } from '../../../utils/navigation'
|
|
4
4
|
import { formatAge } from '../resource-utils'
|
|
5
5
|
import { getMachinePoolStatus } from '../resource-utils-capi'
|
|
@@ -16,6 +16,7 @@ export function CAPIMachinePoolRenderer({ data, onNavigate }: Props) {
|
|
|
16
16
|
|
|
17
17
|
const mpStatus = getMachinePoolStatus(data)
|
|
18
18
|
const isFailed = mpStatus.level === 'unhealthy'
|
|
19
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
19
20
|
const readyCond = conditions.find((c: any) => c.type === 'Ready')
|
|
20
21
|
|
|
21
22
|
const clusterName = spec.clusterName || data.metadata?.labels?.['cluster.x-k8s.io/cluster-name'] || '-'
|
|
@@ -27,7 +28,7 @@ export function CAPIMachinePoolRenderer({ data, onNavigate }: Props) {
|
|
|
27
28
|
|
|
28
29
|
return (
|
|
29
30
|
<>
|
|
30
|
-
{isFailed && (
|
|
31
|
+
{isFailed && !operationalIssuesShown && (
|
|
31
32
|
<AlertBanner
|
|
32
33
|
variant="error"
|
|
33
34
|
title="MachinePool Not Ready"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Cpu, Server, Network, Cloud } from 'lucide-react'
|
|
2
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceLink } from '../../ui/drawer-components'
|
|
2
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceLink, useOperationalIssuesShown} from '../../ui/drawer-components'
|
|
3
3
|
import { kindToPlural } from '../../../utils/navigation'
|
|
4
4
|
import { formatAge } from '../resource-utils'
|
|
5
5
|
import { getMachineStatus, getMachineRole, getMachineClusterName, getMachineNodeRef, getMachineVersion, getMachineProviderID, parseProviderID, getProviderFromInfraKind, parseCAPIConditionMessage } from '../resource-utils-capi'
|
|
@@ -16,6 +16,7 @@ export function CAPIMachineRenderer({ data, onNavigate }: Props) {
|
|
|
16
16
|
|
|
17
17
|
const machineStatus = getMachineStatus(data)
|
|
18
18
|
const isFailed = machineStatus.level === 'unhealthy'
|
|
19
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
19
20
|
const readyCond = conditions.find((c: any) => c.type === 'Ready')
|
|
20
21
|
// Find the most informative False condition for the alert message
|
|
21
22
|
const falseCond = conditions.find((c: any) =>
|
|
@@ -38,7 +39,7 @@ export function CAPIMachineRenderer({ data, onNavigate }: Props) {
|
|
|
38
39
|
|
|
39
40
|
return (
|
|
40
41
|
<>
|
|
41
|
-
{isFailed && (() => {
|
|
42
|
+
{isFailed && !operationalIssuesShown && (() => {
|
|
42
43
|
const msg = falseCond?.message || readyCond?.message || `Machine is in ${phase} state.`
|
|
43
44
|
const items = parseCAPIConditionMessage(msg)
|
|
44
45
|
return <AlertBanner variant="error" title="Machine Not Ready" items={items || undefined} message={items ? undefined : msg} />
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Server, Settings } from 'lucide-react'
|
|
2
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceLink } from '../../ui/drawer-components'
|
|
2
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceLink, useOperationalIssuesShown} from '../../ui/drawer-components'
|
|
3
3
|
import { kindToPlural } from '../../../utils/navigation'
|
|
4
4
|
import { formatAge } from '../resource-utils'
|
|
5
5
|
import { getMachineSetStatus, getMachineClusterName } from '../resource-utils-capi'
|
|
@@ -16,6 +16,7 @@ export function CAPIMachineSetRenderer({ data, onNavigate }: Props) {
|
|
|
16
16
|
|
|
17
17
|
const msStatus = getMachineSetStatus(data)
|
|
18
18
|
const isFailed = msStatus.level === 'unhealthy'
|
|
19
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
19
20
|
const readyCond = conditions.find((c: any) => c.type === 'Ready')
|
|
20
21
|
|
|
21
22
|
const clusterName = getMachineClusterName(data)
|
|
@@ -29,7 +30,7 @@ export function CAPIMachineSetRenderer({ data, onNavigate }: Props) {
|
|
|
29
30
|
|
|
30
31
|
return (
|
|
31
32
|
<>
|
|
32
|
-
{isFailed && (
|
|
33
|
+
{isFailed && !operationalIssuesShown && (
|
|
33
34
|
<AlertBanner
|
|
34
35
|
variant="error"
|
|
35
36
|
title="MachineSet Not Ready"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Shield, Clock, Globe, Key } from 'lucide-react'
|
|
2
2
|
import { clsx } from 'clsx'
|
|
3
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner } from '../../ui/drawer-components'
|
|
3
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, useOperationalIssuesShown} from '../../ui/drawer-components'
|
|
4
4
|
import { pluralize } from '../../../utils/pluralize'
|
|
5
5
|
|
|
6
6
|
interface CertificateRendererProps {
|
|
@@ -34,6 +34,7 @@ export function CertificateRenderer({ data }: CertificateRendererProps) {
|
|
|
34
34
|
const readyCond = conditions.find((c: any) => c.type === 'Ready')
|
|
35
35
|
const isReady = readyCond?.status === 'True'
|
|
36
36
|
const isNotReady = readyCond?.status === 'False'
|
|
37
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
37
38
|
|
|
38
39
|
const notAfter = status.notAfter
|
|
39
40
|
const notBefore = status.notBefore
|
|
@@ -69,7 +70,7 @@ export function CertificateRenderer({ data }: CertificateRendererProps) {
|
|
|
69
70
|
return (
|
|
70
71
|
<>
|
|
71
72
|
{/* Problem detection alerts */}
|
|
72
|
-
{isNotReady && (
|
|
73
|
+
{isNotReady && !operationalIssuesShown && (
|
|
73
74
|
<AlertBanner
|
|
74
75
|
variant="error"
|
|
75
76
|
title="Certificate Not Ready"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Shield, FileText, Info } from 'lucide-react'
|
|
2
2
|
import { clsx } from 'clsx'
|
|
3
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner } from '../../ui/drawer-components'
|
|
3
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, useOperationalIssuesShown} from '../../ui/drawer-components'
|
|
4
4
|
|
|
5
5
|
interface CertificateRequestRendererProps {
|
|
6
6
|
data: any
|
|
@@ -20,6 +20,7 @@ export function CertificateRequestRenderer({ data }: CertificateRequestRendererP
|
|
|
20
20
|
|
|
21
21
|
const isReady = readyCond?.status === 'True'
|
|
22
22
|
const isNotReady = readyCond?.status === 'False'
|
|
23
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
23
24
|
const isApproved = approvedCond?.status === 'True'
|
|
24
25
|
const isDenied = deniedCond?.status === 'True'
|
|
25
26
|
|
|
@@ -28,7 +29,7 @@ export function CertificateRequestRenderer({ data }: CertificateRequestRendererP
|
|
|
28
29
|
return (
|
|
29
30
|
<>
|
|
30
31
|
{/* Problem detection alerts */}
|
|
31
|
-
{isNotReady && (
|
|
32
|
+
{isNotReady && !operationalIssuesShown && (
|
|
32
33
|
<AlertBanner
|
|
33
34
|
variant="error"
|
|
34
35
|
title="Certificate Request Not Ready"
|
|
@@ -2,6 +2,7 @@ import { useState, useMemo } from 'react'
|
|
|
2
2
|
import { ShieldCheck, ChevronDown, ChevronRight, CheckCircle2, XCircle, Search } from 'lucide-react'
|
|
3
3
|
import { clsx } from 'clsx'
|
|
4
4
|
import { Section, PropertyList, Property, AlertBanner } from '../../ui/drawer-components'
|
|
5
|
+
import { Input } from '../../ui/Input'
|
|
5
6
|
import { formatAge } from '../resource-utils'
|
|
6
7
|
import { SEVERITY_BADGE_COLORS, SEVERITY_ORDER } from './trivy-shared'
|
|
7
8
|
import { pluralize } from '../../../utils/pluralize'
|
|
@@ -138,8 +139,7 @@ export function ClusterComplianceReportRenderer({ data }: ClusterComplianceRepor
|
|
|
138
139
|
<div className="flex items-center gap-2 mb-2">
|
|
139
140
|
<div className="relative flex-1">
|
|
140
141
|
<Search className="absolute left-2 top-1/2 -translate-y-1/2 w-3 h-3 text-theme-text-tertiary" />
|
|
141
|
-
<
|
|
142
|
-
type="text"
|
|
142
|
+
<Input
|
|
143
143
|
placeholder="Filter by control name or ID..."
|
|
144
144
|
value={searchTerm}
|
|
145
145
|
onChange={(e) => setSearchTerm(e.target.value)}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { clsx } from 'clsx'
|
|
2
2
|
import { Layers, GitBranch, Box, ChevronRight, Pause } from 'lucide-react'
|
|
3
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceLink } from '../../ui/drawer-components'
|
|
3
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceLink, useOperationalIssuesShown} from '../../ui/drawer-components'
|
|
4
4
|
import { Tooltip } from '../../ui/Tooltip'
|
|
5
5
|
import {
|
|
6
6
|
getCrossplaneStatus,
|
|
@@ -78,6 +78,7 @@ export function CompositeRenderer({ data, onNavigate, composedRefStatuses }: Com
|
|
|
78
78
|
const boundXR = claim ? getBoundXRRef(data) : null
|
|
79
79
|
const paused = isCrossplanePaused(data)
|
|
80
80
|
const alertVariant = status.level === 'unhealthy' || status.level === 'alert' ? status.level : null
|
|
81
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
81
82
|
|
|
82
83
|
return (
|
|
83
84
|
<>
|
|
@@ -90,7 +91,7 @@ export function CompositeRenderer({ data, onNavigate, composedRefStatuses }: Com
|
|
|
90
91
|
/>
|
|
91
92
|
)}
|
|
92
93
|
|
|
93
|
-
{alertVariant && reason && (
|
|
94
|
+
{alertVariant && reason && !operationalIssuesShown && (
|
|
94
95
|
<AlertBanner
|
|
95
96
|
variant={alertVariant === 'unhealthy' ? 'error' : 'warning'}
|
|
96
97
|
title={status.text}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { Clock, Pause } from 'lucide-react'
|
|
2
|
+
import { Section, PropertyList, Property, AlertBanner, ResourceLink, ConditionsSection } from '../../ui/drawer-components'
|
|
3
|
+
import { formatAge, cronToHuman } from '../resource-utils'
|
|
4
|
+
|
|
5
|
+
interface CronWorkflowRendererProps {
|
|
6
|
+
data: any
|
|
7
|
+
onNavigate?: (ref: { kind: string; namespace: string; name: string; group?: string }) => void
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function CronWorkflowRenderer({ data, onNavigate }: CronWorkflowRendererProps) {
|
|
11
|
+
const spec = data.spec || {}
|
|
12
|
+
const status = data.status || {}
|
|
13
|
+
const workflowSpec = spec.workflowSpec || {}
|
|
14
|
+
const schedules = Array.isArray(spec.schedules) ? spec.schedules : spec.schedule ? [spec.schedule] : []
|
|
15
|
+
const isSuspended = spec.suspend === true
|
|
16
|
+
const active = Array.isArray(status.active) ? status.active : []
|
|
17
|
+
const workflowTemplateRef = workflowSpec.workflowTemplateRef || null
|
|
18
|
+
const templateName = workflowTemplateRef?.name || workflowTemplateRef?.template || ''
|
|
19
|
+
const templateClusterScope = workflowTemplateRef?.clusterScope === true
|
|
20
|
+
const hasNeverRun = !status.lastScheduledTime && active.length === 0
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<>
|
|
24
|
+
{isSuspended && (
|
|
25
|
+
<AlertBanner
|
|
26
|
+
variant="info"
|
|
27
|
+
icon={Pause}
|
|
28
|
+
title="CronWorkflow Suspended"
|
|
29
|
+
message="No new Workflows will be scheduled until this CronWorkflow is resumed."
|
|
30
|
+
/>
|
|
31
|
+
)}
|
|
32
|
+
|
|
33
|
+
{hasNeverRun && !isSuspended && (
|
|
34
|
+
<AlertBanner
|
|
35
|
+
variant="info"
|
|
36
|
+
title="Never Scheduled"
|
|
37
|
+
message="This CronWorkflow has no retained active or historical Workflow runs in status."
|
|
38
|
+
/>
|
|
39
|
+
)}
|
|
40
|
+
|
|
41
|
+
<Section title="Schedule" icon={Clock}>
|
|
42
|
+
<PropertyList>
|
|
43
|
+
<Property label={schedules.length === 1 ? 'Schedule' : 'Schedules'} value={schedules.join(', ')} />
|
|
44
|
+
{schedules.length === 1 && <Property label="Human" value={cronToHuman(schedules[0])} />}
|
|
45
|
+
<Property label="Timezone" value={spec.timezone || 'Cluster default'} />
|
|
46
|
+
<Property label="Suspend" value={isSuspended ? 'Yes' : 'No'} />
|
|
47
|
+
<Property label="Concurrency" value={spec.concurrencyPolicy || 'Allow'} />
|
|
48
|
+
<Property label="Last Scheduled" value={status.lastScheduledTime ? formatAge(status.lastScheduledTime) : 'Never'} />
|
|
49
|
+
<Property label="Active Workflows" value={active.length} />
|
|
50
|
+
</PropertyList>
|
|
51
|
+
</Section>
|
|
52
|
+
|
|
53
|
+
<Section title="Workflow Template">
|
|
54
|
+
<PropertyList>
|
|
55
|
+
{templateName && (
|
|
56
|
+
<Property
|
|
57
|
+
label="Template Ref"
|
|
58
|
+
value={
|
|
59
|
+
<ResourceLink
|
|
60
|
+
name={templateName}
|
|
61
|
+
kind={templateClusterScope ? 'clusterworkflowtemplates' : 'workflowtemplates'}
|
|
62
|
+
namespace={templateClusterScope ? '' : data.metadata?.namespace || ''}
|
|
63
|
+
group="argoproj.io"
|
|
64
|
+
label={templateClusterScope ? `${templateName} (cluster)` : templateName}
|
|
65
|
+
onNavigate={onNavigate}
|
|
66
|
+
/>
|
|
67
|
+
}
|
|
68
|
+
/>
|
|
69
|
+
)}
|
|
70
|
+
<Property label="Entrypoint" value={workflowSpec.entrypoint || '-'} />
|
|
71
|
+
<Property label="Arguments" value={(workflowSpec.arguments?.parameters || []).length} />
|
|
72
|
+
<Property label="Templates" value={(workflowSpec.templates || []).length} />
|
|
73
|
+
</PropertyList>
|
|
74
|
+
</Section>
|
|
75
|
+
|
|
76
|
+
<Section title="History">
|
|
77
|
+
<PropertyList>
|
|
78
|
+
<Property label="Success History" value={spec.successfulJobsHistoryLimit ?? 3} />
|
|
79
|
+
<Property label="Failed History" value={spec.failedJobsHistoryLimit ?? 1} />
|
|
80
|
+
<Property label="Starting Deadline" value={spec.startingDeadlineSeconds ? `${spec.startingDeadlineSeconds}s` : 'None'} />
|
|
81
|
+
</PropertyList>
|
|
82
|
+
</Section>
|
|
83
|
+
|
|
84
|
+
{active.length > 0 && (
|
|
85
|
+
<Section title="Active Workflows">
|
|
86
|
+
<div className="space-y-1">
|
|
87
|
+
{active.map((wf: any) => (
|
|
88
|
+
<div key={`${wf.namespace || data.metadata?.namespace || ''}/${wf.name}`} className="text-sm">
|
|
89
|
+
<ResourceLink name={wf.name} kind="workflows" namespace={wf.namespace || data.metadata?.namespace || ''} group="argoproj.io" onNavigate={onNavigate} />
|
|
90
|
+
</div>
|
|
91
|
+
))}
|
|
92
|
+
</div>
|
|
93
|
+
</Section>
|
|
94
|
+
)}
|
|
95
|
+
|
|
96
|
+
<ConditionsSection conditions={status.conditions} />
|
|
97
|
+
</>
|
|
98
|
+
)
|
|
99
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { KeyRound, RefreshCw, CloudCog } from 'lucide-react'
|
|
2
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceLink } from '../../ui/drawer-components'
|
|
2
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceLink, useOperationalIssuesShown } from '../../ui/drawer-components'
|
|
3
3
|
import {
|
|
4
4
|
getExternalSecretStatus,
|
|
5
5
|
getExternalSecretStore,
|
|
@@ -30,11 +30,12 @@ export function ExternalSecretRenderer({ data, onNavigate }: ExternalSecretRende
|
|
|
30
30
|
// Problem detection
|
|
31
31
|
const readyCond = conditions.find((c: any) => c.type === 'Ready')
|
|
32
32
|
const isNotReady = readyCond?.status === 'False'
|
|
33
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
33
34
|
|
|
34
35
|
return (
|
|
35
36
|
<>
|
|
36
37
|
{/* Alert if not synced */}
|
|
37
|
-
{isNotReady && (
|
|
38
|
+
{isNotReady && !operationalIssuesShown && (
|
|
38
39
|
<AlertBanner
|
|
39
40
|
variant="error"
|
|
40
41
|
title="ExternalSecret Not Synced"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Cpu, Cloud } from 'lucide-react'
|
|
2
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner } from '../../ui/drawer-components'
|
|
2
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, useOperationalIssuesShown} from '../../ui/drawer-components'
|
|
3
3
|
import { getCAPIConditions } from '../resource-utils-capi'
|
|
4
4
|
import { getGCPMachineStatus, getGCPMachineInstanceType, getGCPMachineZone, getGCPMachineInstanceID } from '../resource-utils-gcp-capi'
|
|
5
5
|
|
|
@@ -13,11 +13,12 @@ export function GCPMachineRenderer({ data }: Props) {
|
|
|
13
13
|
const conditions = getCAPIConditions(data)
|
|
14
14
|
const machineStatus = getGCPMachineStatus(data)
|
|
15
15
|
const isFailed = machineStatus.level === 'unhealthy'
|
|
16
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
16
17
|
const readyCond = conditions.find((c: any) => c.type === 'Ready')
|
|
17
18
|
|
|
18
19
|
return (
|
|
19
20
|
<>
|
|
20
|
-
{isFailed && (
|
|
21
|
+
{isFailed && !operationalIssuesShown && (
|
|
21
22
|
<AlertBanner variant="error" title="GCP Machine Not Ready" message={readyCond?.message || 'GCPMachine is not ready.'} />
|
|
22
23
|
)}
|
|
23
24
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Globe, Shield, Settings } from 'lucide-react'
|
|
2
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner } from '../../ui/drawer-components'
|
|
2
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, useOperationalIssuesShown} from '../../ui/drawer-components'
|
|
3
3
|
import { getCAPIConditions } from '../resource-utils-capi'
|
|
4
4
|
import { getGCPMCPStatus, getGCPMCPClusterName, getGCPMCPProject, getGCPMCPLocation, getGCPMCPVersion, getGCPMCPReleaseChannel, getGCPMCPAutopilot, getGCPMCPEndpoint } from '../resource-utils-gcp-capi'
|
|
5
5
|
|
|
@@ -13,13 +13,14 @@ export function GCPManagedControlPlaneRenderer({ data }: Props) {
|
|
|
13
13
|
const conditions = getCAPIConditions(data)
|
|
14
14
|
const mcpStatus = getGCPMCPStatus(data)
|
|
15
15
|
const isFailed = mcpStatus.level === 'unhealthy'
|
|
16
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
16
17
|
const readyCond = conditions.find((c: any) => c.type === 'Ready')
|
|
17
18
|
const endpoint = getGCPMCPEndpoint(data)
|
|
18
19
|
const masterAuth = spec.master_authorized_networks_config
|
|
19
20
|
|
|
20
21
|
return (
|
|
21
22
|
<>
|
|
22
|
-
{isFailed && (
|
|
23
|
+
{isFailed && !operationalIssuesShown && (
|
|
23
24
|
<AlertBanner variant="error" title="GKE Control Plane Not Ready" message={readyCond?.message || 'GCPManagedControlPlane is not ready.'} />
|
|
24
25
|
)}
|
|
25
26
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Server, Settings } from 'lucide-react'
|
|
2
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner } from '../../ui/drawer-components'
|
|
2
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, useOperationalIssuesShown} from '../../ui/drawer-components'
|
|
3
3
|
import { getCAPIConditions } from '../resource-utils-capi'
|
|
4
4
|
import { getGCPMMPStatus, getGCPMMPNodePoolName, getGCPMMPMachineType, getGCPMMPDiskInfo, getGCPMMPScaling, getGCPMMPImageType } from '../resource-utils-gcp-capi'
|
|
5
5
|
|
|
@@ -14,6 +14,7 @@ export function GCPManagedMachinePoolRenderer({ data }: Props) {
|
|
|
14
14
|
const conditions = getCAPIConditions(data)
|
|
15
15
|
const mmpStatus = getGCPMMPStatus(data)
|
|
16
16
|
const isFailed = mmpStatus.level === 'unhealthy'
|
|
17
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
17
18
|
const readyCond = conditions.find((c: any) => c.type === 'Ready')
|
|
18
19
|
const scaling = getGCPMMPScaling(data)
|
|
19
20
|
const management = spec.management || {}
|
|
@@ -23,7 +24,7 @@ export function GCPManagedMachinePoolRenderer({ data }: Props) {
|
|
|
23
24
|
|
|
24
25
|
return (
|
|
25
26
|
<>
|
|
26
|
-
{isFailed && (
|
|
27
|
+
{isFailed && !operationalIssuesShown && (
|
|
27
28
|
<AlertBanner variant="error" title="GKE Node Pool Not Ready" message={readyCond?.message || 'GCPManagedMachinePool is not ready.'} />
|
|
28
29
|
)}
|
|
29
30
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Globe, ArrowRight, Network, Filter } from 'lucide-react'
|
|
2
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceRefBadge } from '../../ui/drawer-components'
|
|
2
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceRefBadge, useOperationalIssuesShown } from '../../ui/drawer-components'
|
|
3
3
|
import { Badge } from '../../ui/Badge'
|
|
4
4
|
import type { ResourceRef } from '../../../types'
|
|
5
5
|
|
|
@@ -23,6 +23,10 @@ export function GRPCRouteRenderer({ data, onNavigate }: GRPCRouteRendererProps)
|
|
|
23
23
|
const unresolvedRefsParents = parentStatuses.filter((p: any) =>
|
|
24
24
|
(p.conditions || []).some((c: any) => c.type === 'ResolvedRefs' && c.status === 'False')
|
|
25
25
|
)
|
|
26
|
+
// The Operational Issues section (when the host shows it) already reports these
|
|
27
|
+
// Accepted/ResolvedRefs failures with richer cause + next-step context, so drop
|
|
28
|
+
// the renderer's own banners to avoid showing the same failure twice.
|
|
29
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
26
30
|
|
|
27
31
|
const firstParentConditions = parentStatuses.length > 0
|
|
28
32
|
? parentStatuses[0].conditions
|
|
@@ -47,7 +51,7 @@ export function GRPCRouteRenderer({ data, onNavigate }: GRPCRouteRendererProps)
|
|
|
47
51
|
|
|
48
52
|
return (
|
|
49
53
|
<>
|
|
50
|
-
{notAcceptedParents.length > 0 && (
|
|
54
|
+
{notAcceptedParents.length > 0 && !operationalIssuesShown && (
|
|
51
55
|
<AlertBanner
|
|
52
56
|
variant="error"
|
|
53
57
|
title="Route Not Accepted"
|
|
@@ -61,7 +65,7 @@ export function GRPCRouteRenderer({ data, onNavigate }: GRPCRouteRendererProps)
|
|
|
61
65
|
/>
|
|
62
66
|
)}
|
|
63
67
|
|
|
64
|
-
{unresolvedRefsParents.length > 0 && (
|
|
68
|
+
{unresolvedRefsParents.length > 0 && !operationalIssuesShown && (
|
|
65
69
|
<AlertBanner
|
|
66
70
|
variant="warning"
|
|
67
71
|
title="Unresolved References"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Cpu } from 'lucide-react'
|
|
2
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner } from '../../ui/drawer-components'
|
|
2
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, useOperationalIssuesShown } from '../../ui/drawer-components'
|
|
3
3
|
import { Badge } from '../../ui/Badge'
|
|
4
4
|
|
|
5
5
|
interface GatewayClassRendererProps {
|
|
@@ -14,11 +14,12 @@ export function GatewayClassRenderer({ data }: GatewayClassRendererProps) {
|
|
|
14
14
|
const acceptedCond = conditions.find((c: any) => c.type === 'Accepted')
|
|
15
15
|
const isAccepted = acceptedCond?.status === 'True'
|
|
16
16
|
const isNotAccepted = acceptedCond?.status === 'False'
|
|
17
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
17
18
|
|
|
18
19
|
return (
|
|
19
20
|
<>
|
|
20
21
|
{/* Problem detection alert */}
|
|
21
|
-
{isNotAccepted && (
|
|
22
|
+
{isNotAccepted && !operationalIssuesShown && (
|
|
22
23
|
<AlertBanner
|
|
23
24
|
variant="error"
|
|
24
25
|
title="GatewayClass Not Accepted"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Globe, ArrowRight, Network, Filter } from 'lucide-react'
|
|
2
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceRefBadge } from '../../ui/drawer-components'
|
|
2
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, ResourceRefBadge, useOperationalIssuesShown } from '../../ui/drawer-components'
|
|
3
3
|
import { Badge } from '../../ui/Badge'
|
|
4
4
|
import type { ResourceRef } from '../../../types'
|
|
5
5
|
|
|
@@ -23,6 +23,10 @@ export function HTTPRouteRenderer({ data, onNavigate }: HTTPRouteRendererProps)
|
|
|
23
23
|
const unresolvedRefsParents = parentStatuses.filter((p: any) =>
|
|
24
24
|
(p.conditions || []).some((c: any) => c.type === 'ResolvedRefs' && c.status === 'False')
|
|
25
25
|
)
|
|
26
|
+
// The Operational Issues section (when the host shows it) already reports these
|
|
27
|
+
// Accepted/ResolvedRefs failures with richer cause + next-step context, so drop
|
|
28
|
+
// the renderer's own banners to avoid showing the same failure twice.
|
|
29
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
26
30
|
|
|
27
31
|
const firstParentConditions = parentStatuses.length > 0
|
|
28
32
|
? parentStatuses[0].conditions
|
|
@@ -47,7 +51,7 @@ export function HTTPRouteRenderer({ data, onNavigate }: HTTPRouteRendererProps)
|
|
|
47
51
|
|
|
48
52
|
return (
|
|
49
53
|
<>
|
|
50
|
-
{notAcceptedParents.length > 0 && (
|
|
54
|
+
{notAcceptedParents.length > 0 && !operationalIssuesShown && (
|
|
51
55
|
<AlertBanner
|
|
52
56
|
variant="error"
|
|
53
57
|
title="Route Not Accepted"
|
|
@@ -61,7 +65,7 @@ export function HTTPRouteRenderer({ data, onNavigate }: HTTPRouteRendererProps)
|
|
|
61
65
|
/>
|
|
62
66
|
)}
|
|
63
67
|
|
|
64
|
-
{unresolvedRefsParents.length > 0 && (
|
|
68
|
+
{unresolvedRefsParents.length > 0 && !operationalIssuesShown && (
|
|
65
69
|
<AlertBanner
|
|
66
70
|
variant="warning"
|
|
67
71
|
title="Unresolved References"
|
|
@@ -48,7 +48,9 @@ export function JobRenderer({ data }: JobRendererProps) {
|
|
|
48
48
|
const conditions = status.conditions || []
|
|
49
49
|
|
|
50
50
|
const startTime = status.startTime ? new Date(status.startTime) : null
|
|
51
|
-
const
|
|
51
|
+
const terminalCondition = conditions.find((c: any) => (c.type === 'Complete' || c.type === 'Failed') && c.status === 'True')
|
|
52
|
+
const finishedAt = status.completionTime || terminalCondition?.lastTransitionTime
|
|
53
|
+
const completionTime = finishedAt ? new Date(finishedAt) : null
|
|
52
54
|
const duration = startTime && completionTime
|
|
53
55
|
? formatDuration(completionTime.getTime() - startTime.getTime(), true)
|
|
54
56
|
: startTime
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Server, HardDrive, Shield, Network, Tag, Image } from 'lucide-react'
|
|
2
|
-
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, KeyValueBadgeList } from '../../ui/drawer-components'
|
|
2
|
+
import { Section, PropertyList, Property, ConditionsSection, AlertBanner, KeyValueBadgeList, useOperationalIssuesShown } from '../../ui/drawer-components'
|
|
3
3
|
import { getEC2NodeClassStatus } from '../resource-utils-karpenter'
|
|
4
4
|
|
|
5
5
|
interface KarpenterEC2NodeClassRendererProps {
|
|
@@ -13,6 +13,7 @@ export function KarpenterEC2NodeClassRenderer({ data }: KarpenterEC2NodeClassRen
|
|
|
13
13
|
|
|
14
14
|
const nodeClassStatus = getEC2NodeClassStatus(data)
|
|
15
15
|
const isNotReady = nodeClassStatus.level === 'unhealthy'
|
|
16
|
+
const operationalIssuesShown = useOperationalIssuesShown()
|
|
16
17
|
const readyCond = conditions.find((c: any) => c.type === 'Ready')
|
|
17
18
|
|
|
18
19
|
const amiTerms = spec.amiSelectorTerms || []
|
|
@@ -28,7 +29,7 @@ export function KarpenterEC2NodeClassRenderer({ data }: KarpenterEC2NodeClassRen
|
|
|
28
29
|
|
|
29
30
|
return (
|
|
30
31
|
<>
|
|
31
|
-
{isNotReady && (
|
|
32
|
+
{isNotReady && !operationalIssuesShown && (
|
|
32
33
|
<AlertBanner
|
|
33
34
|
variant="error"
|
|
34
35
|
title="EC2NodeClass Not Ready"
|