Skip to content

Commit f870e92

Browse files
authored
feat: release 1.6.0 plugin market (#65)
Signed-off-by: yutao04 <yutao04@corp.netease.com>
1 parent d5f1a96 commit f870e92

File tree

10 files changed

+100
-210
lines changed

10 files changed

+100
-210
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

CONTRIBUTING.md

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,65 @@
1-
[//]: TODO
1+
# 代码贡献
2+
3+
如果你:
4+
5+
- 有新的想法
6+
- 提交Feature
7+
- Bug report/fix
8+
- 贡献文档
9+
- Help wanted
10+
11+
建议先提[Issues](https://github.com/hango-io/hango-gateway/issues),描述你的目的或者问题。
12+
13+
## 代码/文档贡献流程
14+
15+
Hango 项目分多个模块仓库,下面以 Hango-portal 为例,介绍代码如何提交至我们的开源仓库!
16+
17+
### 1. fork代码
18+
19+
访问 [https://github.com/hango-io/portal](https://github.com/hango-io/portal),选择指定仓库,点击右上角的 Fork ,将 Hango-portal 仓库代码 fork 到自己的 github 仓库中。
20+
21+
### 2. 创建本地工程
22+
23+
本地 clone 远端的 github 仓库,添加、修改制定内容,如何进行本地调试可以参考本地调试章节;代码开发请遵守 [Hango 代码开发规范](https://hango-io.github.io/developer-guide/development/),否则在代码 review 阶段会被驳回
24+
25+
### 3. 将变更推送到远端
26+
27+
本地完成代码构建后,我们需要将代码内容进行 commit, commit 按如下格式进行信息提交
28+
29+
commit message格式
30+
```
31+
<type>(<scope>): <subject>
32+
```
33+
- type: 用于说明git commit的类别,只允许使用下面的标识。
34+
- feat: 新功能(feature)。
35+
- fix/to: 修复bug
36+
- docs: 文档(documentation)。
37+
- style: 格式(不影响代码运行的变动)。
38+
- refactor: 重构(即不是新增功能,也不是修改bug的代码变动)。
39+
- perf: 优化相关,比如提升性能、体验。
40+
- test: 增加测试。
41+
- chore: 构建过程或辅助工具的变动。
42+
- revert: 回滚到上一个版本。
43+
- merge: 代码合并。
44+
- sync: 同步主线或分支的Bug。
45+
- scope(可选): scope用于说明 commit 影响的范围,比如数据层、控制层、视图层等等,视项目不同而不同。
46+
- subject(必须): subject是commit目的的简短描述,不超过50个字符。
47+
> 结尾不加其他标点符号
48+
49+
commit 要求功能聚合,因此在推送前请进行适当的代码 rebase 操作
50+
51+
### 4. 提交Pull Request
52+
53+
待代码提交到个人的 fork 仓库后,我们可以向 Hango-portal 主仓库进行 PR 提交, PR 提交信息如下
54+
55+
- 关联 issue
56+
- 提交人(关联人)
57+
Signed-off-by: \[姓名\] <邮箱>
58+
- PR 简要描述
59+
- 对模块或 Hango 项目的影响点
60+
61+
### 5. 其他
62+
63+
提交 PR 后,可以通过我们的官方微信平台或邮箱方式(hango.io@gmail.com)通知我们检视合入
64+
65+
![wechat](./images/hango-wechat.png)

README.EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Hango Gateway is an open-source project, and welcomes any and all contributors.
117117

118118
* Mail List: Mail to hango.io@gmail.com, follow the reply to subscribe to the mailing list.
119119
* QQ Group 914823850
120-
* WeChat Group:Scan QR <img src="./images/hango-wechat.png" width="180px">
120+
* (Suggest) WeChat Group:Scan QR <img src="./images/hango-wechat.png" width="180px">
121121
* Check out the Hango documentation
122122
* Read the [CONTRIBUTING.md](CONTRIBUTING.md) and [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) files.
123123

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Hango UI提供了用户使用指南,通过使用指南用户可以方面上手
111111

112112
* 邮件:hango.io@gmail.com
113113
* qq群:Hango 交流群 914823850
114-
* 微信群:扫码加入 - Hango 开源交流群 <img src="./images/hango-wechat.png" width="180px">
114+
* (推荐)微信群:扫码加入 - Hango 开源交流群 <img src="./images/hango-wechat.png" width="180px">
115115
* 参考[CONTRIBUTING.md](CONTRIBUTING.md)[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) 文件
116116

117117
同时,也可以通过以下方式进行项目贡献:

changelog/RoadMap 2023.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@
2727

2828
### v1.5.0(Ingress)
2929
> 已发布
30+
3031
* 支持K8S Ingress流量治理
3132

32-
### v1.6.0(4层流量治理)
33-
* 虚拟网关同时支持HTTP和HTTPS
34-
* 支持TCP协议代理
35-
* 支持UDP协议代理
33+
### v1.6.0(插件市场)
34+
> 已发布
35+
36+
* 支持插件市场能力
37+
* 支持Lua语言自定义插件接入插件市场
3638

3739
### v1.7.0(7层负载功能)
3840
* 支持网关向upstream传客户端IP

changelog/announcing-v1.6.0.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
### 描述
2+
本次更新是Hango正式版v1.6.0的发布。
3+
4+
本次新增了网关对插件市场功能支持
5+
6+
### 新功能
7+
8+
- [支持插件市场](https://hango-io.github.io/user-guide/extension/plugin-market/)
9+
10+
- [支持Lua语言接入插件市场](https://hango-io.github.io/user-guide/extension/plugin-market/#1lua)
11+
12+
### 工程修复
13+
14+
- [修复安装刷屏问题](https://github.com/hango-io/hango-gateway/pull/64)

docs/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Hango 文档
22

3+
仅罗列部分插件文档,更多文档请参考[Hango website](https://hango-io.github.io/)
4+
35
## 插件
46

57
* [插件界面配置引导](plugin/plugin-configuring-guide.md)

install/crds/crd-slime.yaml

Lines changed: 4 additions & 195 deletions
Original file line numberDiff line numberDiff line change
@@ -199,205 +199,14 @@ spec:
199199
scope: Namespaced
200200
versions:
201201
- name: v1alpha1
202-
schema:
203-
openAPIV3Schema:
204-
properties:
205-
apiVersion:
206-
description: 'APIVersion defines the versioned schema of this representation
207-
of an object. Servers should convert recognized schemas to the latest
208-
internal value, and may reject unrecognized values'
209-
type: string
210-
kind:
211-
description: 'Kind is a string value representing the REST resource this
212-
object represents. Servers may infer this from the endpoint the client
213-
submits requests to. Cannot be updated. In CamelCase'
214-
type: string
215-
metadata:
216-
type: object
217-
spec:
218-
description: 'envoyplugin spec'
219-
type: object
220-
properties:
221-
gateway:
222-
description: which gateway should use this plugin setting
223-
items:
224-
type: string
225-
type: array
226-
host:
227-
description: host level plugin
228-
items:
229-
type: string
230-
type: array
231-
isGroupSetting:
232-
description: Deprecated
233-
type: boolean
234-
listener:
235-
description: listener level
236-
items:
237-
properties:
238-
outbound:
239-
type: boolean
240-
port:
241-
format: int32
242-
type: integer
243-
type: object
244-
type: array
245-
plugins:
246-
items:
247-
oneOf:
248-
- not:
249-
anyOf:
250-
- required:
251-
- wasm
252-
- required:
253-
- inline
254-
- required:
255-
- rider
256-
- required:
257-
- wasm
258-
- required:
259-
- inline
260-
- required:
261-
- rider
262-
properties:
263-
enable:
264-
type: boolean
265-
listenerType:
266-
type: string
267-
enum:
268-
- Outbound
269-
- Inbound
270-
- Gateway
271-
name:
272-
type: string
273-
port:
274-
format: int32
275-
type: integer
276-
settings:
277-
description: Deprecated
278-
properties:
279-
fields:
280-
additionalProperties:
281-
description: "`Value` represents a dynamically typed value
282-
which can be either null, a number, a string, a boolean,
283-
a recursive struct value, or a list of values. A producer
284-
of value is expected to set one of that variants, absence
285-
of any variant indicates an error. \n The JSON representation
286-
for `Value` is JSON value."
287-
type: object
288-
description: Unordered map of dynamically typed values.
289-
type: object
290-
type: object
291-
typeUrl:
292-
type: string
293-
rider:
294-
type: object
295-
properties:
296-
url:
297-
type: string
298-
pluginName:
299-
type: string
300-
sha256:
301-
type: string
302-
settings: # TODO more detailed
303-
type: object
304-
x-kubernetes-preserve-unknown-fields: true
305-
image_pull_secret:
306-
type: object
307-
properties:
308-
imagePullSecretName:
309-
type: string
310-
imagePullSecretContent:
311-
type: string
312-
oneOf:
313-
- required:
314-
- imagePullSecretName
315-
- required:
316-
- imagePullSecretContent
317-
- not:
318-
anyOf:
319-
- required:
320-
- imagePullSecretName
321-
- required:
322-
- imagePullSecretContent
323-
wasm:
324-
type: object
325-
oneOf:
326-
- required:
327-
- imagePullSecretName
328-
- required:
329-
- imagePullSecretContent
330-
- not:
331-
anyOf:
332-
- required:
333-
- imagePullSecretName
334-
- required:
335-
- imagePullSecretContent
336-
properties:
337-
url:
338-
type: string
339-
pluginName:
340-
type: string
341-
sha256:
342-
type: string
343-
settings: # TODO more detailed
344-
type: object
345-
x-kubernetes-preserve-unknown-fields: true
346-
imagePullSecretName:
347-
type: string
348-
imagePullSecretContent:
349-
type: string
350-
inline:
351-
type: object
352-
properties:
353-
settings: # TODO more detailed
354-
type: object
355-
x-kubernetes-preserve-unknown-fields: true
356-
directPatch:
357-
type: boolean
358-
fieldPatchTo:
359-
type: string
360-
type: object
361-
type: array
362-
route:
363-
description: route level plugin
364-
items:
365-
type: string
366-
type: array
367-
service:
368-
description: service level plugin
369-
items:
370-
type: string
371-
type: array
372-
user:
373-
description: which user should use this plugin setting
374-
items:
375-
type: string
376-
type: array
377-
workloadSelector:
378-
description: '`WorkloadSelector` specifies the criteria used to determine
379-
if the `Gateway`, `Sidecar`, or `EnvoyFilter` or `ServiceEntry` configuration
380-
can be applied to a proxy. The matching criteria includes the metadata
381-
associated with a proxy, workload instance info such as labels attached
382-
to the pod/VM, or any other info that the proxy provides to Istio during
383-
the initial handshake. If multiple conditions are specified, all conditions
384-
need to match in order for the workload instance to be selected. Currently,
385-
only label based selection mechanism is supported.'
386-
additionalProperties:
387-
type: string
388-
description: workload selector , it should not be nil in Gateway Scenarios
389-
type: object
390-
status:
391-
type: object
392-
x-kubernetes-preserve-unknown-fields: true
393-
required:
394-
- metadata
395-
- spec
396-
type: object
397202
served: true
398203
storage: true
399204
subresources:
400205
status: {}
206+
schema:
207+
openAPIV3Schema:
208+
type: object
209+
x-kubernetes-preserve-unknown-fields: true
401210

402211
---
403212

install/helm/hango-gateway/charts/hango-gateway/values.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ data_dir: /data
22
cluster_dns_domain: cluster.local
33

44
images:
5-
hango_apiplane_image: hangoio/api-plane:1.5.0
6-
hango_portal_image: hangoio/hango-portal:1.5.0
7-
hango_ui_image: hangoio/hango-ui:v2.2.0-c0750aef
8-
istiod_image: hangoio/pilot:hango-2.1.0
9-
slime_image: docker.io/slimeio/slime-bundle-hango:hango-v1.3.0
10-
hango_proxy_image: hangoio/envoy-proxy:hango-v2.1.0-112caf6
5+
hango_apiplane_image: hangoio/api-plane:1.6.0
6+
hango_portal_image: hangoio/hango-portal:1.6.0
7+
hango_ui_image: docker.io/hangoio/hango-ui:v1.6.0-6b84bc94
8+
istiod_image: docker.io/slimeio/pilot:hango-1.6.0-rc1
9+
slime_image: docker.io/slimeio/slime-bundle-hango:hango-v1.6.0
10+
hango_proxy_image: hangoio/envoy-proxy:hango-v1.6.0-rc1-b3c2851-unstripped
1111

1212
namespace: hango-system
1313

test/hango-test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import commands
77
import sys
88

9-
# 等待测试适配网关新模型版本 v1.4.0
9+
# 等待后续版本进行适配
1010
print("Please wait for the test future online...")
1111
sys.exit()
1212

0 commit comments

Comments
 (0)