Skip to content

Commit

Permalink
feat: release 1.6.0 plugin market (#65)
Browse files Browse the repository at this point in the history
Signed-off-by: yutao04 <[email protected]>
  • Loading branch information
trickMin authored Oct 18, 2023
1 parent d5f1a96 commit f870e92
Show file tree
Hide file tree
Showing 10 changed files with 100 additions and 210 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md

This file was deleted.

66 changes: 65 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1 +1,65 @@
[//]: TODO
# 代码贡献

如果你:

- 有新的想法
- 提交Feature
- Bug report/fix
- 贡献文档
- Help wanted

建议先提[Issues](https://github.com/hango-io/hango-gateway/issues),描述你的目的或者问题。

## 代码/文档贡献流程

Hango 项目分多个模块仓库,下面以 Hango-portal 为例,介绍代码如何提交至我们的开源仓库!

### 1. fork代码

访问 [https://github.com/hango-io/portal](https://github.com/hango-io/portal),选择指定仓库,点击右上角的 Fork ,将 Hango-portal 仓库代码 fork 到自己的 github 仓库中。

### 2. 创建本地工程

本地 clone 远端的 github 仓库,添加、修改制定内容,如何进行本地调试可以参考本地调试章节;代码开发请遵守 [Hango 代码开发规范](https://hango-io.github.io/developer-guide/development/),否则在代码 review 阶段会被驳回

### 3. 将变更推送到远端

本地完成代码构建后,我们需要将代码内容进行 commit, commit 按如下格式进行信息提交

commit message格式
```
<type>(<scope>): <subject>
```
- type: 用于说明git commit的类别,只允许使用下面的标识。
- feat: 新功能(feature)。
- fix/to: 修复bug
- docs: 文档(documentation)。
- style: 格式(不影响代码运行的变动)。
- refactor: 重构(即不是新增功能,也不是修改bug的代码变动)。
- perf: 优化相关,比如提升性能、体验。
- test: 增加测试。
- chore: 构建过程或辅助工具的变动。
- revert: 回滚到上一个版本。
- merge: 代码合并。
- sync: 同步主线或分支的Bug。
- scope(可选): scope用于说明 commit 影响的范围,比如数据层、控制层、视图层等等,视项目不同而不同。
- subject(必须): subject是commit目的的简短描述,不超过50个字符。
> 结尾不加其他标点符号
commit 要求功能聚合,因此在推送前请进行适当的代码 rebase 操作

### 4. 提交Pull Request

待代码提交到个人的 fork 仓库后,我们可以向 Hango-portal 主仓库进行 PR 提交, PR 提交信息如下

- 关联 issue
- 提交人(关联人)
Signed-off-by: \[姓名\] <邮箱>
- PR 简要描述
- 对模块或 Hango 项目的影响点

### 5. 其他

提交 PR 后,可以通过我们的官方微信平台或邮箱方式([email protected])通知我们检视合入

![wechat](./images/hango-wechat.png)
2 changes: 1 addition & 1 deletion README.EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Hango Gateway is an open-source project, and welcomes any and all contributors.

* Mail List: Mail to [email protected], follow the reply to subscribe to the mailing list.
* QQ Group 914823850
* WeChat Group:Scan QR <img src="./images/hango-wechat.png" width="180px">
* (Suggest) WeChat Group:Scan QR <img src="./images/hango-wechat.png" width="180px">
* Check out the Hango documentation
* Read the [CONTRIBUTING.md](CONTRIBUTING.md) and [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) files.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Hango UI提供了用户使用指南,通过使用指南用户可以方面上手

* 邮件:[email protected]
* qq群:Hango 交流群 914823850
* 微信群:扫码加入 - Hango 开源交流群 <img src="./images/hango-wechat.png" width="180px">
* (推荐)微信群:扫码加入 - Hango 开源交流群 <img src="./images/hango-wechat.png" width="180px">
* 参考[CONTRIBUTING.md](CONTRIBUTING.md)[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) 文件

同时,也可以通过以下方式进行项目贡献:
Expand Down
10 changes: 6 additions & 4 deletions changelog/RoadMap 2023.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@

### v1.5.0(Ingress)
> 已发布
* 支持K8S Ingress流量治理

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

### v1.7.0(7层负载功能)
* 支持网关向upstream传客户端IP
Expand Down
14 changes: 14 additions & 0 deletions changelog/announcing-v1.6.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
### 描述
本次更新是Hango正式版v1.6.0的发布。

本次新增了网关对插件市场功能支持

### 新功能

- [支持插件市场](https://hango-io.github.io/user-guide/extension/plugin-market/)

- [支持Lua语言接入插件市场](https://hango-io.github.io/user-guide/extension/plugin-market/#1lua)

### 工程修复

- [修复安装刷屏问题](https://github.com/hango-io/hango-gateway/pull/64)
2 changes: 2 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Hango 文档

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

## 插件

* [插件界面配置引导](plugin/plugin-configuring-guide.md)
Expand Down
199 changes: 4 additions & 195 deletions install/crds/crd-slime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,205 +199,14 @@ spec:
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase'
type: string
metadata:
type: object
spec:
description: 'envoyplugin spec'
type: object
properties:
gateway:
description: which gateway should use this plugin setting
items:
type: string
type: array
host:
description: host level plugin
items:
type: string
type: array
isGroupSetting:
description: Deprecated
type: boolean
listener:
description: listener level
items:
properties:
outbound:
type: boolean
port:
format: int32
type: integer
type: object
type: array
plugins:
items:
oneOf:
- not:
anyOf:
- required:
- wasm
- required:
- inline
- required:
- rider
- required:
- wasm
- required:
- inline
- required:
- rider
properties:
enable:
type: boolean
listenerType:
type: string
enum:
- Outbound
- Inbound
- Gateway
name:
type: string
port:
format: int32
type: integer
settings:
description: Deprecated
properties:
fields:
additionalProperties:
description: "`Value` represents a dynamically typed value
which can be either null, a number, a string, a boolean,
a recursive struct value, or a list of values. A producer
of value is expected to set one of that variants, absence
of any variant indicates an error. \n The JSON representation
for `Value` is JSON value."
type: object
description: Unordered map of dynamically typed values.
type: object
type: object
typeUrl:
type: string
rider:
type: object
properties:
url:
type: string
pluginName:
type: string
sha256:
type: string
settings: # TODO more detailed
type: object
x-kubernetes-preserve-unknown-fields: true
image_pull_secret:
type: object
properties:
imagePullSecretName:
type: string
imagePullSecretContent:
type: string
oneOf:
- required:
- imagePullSecretName
- required:
- imagePullSecretContent
- not:
anyOf:
- required:
- imagePullSecretName
- required:
- imagePullSecretContent
wasm:
type: object
oneOf:
- required:
- imagePullSecretName
- required:
- imagePullSecretContent
- not:
anyOf:
- required:
- imagePullSecretName
- required:
- imagePullSecretContent
properties:
url:
type: string
pluginName:
type: string
sha256:
type: string
settings: # TODO more detailed
type: object
x-kubernetes-preserve-unknown-fields: true
imagePullSecretName:
type: string
imagePullSecretContent:
type: string
inline:
type: object
properties:
settings: # TODO more detailed
type: object
x-kubernetes-preserve-unknown-fields: true
directPatch:
type: boolean
fieldPatchTo:
type: string
type: object
type: array
route:
description: route level plugin
items:
type: string
type: array
service:
description: service level plugin
items:
type: string
type: array
user:
description: which user should use this plugin setting
items:
type: string
type: array
workloadSelector:
description: '`WorkloadSelector` specifies the criteria used to determine
if the `Gateway`, `Sidecar`, or `EnvoyFilter` or `ServiceEntry` configuration
can be applied to a proxy. The matching criteria includes the metadata
associated with a proxy, workload instance info such as labels attached
to the pod/VM, or any other info that the proxy provides to Istio during
the initial handshake. If multiple conditions are specified, all conditions
need to match in order for the workload instance to be selected. Currently,
only label based selection mechanism is supported.'
additionalProperties:
type: string
description: workload selector , it should not be nil in Gateway Scenarios
type: object
status:
type: object
x-kubernetes-preserve-unknown-fields: true
required:
- metadata
- spec
type: object
served: true
storage: true
subresources:
status: {}
schema:
openAPIV3Schema:
type: object
x-kubernetes-preserve-unknown-fields: true

---

Expand Down
12 changes: 6 additions & 6 deletions install/helm/hango-gateway/charts/hango-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ data_dir: /data
cluster_dns_domain: cluster.local

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

namespace: hango-system

Expand Down
2 changes: 1 addition & 1 deletion test/hango-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import commands
import sys

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

Expand Down

0 comments on commit f870e92

Please sign in to comment.