Skip to content

Commit

Permalink
Use matching getter to get all bundles for a gitrepo
Browse files Browse the repository at this point in the history
  • Loading branch information
aruiz14 committed Dec 17, 2024
1 parent 84ef52a commit 1783856
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions shell/models/fleet.cattle.io.gitrepo.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,7 @@ export default class GitRepo extends SteveModel {
}

get bundles() {
const all = this.$getters['all'](FLEET.BUNDLE);

return all.filter((bundle) => bundle.repoName === this.name &&
bundle.namespace === this.namespace &&
bundle.namespacedName.startsWith(`${ this.namespace }:${ this.name }`));
return this.$getters['matching'](FLEET.BUNDLE, { 'fleet.cattle.io/repo-name': this.name }, this.namespace);
}

get bundleDeployments() {
Expand Down

0 comments on commit 1783856

Please sign in to comment.