Skip to content

Commit

Permalink
Merge pull request #12630 from aruiz14/fix-gitrepos-on-cluster-details
Browse files Browse the repository at this point in the history
Fix empty GitRepos list on Cluster details
  • Loading branch information
richard-cox authored Nov 21, 2024
2 parents 907875f + 8e76737 commit a2a8685
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shell/models/fleet.cattle.io.gitrepo.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,11 @@ export default class GitRepo extends SteveModel {
for (const bd of bundleDeployments) {
const clusterId = FleetUtils.clusterIdFromBundleDeploymentLabels(bd.metadata?.labels);
const c = clusters[clusterId];

if (!c) {
continue;
}

const resources = FleetUtils.resourcesFromBundleDeploymentStatus(bd.status);

resources.forEach((r) => {
Expand Down

0 comments on commit a2a8685

Please sign in to comment.