Skip to content

Commit

Permalink
Merge pull request #11094 from rak-phillip/chore/rebase/release-2.7.p…
Browse files Browse the repository at this point in the history
…atch1

Rebase `release-2.7.patch1` on top of `release-2.7`
  • Loading branch information
rak-phillip committed May 22, 2024
2 parents e8c7a73 + ae31667 commit e79f950
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions shell/list/fleet.cattle.io.cluster.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script>
import FleetClusters from '@shell/components/fleet/FleetClusters';
import { FLEET, MANAGEMENT } from '@shell/config/types';
import { isHarvesterCluster } from '@shell/utils/cluster';
import { filterOnlyKubernetesClusters } from '@shell/utils/cluster';
import { Banner } from '@components/Banner';
import ResourceFetch from '@shell/mixins/resource-fetch';
Expand Down Expand Up @@ -56,7 +56,7 @@ export default {
},
filteredRows() {
return this.fleetClusters.filter((c) => !isHarvesterCluster(c));
return filterOnlyKubernetesClusters(this.fleetClusters, this.$store);
},
fleetClusters() {
Expand Down
2 changes: 1 addition & 1 deletion shell/utils/cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function filterOnlyKubernetesClusters(mgmtClusters, store) {
const openHarvesterContainerWorkload = store.getters['features/get']('harvester-baremetal-container-workload');

return mgmtClusters.filter((c) => {
return openHarvesterContainerWorkload ? true : !c.isHarvester;
return openHarvesterContainerWorkload ? true : !isHarvesterCluster(c);
});
}

Expand Down

0 comments on commit e79f950

Please sign in to comment.