Преглед изворни кода

Avoid showing deployment type if the image is hello-porter

jnfrati пре 4 година
родитељ
комит
af21bf76a6
1 измењених фајлова са 11 додато и 3 уклоњено
  1. 11 3
      dashboard/src/main/home/cluster-dashboard/expanded-chart/ExpandedChart.tsx

+ 11 - 3
dashboard/src/main/home/cluster-dashboard/expanded-chart/ExpandedChart.tsx

@@ -665,12 +665,20 @@ const ExpandedChart: React.FC<Props> = (props) => {
     if (!isWebOrWorkerDeployment) {
     if (!isWebOrWorkerDeployment) {
       return null;
       return null;
     }
     }
+
+    const repository =
+      githubRepository ||
+      currentChart?.image_repo_uri ||
+      currentChart?.config?.image?.repository;
+
+    if (repository?.includes("hello-porter")) {
+      return null;
+    }
+
     return (
     return (
       <DeploymentImageContainer>
       <DeploymentImageContainer>
         <DeploymentTypeIcon src={icon} />
         <DeploymentTypeIcon src={icon} />
-        {githubRepository ||
-          currentChart?.image_repo_uri ||
-          currentChart?.config?.image?.repository}
+        {repository}
       </DeploymentImageContainer>
       </DeploymentImageContainer>
     );
     );
   };
   };