Просмотр исходного кода

Change the job name by the app name on the connect to job instructions modal

jnfrati 4 лет назад
Родитель
Сommit
462e01d2e1

+ 4 - 1
dashboard/src/main/home/cluster-dashboard/expanded-chart/jobs/ConnectToJobInstructionsModal.tsx

@@ -28,7 +28,10 @@ const ConnectToJobInstructionsModal: React.FC<{
       After you have the Porter CLI installed and running. You can run the next
       line of code. Please remember to change the command to something that your
       container can run.
-      <Code>porter run {job?.metadata?.name} -- [COMMAND]</Code>
+      <Code>
+        porter run {job?.metadata?.labels["meta.helm.sh/release-name"]} --
+        [COMMAND]
+      </Code>
     </Modal>
   );
 };