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

use version on launch template

Alexander Belanger пре 5 година
родитељ
комит
5b2506eb6c
2 измењених фајлова са 681 додато и 671 уклоњено
  1. 2 2
      dashboard/src/main/home/launch/expanded-template/LaunchTemplate.tsx
  2. 679 669
      server/router/router.go

+ 2 - 2
dashboard/src/main/home/launch/expanded-template/LaunchTemplate.tsx

@@ -155,7 +155,7 @@ class LaunchTemplate extends Component<PropsType, StateType> {
           id: currentProject.id,
           cluster_id: currentCluster.id,
           name: this.props.currentTemplate.name.toLowerCase().trim(),
-          version: "latest",
+          version: this.props.currentTemplate?.currentVersion || "latest",
           repo_url: process.env.ADDON_CHART_REPO_URL,
         }
       )
@@ -286,7 +286,7 @@ class LaunchTemplate extends Component<PropsType, StateType> {
           id: currentProject.id,
           cluster_id: currentCluster.id,
           name: this.props.currentTemplate.name.toLowerCase().trim(),
-          version: "latest",
+          version: this.props.currentTemplate?.currentVersion || "latest",
           repo_url: process.env.APPLICATION_CHART_REPO_URL,
         }
       )

Разлика између датотеке није приказан због своје велике величине
+ 679 - 669
server/router/router.go


Неке датотеке нису приказане због велике количине промена