diff --git a/cypress/e2e/tests/pages/fleet/advanced/bundles.spec.ts b/cypress/e2e/tests/pages/fleet/advanced/bundles.spec.ts index ae495d0e397..89b76b955ea 100644 --- a/cypress/e2e/tests/pages/fleet/advanced/bundles.spec.ts +++ b/cypress/e2e/tests/pages/fleet/advanced/bundles.spec.ts @@ -52,7 +52,7 @@ describe('Bundles', { testIsolation: 'off', tags: ['@fleet', '@adminUser'] }, () fleetBundleeDetailsPage.waitForPage(); // check table headers - const expectedHeadersDetailsViewEvents = ['Name']; + const expectedHeadersDetailsViewEvents = ['State', 'API Version', 'Kind', 'Name', 'Namespace']; fleetBundleeDetailsPage.list().resourceTable().sortableTable() .tableHeaderRow() diff --git a/shell/components/ResourceDetail/index.vue b/shell/components/ResourceDetail/index.vue index 4889fec1d1e..572b39657fe 100644 --- a/shell/components/ResourceDetail/index.vue +++ b/shell/components/ResourceDetail/index.vue @@ -171,7 +171,8 @@ export default { }, bundle: { inStoreType: 'management', - type: FLEET.BUNDLE + type: FLEET.BUNDLE, + opt: { excludeFields: ['metadata.managedFields', 'spec.resources'] }, }, bundleDeployment: { diff --git a/shell/components/fleet/FleetRepos.vue b/shell/components/fleet/FleetRepos.vue index 2c0d4bae452..d4f5ecca62e 100644 --- a/shell/components/fleet/FleetRepos.vue +++ b/shell/components/fleet/FleetRepos.vue @@ -16,7 +16,6 @@ import { FLEET_REPO_PER_CLUSTER_STATE } from '@shell/config/table-headers'; -import { FLEET } from '@shell/config/labels-annotations'; import { STATES_ENUM } from '@shell/plugins/dashboard-store/resource-class'; // i18n-ignore repoDisplay @@ -118,12 +117,6 @@ export default { parseTargetMode(row) { return row.targetInfo?.mode === 'clusterGroup' ? this.t('fleet.gitRepo.warningTooltip.clusterGroup') : this.t('fleet.gitRepo.warningTooltip.cluster'); }, - - clusterViewResourceStatus(row) { - return row.clusterResourceStatus.find((c) => { - return c.metadata?.labels[FLEET.CLUSTER_NAME] === this.clusterId; - }); - } }, }; diff --git a/shell/config/labels-annotations.js b/shell/config/labels-annotations.js index 19209c14ad5..7e862ca9d99 100644 --- a/shell/config/labels-annotations.js +++ b/shell/config/labels-annotations.js @@ -111,6 +111,7 @@ export const FLEET = { CLUSTER_NAME: 'management.cattle.io/cluster-name', BUNDLE_ID: 'fleet.cattle.io/bundle-id', MANAGED: 'fleet.cattle.io/managed', + CLUSTER_NAMESPACE: 'fleet.cattle.io/cluster-namespace', CLUSTER: 'fleet.cattle.io/cluster' }; diff --git a/shell/detail/fleet.cattle.io.bundle.vue b/shell/detail/fleet.cattle.io.bundle.vue index d4ed8a0c8ea..765b19fdf80 100644 --- a/shell/detail/fleet.cattle.io.bundle.vue +++ b/shell/detail/fleet.cattle.io.bundle.vue @@ -1,77 +1,25 @@