Skip to content

Commit

Permalink
Add Rancher Prime check
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 3, 2024
1 parent 9a5da09 commit de7c83d
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ import TypeDescription from '@shell/components/TypeDescription';
import ResourceTable from '@shell/components/ResourceTable';
import Masthead from '@shell/components/ResourceList/Masthead';
import Loading from '@shell/components/Loading';
import { HARVESTER_NAME as VIRTUAL } from '@shell/config/features';
import { CAPI, HCI, MANAGEMENT, CATALOG } from '@shell/config/types';
import { isHarvesterCluster } from '@shell/utils/cluster';
import { allHash } from '@shell/utils/promise';
import { NAME as APP_PRODUCT } from '@shell/config/product/apps';
import { BLANK_CLUSTER } from '@shell/store/store-types.js';
import { UI_PLUGIN_NAMESPACE } from '@shell/config/uiplugins';
import { HARVESTER_CHART, HARVESTER_REPO } from '../types';
import { HARVESTER_CHART, HARVESTER_COMMUNITY_REPO, HARVESTER_RANCHER_REPO } from '../types';
import {
getHelmRepository,
ensureHelmRepository,
Expand All @@ -25,6 +24,9 @@ import {
waitForUIExtension,
waitForUIPackage,
} from '@shell/utils/ui-plugins';
import { isRancherPrime } from '@shell/config/version';
const HARVESTER_REPO = isRancherPrime() ? HARVESTER_RANCHER_REPO : HARVESTER_COMMUNITY_REPO;
export default {
components: {
Expand Down Expand Up @@ -70,7 +72,6 @@ export default {
return {
isAdmin: isAdminUser(this.$store.getters),

Check warning on line 73 in pkg/harvester-manager/list/harvesterhci.io.management.cluster.vue

View workflow job for this annotation

GitHub Actions / lint

Missing space before value for key 'isAdmin'
navigating: false,

Check warning on line 74 in pkg/harvester-manager/list/harvesterhci.io.management.cluster.vue

View workflow job for this annotation

GitHub Actions / lint

Missing space before value for key 'navigating'
VIRTUAL,
hciDashboard: HCI.DASHBOARD,

Check warning on line 75 in pkg/harvester-manager/list/harvesterhci.io.management.cluster.vue

View workflow job for this annotation

GitHub Actions / lint

Missing space before value for key 'hciDashboard'
resource,
hResource: HCI.CLUSTER,

Check warning on line 77 in pkg/harvester-manager/list/harvesterhci.io.management.cluster.vue

View workflow job for this annotation

GitHub Actions / lint

Missing space before value for key 'hResource'
Expand Down Expand Up @@ -511,7 +512,7 @@ export default {
}
}
.link {
.link {
cursor: pointer;
}
Expand Down

0 comments on commit de7c83d

Please sign in to comment.