Explorar o código

fix clone job behavior

Alexander Belanger %!s(int64=4) %!d(string=hai) anos
pai
achega
42a4e6859e
Modificáronse 1 ficheiros con 3 adicións e 5 borrados
  1. 3 5
      dashboard/src/main/home/launch/Launch.tsx

+ 3 - 5
dashboard/src/main/home/launch/Launch.tsx

@@ -196,15 +196,13 @@ class Templates extends Component<PropsType, StateType> {
     return api.getChart<ChartTypeWithExtendedConfig>(
       "<token>",
       {
-        namespace: queryParams.get("release_namespace"),
-        cluster_id: this.context?.currentCluster?.id,
-        storage: StorageType.Secret,
       },
       {
         id: this.context.currentProject.id,
         name: queryParams.get("release_name"),
-        // This will get by default the last available version
-        revision: Number(queryParams.get("release_version")),
+        revision: 0,
+        namespace: queryParams.get("release_namespace"),
+        cluster_id: this.context?.currentCluster?.id,
       }
     );
   };