From 006ed40a63cbae47a3d56481590e6ed6fd66cefd Mon Sep 17 00:00:00 2001 From: AlinaGoaga <35202557+AlinaGoaga@users.noreply.github.com> Date: Wed, 4 Oct 2023 18:13:40 +0200 Subject: [PATCH] Fix hr related message appearing on ks (#4066) * Fix hr related message appearing on ks * Fix hr related message appearing on ks - updated --- ui/components/AutomationDetail.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/components/AutomationDetail.tsx b/ui/components/AutomationDetail.tsx index 9dec01033b..9b3439585e 100644 --- a/ui/components/AutomationDetail.tsx +++ b/ui/components/AutomationDetail.tsx @@ -27,7 +27,7 @@ import Timestamp from "./Timestamp"; import YamlView from "./YamlView"; const hrInfoMessage = - "spec.Kubeconfig is set on this HelmRelease. Details about reconciled objects are not available."; + "spec.kubeConfig is set on this HelmRelease. Details about reconciled objects are not available."; type Props = { automation: Automation; @@ -83,6 +83,10 @@ function AutomationDetail({ const canaryStatus = createCanaryCondition(data?.objects); const health = computeAggHealthCheck(data?.objects || []); + // We cannot show reconciled objects for remote HelmReleases + const skipReconciledObjectsTable = + automation.type === "HelmRelease" && + (automation as HelmRelease).kubeConfig !== ""; const defaultTabs: Array = [ { @@ -91,8 +95,7 @@ function AutomationDetail({ component: () => { return ( - {automation.type === "HelmRelease" && - (automation as HelmRelease).kubeConfig === "" ? ( + {!skipReconciledObjectsTable ? (