Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

created by d2-ai #65

Closed
wants to merge 1 commit into from
Closed

created by d2-ai #65

wants to merge 1 commit into from

Conversation

Yuyz0112
Copy link
Member

This PR implements #64, created by d2-AI.

@Yuyz0112
Copy link
Member Author

Yuyz0112 commented Dec 14, 2023

在列表中,增加一列展示 ingress 和 egress rules 的总量,以及一列用于展示出 pod selector 规则。

@Yuyz0112
Copy link
Member Author

[d2-AI] filter me

@Yuyz0112
Copy link
Member Author

Yuyz0112 commented Dec 14, 2023

image

在详情区域,增加对 ingress 和 egress 的展示。

在 ingress 详情中,每个 ingress 用一个 tab 展示。渲染每个 ingress 时,根据 ingress.from 中各条规则的类型分别渲染:

  • IP block 类型,展示 CIDR 和 exceptions 字段;
  • Namespace Selector 类型,展示 key、operator、value,并统计选中了多少个 namespace;
  • Pod selector 类型,展示 key、operator、value,并统计选中了多少个 pod。
    将 ingress.ports 展示出来,包含 port 和 protocol 信息。

在 egress 详情中,每个 egress 用一个 tab 展示。渲染每个 egress 时,根据 egress.to 中各条规则的类型分别渲染:

  • IP block 类型,展示 CIDR 和 exceptions 字段;
    将 egress.ports 展示出来,包含 port 和 protocol 信息。

Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

@Yuyz0112 Yuyz0112 force-pushed the yz-test branch 2 times, most recently from f57358a to 6de92ad Compare December 14, 2023 16:31
Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

@Yuyz0112 Yuyz0112 force-pushed the yz-test branch 2 times, most recently from 74b0363 to f020b3c Compare December 14, 2023 16:43
Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

1 similar comment
Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

{
  "prompt": "开发 K8s 中 NetworkPolicy 资源的 UI,它在菜单中的名字为“Network Policies”,父级菜单是网络。\n在列表中,增加一列展示 ingress 和 egress rules 的总量,以及一列用于展示出 pod selector 规则。\n\r\n\r\n\r\n在详情区域,增加对 ingress 和 egress 的展示。\r\n\r\n在 ingress 详情中,每个 ingress 用一个 tab 展示。渲染每个 ingress 时,根据 ingress.from 中各条规则的类型分别渲染:\r\n- IP block 类型,展示 CIDR 和 exceptions 字段;\r\n- Namespace Selector 类型,展示 key、operator、value,并统计选中了多少个 namespace;\r\n- Pod selector 类型,展示 key、operator、value,并统计选中了多少个 pod。\r\n将 ingress.ports 展示出来,包含 port 和 protocol 信息。\r\n\r\n在 egress 详情中,每个 egress 用一个 tab 展示。渲染每个 egress 时,根据 egress.to 中各条规则的类型分别渲染:\r\n- IP block 类型,展示 CIDR 和 exceptions 字段;\r\n将 egress.ports 展示出来,包含 port 和 protocol 信息。\r\n",
  "images": [
    "https://github.com/webzard-io/dovetail-v2/assets/13651389/a4976e91-fd81-4560-8fc9-fa7695b25a92"
  ]
}
Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

4 similar comments
Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

Copy link

Your code has been deployed to http://10.255.4.115:4173/ .

@Yuyz0112 Yuyz0112 closed this Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant