Skip to content

Commit

Permalink
Merge pull request #2322 from upalatucci/udn-on-virt-perspective
Browse files Browse the repository at this point in the history
CNV-53286: add udn navbar item in network virt-perspective
  • Loading branch information
openshift-merge-bot[bot] authored Dec 18, 2024
2 parents c119a2b + 50fef4b commit c2aa671
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions src/perspective/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
HrefNavItem,
NavSection,
ResourceClusterNavItem,
ResourceNSNavItem,
Separator,
} from '@openshift-console/dynamic-plugin-sdk';
import type { ConsolePluginBuildMetadata } from '@openshift-console/dynamic-plugin-sdk-webpack';
Expand Down Expand Up @@ -288,7 +289,7 @@ const networkingSection = [
required: ['NET_ATTACH_DEF', 'KUBEVIRT_DYNAMIC'],
},
properties: {
id: 'networkattachmentdefinitions',
id: 'networkattachmentdefinitions-virt-perspective',
model: {
group: 'k8s.cni.cncf.io',
kind: 'NetworkAttachmentDefinition',
Expand Down Expand Up @@ -330,7 +331,7 @@ const networkingSection = [
'data-quickstart-id': 'qs-nav-state-list',
'data-test-id': 'state-nav-list',
},
id: 'state',
id: 'state-virt-perspective',
model: {
group: 'nmstate.io',
kind: 'NodeNetworkState',
Expand All @@ -342,6 +343,24 @@ const networkingSection = [
},
type: 'console.navigation/resource-cluster',
} as EncodedExtension<ResourceClusterNavItem>,
{
properties: {
dataAttributes: {
'data-quickstart-id': 'qs-nav-udns',
'data-test-id': 'udns-nav-item',
},
id: 'udns-virt-perspective',
model: {
group: 'k8s.ovn.org',
kind: 'UserDefinedNetwork',
version: 'v1',
},
name: '%plugin__networking-console-plugin~UserDefinedNetworks%',
perspective: 'virtualization-perspective',
section: 'networking-virt-perspective',
},
type: 'console.navigation/resource-ns',
} as EncodedExtension<ResourceNSNavItem>,
];

const storageSection = [
Expand Down

0 comments on commit c2aa671

Please sign in to comment.