diff --git a/.github/workflows/run-lint.yaml b/.github/workflows/run-lint.yaml index 12df0252..7e8f7518 100644 --- a/.github/workflows/run-lint.yaml +++ b/.github/workflows/run-lint.yaml @@ -1,7 +1,7 @@ name: Tests on: - workflow_call: # This tells GH that the workflow is reusable + workflow_call: # This tells GH that the workflow is reusable push: branches: - main @@ -37,6 +37,12 @@ jobs: echo "GITHUB_BEFORE=$GITHUB_BEFORE" echo "GITHUB_AFTER=$GITHUB_AFTER" + # Check for new branch (all zeros SHA) + if [ "$GITHUB_BEFORE" = "0000000000000000000000000000000000000000" ]; then + echo "New branch detected, skipping commit message validation." + exit 0 + fi + if [ "$GITHUB_EVENT_NAME" = "pull_request" ] && [ -n "$GITHUB_BASE_SHA" ] && [ -n "$GITHUB_HEAD_SHA" ]; then FROM="$GITHUB_BASE_SHA" TO="$GITHUB_HEAD_SHA" diff --git a/package.json b/package.json index f04d3be0..770b6624 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,10 @@ "dependencies": { "@babel/plugin-transform-class-static-block": "7.28.3", "@rancher/shell": "3.0.5-rc.8", + "@vue-flow/background": "^1.3.0", + "@vue-flow/controls": "^1.1.1", + "@vue-flow/core": "^1.33.5", + "@vue-flow/minimap": "^1.4.0", "cache-loader": "^4.1.0", "color": "4.2.3", "ip": "2.0.1", diff --git a/pkg/harvester/detail/kubeovn.io.vpc.vue b/pkg/harvester/detail/kubeovn.io.vpc.vue new file mode 100644 index 00000000..cc3ed0f3 --- /dev/null +++ b/pkg/harvester/detail/kubeovn.io.vpc.vue @@ -0,0 +1,618 @@ + + + + + diff --git a/pkg/harvester/l10n/en-us.yaml b/pkg/harvester/l10n/en-us.yaml index 4c634e36..ac95b400 100644 --- a/pkg/harvester/l10n/en-us.yaml +++ b/pkg/harvester/l10n/en-us.yaml @@ -1056,6 +1056,7 @@ harvester: tooltip: The IP address list to reserve from automatic assignment. The gateway IP address is always excluded and will be automatically added to the list. vpc: + viewTopology: Topology noAddonEnabled: prefix: The kubeovn-operator add-on is not enabled, click middle: here diff --git a/pkg/harvester/list/kubeovn.io.vpc.vue b/pkg/harvester/list/kubeovn.io.vpc.vue index c63b72bb..363f4fd0 100644 --- a/pkg/harvester/list/kubeovn.io.vpc.vue +++ b/pkg/harvester/list/kubeovn.io.vpc.vue @@ -155,6 +155,15 @@ export default { return location; }, + viewTopology(group) { + const vpc = group.key; + const resource = this.$store.getters[`harvester/byId`](HCI.VPC, vpc); + + if (resource && resource.goToDetail) { + resource.goToDetail(); + } + }, + showVpcAction(event, group) { const vpc = group.key; @@ -218,6 +227,14 @@ export default { > {{ t('harvester.vpc.createSubnet') }} +