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

feat(gateway): add gateway crds #295

Merged
merged 2 commits into from
Aug 27, 2022
Merged

feat(gateway): add gateway crds #295

merged 2 commits into from
Aug 27, 2022

Conversation

skyoct
Copy link
Contributor

@skyoct skyoct commented Aug 27, 2022

  1. add gateway crds

// Nodes 是节点列表,必须存在,至少有一个节点, 每个节点是个key-value对,key是节点名称,value是节点权重
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:Required
Nodes []map[string]int32 `json:"nodes"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 Node 应该直接用 serviceName 和 servicePort 吧, 并不需要我们关心负载均衡, 那上 k8s service 的事情, 在这里我们只要转发到 service 上就可以了

// Important: Run "make" to regenerate code after modifying this file

// RouteType 是路由类型, 必须存在,且只能是下面的值之一 oss、website、app
// +kubebuilder:validation:Enum=oss;website;app
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oss -> bucket

@skyoct
Copy link
Contributor Author

skyoct commented Aug 27, 2022

@maslow 已更新

@maslow maslow merged commit 9a1133f into labring:next Aug 27, 2022
@skyoct skyoct deleted the next branch August 27, 2022 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants