Przeglądaj źródła

Avoid showing deployment type if the image is hello-porter

jnfrati 4 lat temu
rodzic
commit
af21bf76a6

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

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