@@ -15,11 +15,10 @@ import { NAME as APP_PRODUCT } from '@shell/config/product/apps';
1515import { BLANK_CLUSTER } from ' @shell/store/store-types.js' ;
1616import { UI_PLUGIN_NAMESPACE } from ' @shell/config/uiplugins' ;
1717import {
18- HARVESTER_CHART , HARVESTER_COMMUNITY_REPO , HARVESTER_RANCHER_REPO , communityRepoRegexes , HARVESTER_CATALOG_IMAGES
18+ HARVESTER_CHART , HARVESTER_COMMUNITY_REPO , HARVESTER_RANCHER_REPO , harvesterRepoRegexes , HARVESTER_CATALOG_IMAGES
1919} from ' ../types' ;
2020import {
2121 getLatestExtensionVersion ,
22- getHelmRepositoryExact ,
2322 getHelmRepositoryMatch ,
2423 createHelmRepository ,
2524 refreshHelmRepository ,
@@ -67,7 +66,6 @@ export default {
6766 this .mgmtClusters = hash .mgmtClusters ;
6867
6968 this .harvesterRepository = await this .getHarvesterRepository ();
70-
7169 this .kubeVersion = this .$store .getters [' management/byId' ](MANAGEMENT .CLUSTER , ' local' )? .kubernetesVersionBase || ' ' ;
7270 },
7371
@@ -107,6 +105,7 @@ export default {
107105 },
108106
109107 watch: {
108+ // watch harvester repository, if it changes to a valid one, then we will check if there is an update for harvester extension, which will trigger the extension update message in the UI
110109 async harvesterRepository (neu ) {
111110 if (neu) {
112111 await refreshHelmRepository (this .$store , neu .spec .gitRepo || neu .spec .url );
@@ -243,11 +242,7 @@ export default {
243242 methods: {
244243 async getHarvesterRepository () {
245244 try {
246- if (isRancherPrime ()) {
247- return await getHelmRepositoryExact (this .$store , HARVESTER_REPO .gitRepo );
248- } else {
249- return await getHelmRepositoryMatch (this .$store , communityRepoRegexes, HARVESTER_CATALOG_IMAGES );
250- }
245+ return await getHelmRepositoryMatch (this .$store , harvesterRepoRegexes, HARVESTER_CATALOG_IMAGES );
251246 } catch (error) {
252247 this .harvesterRepositoryError = true ;
253248 }
0 commit comments