diff --git a/pkg/harvester/config/doc-links.js b/pkg/harvester/config/doc-links.js index 754f06b3..c69f02f0 100644 --- a/pkg/harvester/config/doc-links.js +++ b/pkg/harvester/config/doc-links.js @@ -1,10 +1,11 @@ // suffix of doc link, see utils/feature-flags.js how to get complete doc link export const DOC = { - CONSOLE_URL: `/host/#remote-console`, - RANCHER_INTEGRATION_URL: `/rancher/rancher-integration`, - KSMTUNED_MODE: `/host/#ksmtuned-mode`, - UPGRADE_URL: `/upgrade/index`, - UPGRADE_CONFIG_URL: `/advanced/index#upgrade-config`, - STORAGE_NETWORK_EXAMPLE: `/advanced/storagenetwork#configuration-example`, - SUPPORT_BUNDLE_NAMESPACES: `/advanced/index/#support-bundle-namespaces`, + CONSOLE_URL: `/host/#remote-console`, + RANCHER_INTEGRATION_URL: `/rancher/rancher-integration`, + KSMTUNED_MODE: `/host/#ksmtuned-mode`, + UPGRADE_URL: `/upgrade/index`, + UPGRADE_CONFIG_URL: `/advanced/index#upgrade-config`, + STORAGE_NETWORK_EXAMPLE: `/advanced/storagenetwork#configuration-example`, + SUPPORT_BUNDLE_NAMESPACES: `/advanced/index/#support-bundle-namespaces`, + VPC_CONFIGURATION_EXAMPLES: `/networking/kubeovn-vpc#vpc-peering-configuration-examples`, }; diff --git a/pkg/harvester/edit/kubeovn.io.vpc/StaticRoutes.vue b/pkg/harvester/edit/kubeovn.io.vpc/StaticRoutes.vue index 3969366a..7bfd1fcf 100644 --- a/pkg/harvester/edit/kubeovn.io.vpc/StaticRoutes.vue +++ b/pkg/harvester/edit/kubeovn.io.vpc/StaticRoutes.vue @@ -2,12 +2,17 @@ import debounce from 'lodash/debounce'; import { _EDIT, _VIEW } from '@shell/config/query-params'; import { removeAt } from '@shell/utils/array'; +import { Banner } from '@components/Banner'; +import { DOC } from '../../config/doc-links'; +import { docLink } from '../../utils/feature-flags'; export default { name: 'StaticRoutes', emits: ['update:value'], + components: { Banner }, + props: { value: { type: Array, @@ -45,6 +50,12 @@ export default { nextHopIPTooltip() { return this.t('harvester.vpc.staticRoutes.nextHopIP.tooltip'); }, + + vpcPeeringExamplesLink() { + const version = this.$store.getters['harvester-common/getServerVersion'](); + + return docLink(DOC.VPC_CONFIGURATION_EXAMPLES, version); + }, }, created() { @@ -78,6 +89,13 @@ export default {