Skip to content

Commit

Permalink
Add repository refresh during before installation
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
  • Loading branch information
torchiaf committed Dec 4, 2024
1 parent d0e1b62 commit c3eee77
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ export default {
try {
const harvesterRepo = await ensureHelmRepository(this.$store, HARVESTER_REPO.spec.gitRepo, HARVESTER_REPO.metadata.name, HARVESTER_REPO.spec.gitBranch);
/**
* Server issue
* It needs to refresh the HelmRepository because the server can have a previous one in the cache.
*/
await refreshHelmRepository(harvesterRepo);
const chart = await getHelmChart(this.$store, harvesterRepo, HARVESTER_CHART.name);
await installHelmChart(harvesterRepo, { ...HARVESTER_CHART, version: chart.version }, {}, UI_PLUGIN_NAMESPACE, 'install');
Expand Down

0 comments on commit c3eee77

Please sign in to comment.