[GitHub] [apisix-website] SylviaBABY opened a new pull request #781: docs: add APISIX Ingress in KubeSphere tech blog
SylviaBABY opened a new pull request #781: URL: https://github.com/apache/apisix-website/pull/781 Changes: add APISIX Ingress in KubeSphere tech blog -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-ingress-controller] lxm opened a new pull request #777: Docs: add more config example
lxm opened a new pull request #777: URL: https://github.com/apache/apisix-ingress-controller/pull/777 Please answer these questions before submitting a pull request - Why submit this pull request? - [ ] Docs ___ ### Docs - Add description for ingress version - Add description for ssl - Add description for default key config -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] yangxikun commented on issue #5622: bug: APISIX occasional blocking
yangxikun commented on issue #5622: URL: https://github.com/apache/apisix/issues/5622#issuecomment-982408979 This maybe our host VM problem. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] yangxikun closed issue #5622: bug: APISIX occasional blocking
yangxikun closed issue #5622: URL: https://github.com/apache/apisix/issues/5622 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-website] juzhiyuan commented on a change in pull request #781: docs: add APISIX Ingress in KubeSphere tech blog
juzhiyuan commented on a change in pull request #781: URL: https://github.com/apache/apisix-website/pull/781#discussion_r759052209 ## File path: website/blog/2021/11/30/use-ingress-in-kubesphere.md ## @@ -0,0 +1,439 @@ +--- Review comment: How about using a filename like `use-apisix-ingress-in-kubersphere`? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-website] juzhiyuan commented on a change in pull request #781: docs: add APISIX Ingress in KubeSphere tech blog
juzhiyuan commented on a change in pull request #781: URL: https://github.com/apache/apisix-website/pull/781#discussion_r759052873 ## File path: website/blog/2021/11/30/use-ingress-in-kubesphere.md ## @@ -0,0 +1,439 @@ +--- Review comment: 🤔 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-website] yzeng25 commented on a change in pull request #781: docs: add APISIX Ingress in KubeSphere tech blog
yzeng25 commented on a change in pull request #781: URL: https://github.com/apache/apisix-website/pull/781#discussion_r759046289 ## File path: website/blog/2021/11/30/use-ingress-in-kubesphere.md ## @@ -0,0 +1,439 @@ +--- +title: "Using Apache APISIX Ingress Gateway to access Custom Monitoring in KubeSphere" +author: "Haili Zhang" +authorURL: "https://github.com/webup"; +authorImageURL: "https://avatars.githubusercontent.com/u/2936504?v=4"; +keywords: +- KubeSphere +- Apache APISIX +- Kubenetes +- Ingress Controller +- Monitor +description: This article will take Apache APISIX Ingress Controller as an example to show you in detail how to quickly use different types of gateways and status monitoring for Kubernetes clusters through KubeSphere. +tags: [Technology] +--- + +> This article will take Apache APISIX Ingress Controller as an example to show you in detail how to quickly use different types of gateways and status monitoring for Kubernetes clusters through KubeSphere. + + + +In early November, KubeSphere released version 3.2.0, which added a full set of monitoring and management pages for project gateways, and introduced cluster gateways to provide global Ingress gateway capabilities at the cluster level. + +To help users better understand how to deploy and use third-party Ingress Controllers in the new version of KubeSphere, this article will use the [Apache APISIX Ingress Controller](https://apisix.apache.org/docs/ingress-controller/getting-started/) as an example to show you how to quickly use different types of gateways for Kubernetes clusters with KubeSphere and perform status monitoring. + +## Preparation + +### Installing KubeSphere + +There are two ways to install KubeSphere. + +1. Install directly on [Linux](https://kubesphere.com.cn/docs/quick-start/all-in-one-on-linux/) +2. Install on [existing Kubernetes](https://kubesphere.com.cn/docs/quick-start/minimal-kubesphere-on-k8s/) + +The monitoring module is already included in the minimal installation of KubeSphere, so there is no need to enable it additionally, and you can confirm the installation status via the Monitoring tab on the System Components page. + +![Confirm installation status](https://static.apiseven.com/202108/1638255471644-e1327ffc-dbed-4890-a15c-819f28731fc9.png) + +### Deploying the httpbin demo application + +Since we need to demonstrate the access control capabilities of the gateway, we must first have an accessible application as a backend service for the gateway. Here we use the [kennethreitz/httpbin](https://hub.docker.com/r/kennethreitz/httpbin/) container application provided by [httpbin.org](httpbin.org) as our demo application. + +In KubeSphere, we can either create a new project or use an existing one. After entering the project page, select "Services" under "Application Loads" to directly create a stateless workload and generate a companion service. + +![Create a Service](https://static.apiseven.com/202108/1638255616585-b0f5a674-f06a-4b18-baf9-8d6006abeead.png) + +Use the default port `80` of the [kennethreitz/httpbin](https://hub.docker.com/r/kennethreitz/httpbin/) container as the service port, and make sure you can see the corresponding entry for `httpbin` under both the Workloads and Services pages after creation, as shown in the following image. + +![Service](https://static.apiseven.com/202108/1638255786442-924bf704-9b9d-413f-9fc0-be6650a6ff4a.png) + +![Workload](https://static.apiseven.com/202108/1638255792974-7f354950-e34a-427a-9ff7-aa3af0a56dd6.png) + +### Additional Project Gateway Details + +The **Project Gateway** is a feature that has been live since KubeSphere 3.0. The Gateway in the KubeSphere Project is an NGINX Ingress controller. The mechanism built into KubeSphere for HTTP load balancing is called **Application Routing**, which defines the rules for connecting from the outside to the clustered service. To allow access to services from the outside, users can create routing resources to define URI paths, back-end service names, and other information. + +Following the `httpbin` service project deployed above, open the Gateway Settings page in Project Settings and perform the "Enable Gateway" operation. For convenience, just select `NodePort` as the "Access Method". + +![Project setting](https://static.apiseven.com/202108/1638256005754-d1e8bf9a-0ecc-4c6e-8ceb-0c25b04fef20.png) + +After OK, go back to the Gateway page, wait for a moment and refresh the page, you can get the deployment completion status as shown below, where you can see that NodePort is given two node ports by default. Next, we use the "Manage" button in the upper right corner to "View Details". Review comment: After OK is not ok... ## File path: website/blog/2021/11/30/use-ingress-in-kubesphere.md ## @@ -0,0 +1,439 @@ +--- +title: "Using Apache APISIX Ingress Gateway to access Custom Monitoring in KubeSphere" +author: "Haili Zhang" +authorURL: "http
[GitHub] [apisix-website] yzeng25 commented on a change in pull request #781: docs: add APISIX Ingress in KubeSphere tech blog
yzeng25 commented on a change in pull request #781: URL: https://github.com/apache/apisix-website/pull/781#discussion_r759053377 ## File path: website/blog/2021/11/30/use-ingress-in-kubesphere.md ## @@ -0,0 +1,439 @@ +--- +title: "Using Apache APISIX Ingress Gateway to access Custom Monitoring in KubeSphere" +author: "Haili Zhang" +authorURL: "https://github.com/webup"; +authorImageURL: "https://avatars.githubusercontent.com/u/2936504?v=4"; +keywords: +- KubeSphere +- Apache APISIX +- Kubenetes +- Ingress Controller +- Monitor +description: This article will take Apache APISIX Ingress Controller as an example to show you in detail how to quickly use different types of gateways and status monitoring for Kubernetes clusters through KubeSphere. +tags: [Technology] +--- + +> This article will take Apache APISIX Ingress Controller as an example to show you in detail how to quickly use different types of gateways and status monitoring for Kubernetes clusters through KubeSphere. + + + +In early November, KubeSphere released version 3.2.0, which added a full set of monitoring and management pages for project gateways, and introduced cluster gateways to provide global Ingress gateway capabilities at the cluster level. + +To help users better understand how to deploy and use third-party Ingress Controllers in the new version of KubeSphere, this article will use the [Apache APISIX Ingress Controller](https://apisix.apache.org/docs/ingress-controller/getting-started/) as an example to show you how to quickly use different types of gateways for Kubernetes clusters with KubeSphere and perform status monitoring. + +## Preparation + +### Installing KubeSphere + +There are two ways to install KubeSphere. + +1. Install directly on [Linux](https://kubesphere.com.cn/docs/quick-start/all-in-one-on-linux/) +2. Install on [existing Kubernetes](https://kubesphere.com.cn/docs/quick-start/minimal-kubesphere-on-k8s/) + +The monitoring module is already included in the minimal installation of KubeSphere, so there is no need to enable it additionally, and you can confirm the installation status via the Monitoring tab on the System Components page. + +![Confirm installation status](https://static.apiseven.com/202108/1638255471644-e1327ffc-dbed-4890-a15c-819f28731fc9.png) + +### Deploying the httpbin demo application + +Since we need to demonstrate the access control capabilities of the gateway, we must first have an accessible application as a backend service for the gateway. Here we use the [kennethreitz/httpbin](https://hub.docker.com/r/kennethreitz/httpbin/) container application provided by [httpbin.org](httpbin.org) as our demo application. + +In KubeSphere, we can either create a new project or use an existing one. After entering the project page, select "Services" under "Application Loads" to directly create a stateless workload and generate a companion service. + +![Create a Service](https://static.apiseven.com/202108/1638255616585-b0f5a674-f06a-4b18-baf9-8d6006abeead.png) + +Use the default port `80` of the [kennethreitz/httpbin](https://hub.docker.com/r/kennethreitz/httpbin/) container as the service port, and make sure you can see the corresponding entry for `httpbin` under both the Workloads and Services pages after creation, as shown in the following image. + +![Service](https://static.apiseven.com/202108/1638255786442-924bf704-9b9d-413f-9fc0-be6650a6ff4a.png) + +![Workload](https://static.apiseven.com/202108/1638255792974-7f354950-e34a-427a-9ff7-aa3af0a56dd6.png) + +### Additional Project Gateway Details + +The **Project Gateway** is a feature that has been live since KubeSphere 3.0. The Gateway in the KubeSphere Project is an NGINX Ingress controller. The mechanism built into KubeSphere for HTTP load balancing is called **Application Routing**, which defines the rules for connecting from the outside to the clustered service. To allow access to services from the outside, users can create routing resources to define URI paths, back-end service names, and other information. + +Following the `httpbin` service project deployed above, open the Gateway Settings page in Project Settings and perform the "Enable Gateway" operation. For convenience, just select `NodePort` as the "Access Method". + +![Project setting](https://static.apiseven.com/202108/1638256005754-d1e8bf9a-0ecc-4c6e-8ceb-0c25b04fef20.png) + +After OK, go back to the Gateway page, wait for a moment and refresh the page, you can get the deployment completion status as shown below, where you can see that NodePort is given two node ports by default. Next, we use the "Manage" button in the upper right corner to "View Details". + +![Deployment complete](https://static.apiseven.com/202108/1638256011357-960f6852-31b3-4702-8911-17d07ec19d7b.png) + +At this point we are looking at the new monitoring page for the project/cluster gateway in version 3.2.0. Next we need to create an application route for the http
[GitHub] [apisix-website] SylviaBABY commented on a change in pull request #781: docs: add APISIX Ingress in KubeSphere tech blog
SylviaBABY commented on a change in pull request #781: URL: https://github.com/apache/apisix-website/pull/781#discussion_r759060983 ## File path: website/blog/2021/11/30/use-ingress-in-kubesphere.md ## @@ -0,0 +1,439 @@ +--- Review comment: update -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] spacewander commented on a change in pull request #5646: fix: google cloud logging plugin file config error
spacewander commented on a change in pull request #5646: URL: https://github.com/apache/apisix/pull/5646#discussion_r759061547 ## File path: t/plugin/google-cloud-logging.t ## @@ -509,3 +509,99 @@ qr/\{\"error\"\:\"[\w+\s+]*\"\}/ --- error_log Batch Processor[google-cloud-logging] failed to process entries Batch Processor[google-cloud-logging] exceeded the max_retry_count + + + +=== TEST 16: set route (succeed write) +--- config +location /t { +content_by_lua_block { + +local config = { +uri = "/hello", +upstream = { +type = "roundrobin", +nodes = { +["127.0.0.1:1980"] = 1 +} +}, +plugins = { +["google-cloud-logging"] = { +auth_file = "t/plugin/google-cloud-logging-configuration.json", +inactive_timeout = 1, +batch_max_size = 1, +} +} +} +local t = require("lib.test_admin").test +local code, body = t('/apisix/admin/routes/1', ngx.HTTP_PUT, config) + +if code >= 300 then +ngx.status = code +ngx.say(body) +return +end + +ngx.say(body) +} +} +--- response_body +passed + + + +=== TEST 17: test route(succeed write) +--- request +GET /hello +--- wait: 2 +--- response_body +hello world + + + +=== TEST 18: set route (succeed write) Review comment: The route is not for a successful case? ## File path: t/plugin/google-cloud-logging-configuration.json ## @@ -0,0 +1,9 @@ +{ + "private_key": "-BEGIN RSA PRIVATE KEY-\nMIIBOgIBAAJBAKebDxlvQMGyEesAL1r1nIJBkSdqu3Hr7noq/0ukiZqVQLSJPMOv\n0oxQSutvvK3hoibwGakDOza+xRITB7cs2cECAwEAAQJAYPWh6YvjwWobVYC45Hz7\n+pqlt1DWeVQMlN407HSWKjdH548ady46xiQuZ5Cfx3YyCcnsfVWaQNbC+jFbY4YL\nwQIhANfASwz8+2sKg1xtvzyaChX5S5XaQTB+azFImBJumixZAiEAxt93Td6JH1RF\nIeQmD/K+DClZMqSrliUzUqJnCPCzy6kCIAekDsRh/UF4ONjAJkKuLedDUfL3rNFb\n2M4BBSm58wnZAiEAwYLMOg8h6kQ7iMDRcI9I8diCHM8yz0SfbfbsvzxIFxECICXs\nYvIufaZvBa8f+E/9CANlVhm5wKAyM8N8GJsiCyEG\n-END RSA PRIVATE KEY-", Review comment: Let's put it under `t/plugin/google-cloud-logging` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-website] yzeng25 commented on a change in pull request #781: docs: add APISIX Ingress in KubeSphere tech blog
yzeng25 commented on a change in pull request #781: URL: https://github.com/apache/apisix-website/pull/781#discussion_r759062241 ## File path: website/i18n/zh/docusaurus-plugin-content-blog/2021/11/30/use-apisix-ingress-in-kubesphere.md ## @@ -0,0 +1,443 @@ +--- +title: "在 KubeSphere 中使用 Apache APISIX Ingress 网关接入自定义监控" +author: "张海立" +authorURL: "https://github.com/webup"; +authorImageURL: "https://avatars.githubusercontent.com/u/2936504?v=4"; +keywords: +- KubeSphere +- Apache APISIX +- Kubenetes +- Ingress Controller +- 监控 +description: 本文将通过 Apache APISIX Ingress Controller 为范例,详细为大家介绍如何通过 KubeSphere 快速为 Kubernetes 集群使用不同类型的网关并进行状态监控。 +tags: [Technology] +--- + +> 本文将通过 Apache APISIX Ingress Controller 为范例,详细为大家介绍如何通过 KubeSphere 快速为 Kubernetes 集群使用不同类型的网关并进行状态监控。 + + + +11月初,KubeSphere 发布了 3.2.0 版本,新版本为项目网关增配了整套监控及管理页面,同时引入了集群网关来提供集群层面全局的 Ingress 网关能力。 + +为了让用户更了解如何在新版 KubeSphere 中部署使用第三方 Ingress Controller,本文将以 [Apache APISIX Ingress Controller](https://apisix.apache.org/docs/ingress-controller/getting-started/) 为例,为大家展示通过 KubeSphere 快速为 Kubernetes 集群使用不同类型的网关并进行状态监控。 + +## 准备工作 + +### 安装 KubeSphere + +安装 KubeSphere 有两种方法: + +1. [在 Linux 上直接安装](https://kubesphere.com.cn/docs/quick-start/all-in-one-on-linux/) +2. [在已有 Kubernetes 中安装](https://kubesphere.com.cn/docs/quick-start/minimal-kubesphere-on-k8s/) + +KubeSphere 最小化安装版本已经包含了监控模块,因此不需要额外启用,可以通过「系统组件」页面中的「监控」标签页确认安装状态。 + +![确认安装状态](https://static.apiseven.com/202108/1638255471644-e1327ffc-dbed-4890-a15c-819f28731fc9.png) + +### 部署 httpbin 演示应用 + +由于需要演示网关的访问控制能力,我们必须要先有一个可以访问的应用作为网关的后台服务。这里我们使用 [httpbin.org](httpbin.org) 提供的 [kennethreitz/httpbin](https://hub.docker.com/r/kennethreitz/httpbin/) 容器应用作为演示应用。 + +在 KubeSphere 中,我们可以先创建新的项目或使用已有的项目,进入项目页面后,选择「应用负载」下的「服务」直接创建无状态工作负载并生成配套服务。 + +![创建服务](https://static.apiseven.com/202108/1638255616585-b0f5a674-f06a-4b18-baf9-8d6006abeead.png) + +使用 [kennethreitz/httpbin](https://hub.docker.com/r/kennethreitz/httpbin/) 容器默认的 `80` 端口作为服务端口,创建完成后确保在「工作负载」和「服务」页面下都可以看到 `httpbin` 的对应条目,如下图所示。 + +![服务](https://static.apiseven.com/202108/1638255786442-924bf704-9b9d-413f-9fc0-be6650a6ff4a.png) + +![工作负载](https://static.apiseven.com/202108/1638255792974-7f354950-e34a-427a-9ff7-aa3af0a56dd6.png) + +### 项目网关细节补充 + +**项目网关**是 KubeSphere 3.0 之后上线的功能。KubeSphere 项目中的网关是一个 NGINX Ingress 控制器。KubeSphere 内置用于 HTTP 负载均衡的机制称为**应用路由**,它定义了从外部到集群服务的连接规则。如需允许从外部访问服务,用户可创建路由资源来定义 URI 路径、后端服务名称等信息。 + +承接上文中已部署的 `httpbin` 服务项目,在「项目设置」中打开「网关设置」页面,然后执行「开启网关」操作。方便起见,直接选择 `NodePort` 作为「访问方式」即可。 + +![项目设置](https://static.apiseven.com/202108/1638256005754-d1e8bf9a-0ecc-4c6e-8ceb-0c25b04fef20.png) + +确定后回到网关页面,稍等片刻后刷新页面,可以得到如下图显示的部署完成状态,在这里可以看到 NodePort 默认被赋予了两个节点端口。接招我们通过右上角的「管理」按钮「查看详情」。 + +![部署完成](https://static.apiseven.com/202108/1638256011357-960f6852-31b3-4702-8911-17d07ec19d7b.png) + +此时我们看到的便是 3.2.0 版本关于项目/集群网关的新监控页面。下面我们就需要为 httpbin 服务创建应用路由。 + +从「应用负载」进入「应用路由」页面,开始「创建」路由。为路由取名为 `httpbin` 后,我们指定一个方便测试的域名,并设置「路径」为 `/`, 选择「服务」`httpbin` 和「端口」`80`。 + +![应用路由](https://static.apiseven.com/202108/1638241684770-ce94fe24-58a6-4b9b-9507-d802713b4c38.png) + +![创建路由](https://static.apiseven.com/202108/1638241689985-149fc2f7-456b-423c-8cfc-00800dc24917.png) + +直接下一步跳过高级设置后完成路由创建,可以得到如下图所示的 httpbin 应用路由项。 + +![应用路由项细节](https://static.apiseven.com/202108/1638256382273-109728eb-4d19-4c2b-ab92-9a2909c3eff8.png) + +接下来我们就可以通过项目网关的 NodePort 地址及指定域名(如这里是 http://httpbin.ui:32516) 来访问 httpbin 应用服务,随意刷新或操作一下页面的请求生成功能,再进入网关的详情页面,便可以看到在「监控」面板上已经出现了网关的一些内置的监控指标展示。 + +![监控指标展示](https://static.apiseven.com/202108/1638256419345-48476f01-b293-401b-9e4f-8bf64a9fab90.png) + + 指定 NodePort 节点端口 + +对于公有云环境,如果使用 NodePort 方式向外暴露访问能力,开放端口通常是有限且受控的,因此对于网关所使用的 NodePort 我们需要对它进行修改。 + +由于网关是被 KubeSphere 统一管理的,要修改网关服务的 NodePort 需要具备访问 `kubesphere-controls-system` 的项目权限。进入该项目后,通过「应用负载」的「服务」页面即可找到命名为 `kubesphere-router-` 形式且外部访问已开放 NodePort 的网关服务。NodePort 服务端口需要通过「编辑 YAML」来直接修改。 + +![指定 NodePort 端口](https://static.apiseven.com/202108/1638256523468-408ee36f-aac7-4bb4-9cd3-2473a95a52f4.png) + +## 开始使用集群网关 + +>KubeSphere 3.2.0 开始支持集群级别的全局网关,所有项目可共用同一个网关,之前已创建的项目网关也不会受到集群网关的影响。也可以统一纳管所有项目的网关,对其进行集中管理和配置,管理员用户再也不需要切换到不同的企业空间中去配置网关了。 + +如果您使用的是是 KubeSphere 3.2.0 版本,我们更推荐大家使用集群网关的功能来统一整个集群的应用路由。要启用集群网关也非常简单:使用具备集群管理权限的账号,进入其可管理的某个集群(如我们这里以 `default` 集群为例),在「集群设置」的「网关设置」中即可「开启网关」,同时查看「项目网关」。 + +![开启网关设置](https://static.apiseven.com/202108/1638256574546-920473f3-e8ac-4cf9-932b-4202888e7a54.png) + +集群网关开启的方式以及对齐 NodePort 访问端口的修改和之前项目网关的操作基本完全一致,这里就不多赘述了。 + +但有一点需要特别注意:集群网关开启后,已经开启的项目网关还会保留;但尚未创建网关的项目是无法再创建单独的网关的,会直接使用集群网关。 + +下图展示了已创建网关的项目,在同时拥有项目及集群网关后,在「网关设置」页面所呈现的所有网关概览。 + +![网关设置页面一览](https://static.apiseven.com/202108/1638256658706-ac5107fe-2fd7-4521-b830-9ae1fdf762e1.png) + +## 快速使用 Apache APISIX Ingress Controller + +Apache APISIX 是一款开源的高性能、动态云原生网关,由深圳支流科技有限公司于 2019 年捐赠给 Apache 基金会,目前已成为 Apache 基金会的顶级开源项目,也是 GitHub 上最活跃的网关项目。Apache APISIX 目前已覆盖 API 网关、LB、Kubernetes Ingress、Service Mesh 等多种场景。 + +### 如何部署 + +首先添加 Apache APISIX
[apisix-website] branch master updated: docs: add contribution guidelines (#776)
This is an automated email from the ASF dual-hosted git repository. juzhiyuan pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/apisix-website.git The following commit(s) were added to refs/heads/master by this push: new a45f5c6 docs: add contribution guidelines (#776) a45f5c6 is described below commit a45f5c67b309fdf049553f8c95f627b348abc92c Author: yilinzeng <36651058+yzen...@users.noreply.github.com> AuthorDate: Tue Nov 30 17:07:26 2021 +0800 docs: add contribution guidelines (#776) --- README.md | 2 + website/docs/general/blog-contributing-guide.md | 347 website/docs/general/sidebars.json | 1 + 3 files changed, 350 insertions(+) diff --git a/README.md b/README.md index 95d6fd8..f2a1423 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ The website of [Apache APISIX®](https://apisix.apache.org/), a cloud-native microservices api gateway. +If you want to write a blog or fix some blog-related issues, please read [Apache APISIX Blog Contributing Guide](/website/docs/general/blog-contributing-guide.md) first. Then create a pull request. + ## Usage ```sh diff --git a/website/docs/general/blog-contributing-guide.md b/website/docs/general/blog-contributing-guide.md new file mode 100644 index 000..68c3b52 --- /dev/null +++ b/website/docs/general/blog-contributing-guide.md @@ -0,0 +1,347 @@ +--- +id: blog +title: Blog Contributing Guide +keywords: +- API gateway +- APISIX +- Apache APISIX +- blog +- how to write a blog +description: This article is a set of guidelines for contributors who want to write blogs. This guideline will teach you how to contribute if you want to add a new blog, or modify existing blog contents. +--- + +## Overview + +This guideline will teach you how to contribute if you want to add a new blog, or modify existing blog contents. + +If you find an issue on current documents, please feel free to [file an issue](https://github.com/apache/apisix-website/issues/new) and let the community know about it, or you can [sumbit a pull request](https://github.com/apache/apisix-website/pulls) to fix or update. Both actions are welcome and recommended. + +The blogs are written in two languages: English and Chinese. We encourage contributors to add blogs in their preferred language. It is completely up to you. We can handle translations and ask you to do a pull request review later. + +English blogs are located in the `website/blog` directory, in which they are categorized by year, month and date. For example, `website/blog/2021/11/22/develop-apisix-ingress-with-nocalhost-in-kubernetes.md` means that a blog named `develop-apisix-ingress-with-nocalhost-in-kubernetes.md` was published on November 22nd, 2021, and it is located in the `website/blog/2021/11/22` directory. Once it is reviewed and megered, the URL should be: `https://apisix.apache.org/blog/2021/11/22/develop- [...] + +Similarly, Chinese blogs are located in `website/i18n/zh/docusaurus-plugin-content-blog` directory and follow the same patterns described above. + +## What you can contribute + +We encourge contributors and users to write blogs about how they contribute or use Apache APISIX, or help us fix typos and update contents in existing blogs. + +### Add a new blog + +To add a new blog, please perform the following steps: + +1. Find the right place to store your blog. +1. If you plan to submit a blog written in **English**, please create a markdown file under `website/blog` directory. +2. If you plan to submit a blog written in **Chinese**, please create a markdown file under `website/i18n/zh/docusaurus-plugin-content-blog` directory. +3. If you cannot find an existing year, month, or date directory that fits your desired published date, you can go ahead and create such directory on your own. + +2. Create a markdown file in the directory. Please make sure that the file name is written in English with **NO** capitalized letters. During review session, we may suggest changing it to achieve better SEO performance (Yes, currently some files names contain capitalized letters, we are working on it, see [Issue #713](https://github.com/apache/apisix-website/issues/713)). + +3. Add text, images, diagrams, charts to the markdown file. +1. There is nothing much to say about adding text. +2. To add images, please upload images to by using [this public image CDN service](https://markdown.apiseven.com) , and copy the links from there. +3. To add charts or diagrams, we are happy to see any sort of charts and diagrams. From previous experience, charts with 4 columns or less are the perfect size displayed on screen. + +4. Optional: run it locally to inspect any typos or formatting issues left behind. Although we implemented lint and error checks in the repository, we suggest running it locally to avoid repeated work. To run it locally, please run
[GitHub] [apisix-website] juzhiyuan merged pull request #776: docs: add contribution guidelines
juzhiyuan merged pull request #776: URL: https://github.com/apache/apisix-website/pull/776 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #5634: request help: support get the key from function in limit-* plugins
spacewander commented on issue #5634: URL: https://github.com/apache/apisix/issues/5634#issuecomment-982428340 We can register the variable with a custom function, like: ``` core.ctx.register_var("my_consumer", function (...) end) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #5647: docs: provide the apisix-base's RPM package
spacewander commented on issue #5647: URL: https://github.com/apache/apisix/issues/5647#issuecomment-982431170 We should no longer require users to install rpm directly as we already have a yum repo. The yum repo will resolve all the dependencies. Let's remove https://github.com/apache/apisix/blob/master/docs/en/latest/how-to-build.md#installation-via-rpm-packagecentos-7 instead. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] bzp2010 commented on issue #5647: docs: provide the apisix-base's RPM package
bzp2010 commented on issue #5647: URL: https://github.com/apache/apisix/issues/5647#issuecomment-982432451 Yes, I agree with this too. But after that our yum repository will be placed in the CDN service provided by ASF? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] tokers commented on issue #5648: limit-count plugin does not work in redis mode?
tokers commented on issue #5648: URL: https://github.com/apache/apisix/issues/5648#issuecomment-982443074 Please provide more details about this, also, please provide the way you test the redis. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] ybbtuubj commented on issue #5648: limit-count plugin does not work in redis mode?
ybbtuubj commented on issue #5648: URL: https://github.com/apache/apisix/issues/5648#issuecomment-982445335 同样的问题,也是2.10版本,我的redis版本是6.2.6 用的127,0,0.1 6379 redis和apisix都在本地 用redis-cli本地测试redis没有问题 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] tokers commented on issue #5648: limit-count plugin does not work in redis mode?
tokers commented on issue #5648: URL: https://github.com/apache/apisix/issues/5648#issuecomment-982446254 What's the route looks like? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] shuaijinchao commented on a change in pull request #5646: fix: google cloud logging plugin file config error
shuaijinchao commented on a change in pull request #5646: URL: https://github.com/apache/apisix/pull/5646#discussion_r759083813 ## File path: t/plugin/google-cloud-logging.t ## @@ -509,3 +509,99 @@ qr/\{\"error\"\:\"[\w+\s+]*\"\}/ --- error_log Batch Processor[google-cloud-logging] failed to process entries Batch Processor[google-cloud-logging] exceeded the max_retry_count + + + +=== TEST 16: set route (succeed write) +--- config +location /t { +content_by_lua_block { + +local config = { +uri = "/hello", +upstream = { +type = "roundrobin", +nodes = { +["127.0.0.1:1980"] = 1 +} +}, +plugins = { +["google-cloud-logging"] = { +auth_file = "t/plugin/google-cloud-logging-configuration.json", +inactive_timeout = 1, +batch_max_size = 1, +} +} +} +local t = require("lib.test_admin").test +local code, body = t('/apisix/admin/routes/1', ngx.HTTP_PUT, config) + +if code >= 300 then +ngx.status = code +ngx.say(body) +return +end + +ngx.say(body) +} +} +--- response_body +passed + + + +=== TEST 17: test route(succeed write) +--- request +GET /hello +--- wait: 2 +--- response_body +hello world + + + +=== TEST 18: set route (succeed write) Review comment: updated -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] tokers edited a comment on issue #5648: limit-count plugin does not work in redis mode?
tokers edited a comment on issue #5648: URL: https://github.com/apache/apisix/issues/5648#issuecomment-982446254 What does the route/upstream configurations look like? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] shuaijinchao commented on a change in pull request #5646: fix: google cloud logging plugin file config error
shuaijinchao commented on a change in pull request #5646: URL: https://github.com/apache/apisix/pull/5646#discussion_r759083974 ## File path: t/plugin/google-cloud-logging-configuration.json ## @@ -0,0 +1,9 @@ +{ + "private_key": "-BEGIN RSA PRIVATE KEY-\nMIIBOgIBAAJBAKebDxlvQMGyEesAL1r1nIJBkSdqu3Hr7noq/0ukiZqVQLSJPMOv\n0oxQSutvvK3hoibwGakDOza+xRITB7cs2cECAwEAAQJAYPWh6YvjwWobVYC45Hz7\n+pqlt1DWeVQMlN407HSWKjdH548ady46xiQuZ5Cfx3YyCcnsfVWaQNbC+jFbY4YL\nwQIhANfASwz8+2sKg1xtvzyaChX5S5XaQTB+azFImBJumixZAiEAxt93Td6JH1RF\nIeQmD/K+DClZMqSrliUzUqJnCPCzy6kCIAekDsRh/UF4ONjAJkKuLedDUfL3rNFb\n2M4BBSm58wnZAiEAwYLMOg8h6kQ7iMDRcI9I8diCHM8yz0SfbfbsvzxIFxECICXs\nYvIufaZvBa8f+E/9CANlVhm5wKAyM8N8GJsiCyEG\n-END RSA PRIVATE KEY-", Review comment: done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] ybbtuubj commented on issue #5648: limit-count plugin does not work in redis mode?
ybbtuubj commented on issue #5648: URL: https://github.com/apache/apisix/issues/5648#issuecomment-982450472 我自己写的自定义插件,用的limit-count-redis.lua里面的代码,几乎一模一样复制过来的 ![image](https://user-images.githubusercontent.com/20395808/144021211-223090a2-1287-47d3-a85e-c0606da89c36.png) 上图是代码,然后错误里面显示 ![image](https://user-images.githubusercontent.com/20395808/144021520-d00eb1a1-60a4-4fdd-8eb5-8ecd90f03e21.png) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-ingress-controller] han6565 opened a new issue #778: request help: 新增namespace 然后删除,会一直报not found
han6565 opened a new issue #778: URL: https://github.com/apache/apisix-ingress-controller/issues/778 ### Issue description 在k8集群内,启动apisix-ingress,新增namespace,然后删除会一直报 ``` sync namespace info failed, will retry {"namespace": "xxx", "error": "namespaces \"xxx\" not found"} ``` 研究了一下,应该是删除namespace触发了delete事件后又触发了update事件,由于无法找到对应的namespace所以会一直报错。不知道大家是否也是这样。 另外还有一个问题 ``` // if labels of namespace contains the watchingLabels, the namespace should be set to controller.watchingNamespace if c.controller.watchingLabels.IsSubsetOf(namespace.Labels) { c.controller.watchingNamespace.Store(namespace.Name, struct{}{}) } ``` c.controller.watchingLabels.IsSubsetOf(namespace.Labels) 这句如果我是新增的namespace是不会在watchingLabels里面有值的,也就无法将新的namespace加入到watchingNamespace,不知道是不是我哪里配置有问题。我这边watchingLabels似乎始终是空的 mapConfig ``` data: config.yaml: | # log options log_level: "debug" log_output: "stderr" http_listen: ":8080" enable_profiling: true kubernetes: kubeconfig: "" resync_interval: "6h" app_namespaces: - "*" ingress_class: "apisix" ingress_version: "networking/v1" apisix_route_version: "apisix.apache.org/v2beta1" apisix: default_cluster_base_url: "http://172.24.150.14:9180/apisix/admin"; default_cluster_admin_key: "edd1c9f034335f136f87ad84b625c8f1" default_cluster_name: "" ``` 目前我的解决方法比较暴力,但是新建namespace和删除都可以正常watching ``` if ev.Type != types.EventDelete { // check the labels of specify namespace namespace, err := c.controller.kubeClient.Client.CoreV1().Namespaces().Get(ctx, ev.Object.(string), metav1.GetOptions{}) if err != nil { if strings.Index(err.Error(), "not found") > 0 && ev.Type == types.EventUpdate { return nil } return err } else { // if labels of namespace contains the watchingLabels, the namespace should be set to controller.watchingNamespace //if c.controller.watchingLabels.IsSubsetOf(namespace.Labels) { c.controller.watchingNamespace.Store(namespace.Name, struct{}{}) //} } } else { // type == types.EventDelete namespace := ev.Tombstone.(*corev1.Namespace) if _, ok := c.controller.watchingNamespace.Load(namespace.Name); ok { c.controller.watchingNamespace.Delete(namespace.Name) } // do nothing, if the namespace did not in controller.watchingNamespace } ``` ### Environment * your apisix-ingress-controller version (output of `apisix-ingress-controller version --long`); v1.3 * your Kubernetes cluster version (output of `kubectl version`); Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.14", GitCommit:"89182bdd065fbcaffefec691908a739d161efc03", GitTreeState:"clean", BuildDate:"2020-12-18T12:02:35Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"} * if you run apisix-ingress-controller in Bare-metal environment, also show your OS version (`uname -a`). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] spacewander merged pull request #5640: feat: report error when use etcd client cert auth
spacewander merged pull request #5640: URL: https://github.com/apache/apisix/pull/5640 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] spacewander closed issue #5608: request help: apisix cannot connect to etcd when etcd auth enabled
spacewander closed issue #5608: URL: https://github.com/apache/apisix/issues/5608 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[apisix] branch master updated: feat: report error when use etcd client cert auth (#5640)
This is an automated email from the ASF dual-hosted git repository. spacewander pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/apisix.git The following commit(s) were added to refs/heads/master by this push: new 150c29d feat: report error when use etcd client cert auth (#5640) 150c29d is described below commit 150c29d260390a3e7e43e27b554b311b3ebffebf Author: MizuhaHimuraki AuthorDate: Tue Nov 30 17:59:05 2021 +0800 feat: report error when use etcd client cert auth (#5640) --- apisix/cli/etcd.lua | 7 +++ 1 file changed, 7 insertions(+) diff --git a/apisix/cli/etcd.lua b/apisix/cli/etcd.lua index 4595ec5..53c4146 100644 --- a/apisix/cli/etcd.lua +++ b/apisix/cli/etcd.lua @@ -347,6 +347,13 @@ function _M.init(env, args) util.die(errmsg) end +if res_put:find("CommonName of client sending a request against gateway", 1, true) then +errmsg = str_format("etcd \"client-cert-auth\" cannot be used with gRPC-gateway, " + .. "please configure the etcd username and password " + .. "in configuration file\n") +util.die(errmsg) +end + if res_put:find("error", 1, true) then is_success = false if (index == host_count) then
[GitHub] [apisix] spacewander commented on issue #5647: docs: provide the apisix-base's RPM package
spacewander commented on issue #5647: URL: https://github.com/apache/apisix/issues/5647#issuecomment-982475799 No. The CDN service provides the source, not the rpm package. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] spacewander closed issue #5613: request help: how to construct this kind of route
spacewander closed issue #5613: URL: https://github.com/apache/apisix/issues/5613 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #5599: request help: proxy_mirror enable then apisix given error log
spacewander commented on issue #5599: URL: https://github.com/apache/apisix/issues/5599#issuecomment-982479158 Consider solved. Feel free to reopen it if need. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] spacewander closed issue #5599: request help: proxy_mirror enable then apisix given error log
spacewander closed issue #5599: URL: https://github.com/apache/apisix/issues/5599 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] spacewander closed issue #5574: request help: consumer 怎么能绑定 upstream
spacewander closed issue #5574: URL: https://github.com/apache/apisix/issues/5574 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-dashboard] github-actions[bot] commented on issue #2177: request help: 为什么插件编排后只有一个生效
github-actions[bot] commented on issue #2177: URL: https://github.com/apache/apisix-dashboard/issues/2177#issuecomment-982483863 This issue has been marked as stale due to 30 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the d...@apisix.apache.org list. Thank you for your contributions. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-dashboard] github-actions[bot] commented on pull request #2071: feat: remake online debug
github-actions[bot] commented on pull request #2071: URL: https://github.com/apache/apisix-dashboard/pull/2071#issuecomment-982483804 This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If you think that's incorrect or this pull request should instead be reviewed, please simply write any comment. Even if closed, you can still revive the PR at any time ordiscuss it on the d...@apisix.apache.org list. Thank you for your contributions. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] spacewander opened a new issue #5649: docs: the WASM way is experimental
spacewander opened a new issue #5649: URL: https://github.com/apache/apisix/issues/5649 ### Improved or typo fixed. Currently, the README claims that the WASM extension is the modern way. However, it is an experimental feature. ### Solution Need to fix it with: ``` diff --git README.md README.md index d14aae9c..8e11456c 100644 --- README.md +++ README.md @@ -146,10 +146,10 @@ A/B testing, canary release, blue-green deployment, limit rate, defense against - Custom routing: Support users to implement routing algorithms themselves. - **Multi-Language support** - - Apache APISIX is a multi-language gateway for plugin development and provides support via `WASM` and `RPC`. + - Apache APISIX is a multi-language gateway for plugin development and provides support via `RPC` and `WASM`. ![Multi Language Support into Apache APISIX](docs/assets/images/apisix-multi-lang-support.png) - - The WASM or WebAssembly, is the modern way. APISIX can load and run WASM bytecode via APISIX [wasm plugin](https://github.com/apache/apisix/blob/master/docs/en/latest/wasm.md) written with the [Proxy WASM SDK](https://github.com/proxy-wasm/spec#sdks). Developers only need to write the code according to the SDK and then compile it into a WASM bytecode that runs on WASM VM with APISIX. - - The RPC way, is a traditional way. Developers can choose the language according to their needs and after starting an independent process with the RPC, it exchanges data with APISIX through local RPC communication. Till this moment, APISIX has support for [Java](https://github.com/apache/apisix-java-plugin-runner), [Golang](https://github.com/apache/apisix-go-plugin-runner), [Python](https://github.com/apache/apisix-python-plugin-runner) and Node.js. + - The RPC way, is the current way. Developers can choose the language according to their needs and after starting an independent process with the RPC, it exchanges data with APISIX through local RPC communication. Till this moment, APISIX has support for [Java](https://github.com/apache/apisix-java-plugin-runner), [Golang](https://github.com/apache/apisix-go-plugin-runner), [Python](https://github.com/apache/apisix-python-plugin-runner) and Node.js. + - The WASM or WebAssembly, is an experimental way. APISIX can load and run WASM bytecode via APISIX [wasm plugin](https://github.com/apache/apisix/blob/master/docs/en/latest/wasm.md) written with the [Proxy WASM SDK](https://github.com/proxy-wasm/spec#sdks). Developers only need to write the code according to the SDK and then compile it into a WASM bytecode that runs on WASM VM with APISIX. - **Serverless** - [Lua functions](docs/en/latest/plugins/serverless.md): Invoke functions in each phase in APISIX. diff --git docs/zh/latest/README.md docs/zh/latest/README.md index 7f8a1e24..f50b8b5b 100644 --- docs/zh/latest/README.md +++ docs/zh/latest/README.md @@ -145,10 +145,10 @@ A/B 测试、金丝雀发布(灰度发布)、蓝绿部署、限流限速、抵 - 自定义路由: 支持用户自己实现路由算法。 - **多语言支持** - - Apache APISIX 是一个通过 `WASM` 和 `RPC` 支持不同语言来进行插件开发的网关. + - Apache APISIX 是一个通过 `RPC` 和 `WASM` 支持不同语言来进行插件开发的网关. ![Multi Language Support into Apache APISIX](../../../docs/assets/images/apisix-multi-lang-support.png) - - WASM 或 WebAssembly 是比较现代的开发方式。 APISIX 能加载运行使用[Proxy WASM SDK](https://github.com/proxy-wasm/spec#sdks)编译的 WASM 字节码。开发者仅需要使用该 SDK 编写代码,然后编译成 WASM 字节码,即可运行在 APISIX 中的 WASM 虚拟机中。 - - RPC 是一种比较传统的开发方式。开发者可以使用他们需要的语言来进行 RPC 服务的开发,该 RPC 通过本地通讯来跟 APISIX 进行数据交换。到目前为止,APISIX 已支持[Java](https://github.com/apache/apisix-java-plugin-runner), [Golang](https://github.com/apache/apisix-go-plugin-runner), [Python](https://github.com/apache/apisix-python-plugin-runner) and Node.js. + - RPC 是当前采用的开发方式。开发者可以使用他们需要的语言来进行 RPC 服务的开发,该 RPC 通过本地通讯来跟 APISIX 进行数据交换。到目前为止,APISIX 已支持[Java](https://github.com/apache/apisix-java-plugin-runner), [Golang](https://github.com/apache/apisix-go-plugin-runner), [Python](https://github.com/apache/apisix-python-plugin-runner) and Node.js. + - WASM 或 WebAssembly 是实验性的开发方式。 APISIX 能加载运行使用[Proxy WASM SDK](https://github.com/proxy-wasm/spec#sdks)编译的 WASM 字节码。开发者仅需要使用该 SDK 编写代码,然后编译成 WASM 字节码,即可运行在 APISIX 中的 WASM 虚拟机中。 - **Serverless** - [Lua functions](plugins/serverless.md): 能在 APISIX 每个阶段调用 lua 函数. ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] jianmaikj commented on issue #5648: limit-count plugin does not work in redis mode?
jianmaikj commented on issue #5648: URL: https://github.com/apache/apisix/issues/5648#issuecomment-982500938 upstream: ![image](https://user-images.githubusercontent.com/75167751/144030118-531ea169-f89e-4cdb-83ce-d58970ca89d9.png) route: ![image](https://user-images.githubusercontent.com/75167751/144030313-abadc590-f7e8-48de-83bb-4736297f59e5.png) When the policy is local or limit-count is not enabled, everything is ok. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] deepzz0 opened a new issue #5650: request help: etcd tls connect handshake failed
deepzz0 opened a new issue #5650: URL: https://github.com/apache/apisix/issues/5650 ### Issue description ``` 2021/11/30 10:19:20 [warn] 45#45: *75201 [lua] v3.lua:631: request_chunk(): https://172.19.125.95:2379: handshake failed. Retrying, context: ngx.timer 2021/11/30 10:19:20 [error] 48#48: *75191 SSL_do_handshake() failed (SSL: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate:SSL alert number 42), context: ngx.timer ``` ![image](https://user-images.githubusercontent.com/10971608/144029843-12576499-2b97-492f-b596-aff45717c63d.png) ![image](https://user-images.githubusercontent.com/10971608/144029909-4b6de3cc-6a35-4ce0-8faf-5fdf5259a334.png) Above is my configuration, I can confirm that the certificate is ok. I saw the previous issue said openResty does not support mTLS? ### Environment - apisix version (cmd: `apisix version`): 2.10.0 - OS (cmd: `uname -a`): - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API): - apisix-dashboard version, if have: - the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner): - luarocks version, if the issue is about installation (cmd: `luarocks --version`): -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] deepzz0 commented on issue #5650: request help: etcd tls connect handshake failed
deepzz0 commented on issue #5650: URL: https://github.com/apache/apisix/issues/5650#issuecomment-982541062 Upgrading to Apisix version 2.11.0 has been resolved, but but a new error appeared: ``` 11/30 11:16:28 [warn] 49#49: *22332 [lua] v3.lua:151: _request_uri(): https://172.19.65.156:2379: certificate host mismatch. Retrying, context: ngx.timer 2021/11/30 11:16:28 [warn] 49#49: *22332 [lua] v3.lua:151: _request_uri(): https://172.19.65.156:2379: certificate host mismatch. Retrying, context: ngx.timer 2021/11/30 11:16:28 [warn] 49#49: *22332 [lua] health_check.lua:90: report_failure(): update endpoint: https://172.19.65.156:2379 to unhealthy, context: ngx.timer ``` My config: ``` etcd: host: # it's possible to define multiple etcd hosts addresses of the same etcd cluster. - "https://172.19.65.156:2379"; # multiple etcd address - "https://172.19.178.146:2379"; # multiple etcd address - "https://172.19.125.95:2379"; # multiple etcd address prefix: "/apisix" # apisix configurations prefix timeout: 30 # 30 seconds tls: cert: "/etcd-ssl/tls.crt" key: "/etcd-ssl/tls.key" verify: true ``` my etcd cert: ``` 09v3 extensions: X509v3 Key Usage: critical Digital Signature, Key Encipherment X509v3 Extended Key Usage: TLS Web Server Authentication, TLS Web Client Authentication X509v3 Basic Constraints: critical CA:FALSE X509v3 Subject Key Identifier: 94:03:8D:57:B1:80:16:B1:24:F1:FB:54:84:48:D9:85:3D:50:A5:1A X509v3 Authority Key Identifier: keyid:D8:91:86:C9:95:9D:40:22:31:17:18:30:8C:0E:90:2A:AD:07:84:31 X509v3 Subject Alternative Name: IP Address:172.19.65.156, IP Address:172.19.125.95, IP Address:172.19.178.146, IP Address:127.0.0.1 ``` what's wrong? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] shuaijinchao commented on issue #5650: request help: etcd tls connect handshake failed
shuaijinchao commented on issue #5650: URL: https://github.com/apache/apisix/issues/5650#issuecomment-982541116 Is the ca certificate configured? refer to: https://github.com/apache/apisix/blob/master/t/cli/test_etcd_mtls.sh -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] deepzz0 edited a comment on issue #5650: request help: etcd tls connect handshake failed
deepzz0 edited a comment on issue #5650: URL: https://github.com/apache/apisix/issues/5650#issuecomment-982541062 Upgrading to Apisix version 2.11.0 has been resolved, but but a new error appeared: ``` 11/30 11:16:28 [warn] 49#49: *22332 [lua] v3.lua:151: _request_uri(): https://172.19.65.156:2379: certificate host mismatch. Retrying, context: ngx.timer 2021/11/30 11:16:28 [warn] 49#49: *22332 [lua] v3.lua:151: _request_uri(): https://172.19.65.156:2379: certificate host mismatch. Retrying, context: ngx.timer 2021/11/30 11:16:28 [warn] 49#49: *22332 [lua] health_check.lua:90: report_failure(): update endpoint: https://172.19.65.156:2379 to unhealthy, context: ngx.timer ``` My config: ``` etcd: host: # it's possible to define multiple etcd hosts addresses of the same etcd cluster. - "https://172.19.65.126:2379"; # multiple etcd address - "https://172.19.178.136:2379"; # multiple etcd address - "https://172.19.125.105:2379"; # multiple etcd address prefix: "/apisix" # apisix configurations prefix timeout: 30 # 30 seconds tls: cert: "/etcd-ssl/tls.crt" key: "/etcd-ssl/tls.key" verify: true ``` my etcd cert: ``` 09v3 extensions: X509v3 Key Usage: critical Digital Signature, Key Encipherment X509v3 Extended Key Usage: TLS Web Server Authentication, TLS Web Client Authentication X509v3 Basic Constraints: critical CA:FALSE X509v3 Subject Key Identifier: 94:03:8D:57:B1:80:16:B1:24:F1:FB:54:84:48:D9:85:3D:50:A5:1A X509v3 Authority Key Identifier: keyid:D8:91:86:C9:95:9D:40:22:31:17:18:30:8C:0E:90:2A:AD:07:84:31 X509v3 Subject Alternative Name: IP Address:172.19.65.126, IP Address:172.19.178.136, IP Address:172.19.125.105, IP Address:127.0.0.1 ``` what's wrong? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] deepzz0 commented on issue #5650: request help: etcd tls connect handshake failed
deepzz0 commented on issue #5650: URL: https://github.com/apache/apisix/issues/5650#issuecomment-982544938 > Is the ca certificate configured? refer to: https://github.com/apache/apisix/blob/master/t/cli/test_etcd_mtls.sh The first problem is solved, but a new error appeared: certificate host mismatch. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] shuaijinchao commented on issue #5650: request help: etcd tls connect handshake failed
shuaijinchao commented on issue #5650: URL: https://github.com/apache/apisix/issues/5650#issuecomment-982574246 refer to: https://github.com/apache/apisix/issues/5155 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] zhangweidongyyl commented on issue #5643: request help: body_filter how to send request in apisix
zhangweidongyyl commented on issue #5643: URL: https://github.com/apache/apisix/issues/5643#issuecomment-982579024 > we can use a 0 delay `ngx.timer.at`, see: https://github.com/openresty/lua-nginx-module#ngxtimerat This doesn't seem to solve my problem i use > ngx.header[conf.headers_arr[i]] = val in header_filter. i use > ngx.redirect(host) in body_filter I don't know if it can solve this problem, but it can't bring headers 。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-dashboard] adoal commented on issue #2219: Add sub_path support when dashboard under a subdirectory via nginx reverse proxy.
adoal commented on issue #2219: URL: https://github.com/apache/apisix-dashboard/issues/2219#issuecomment-982595185 > we cau use `proxy-rewrite` plugins to do this, refer to:[apache/apisix#3252](https://github.com/apache/apisix/issues/3252) I don't think `proxy-rewrite` helps, since it only strips the prefix then sends to the backend server, but we also need some mechanism to tell the backend so it will 'know' it should generate anchor URLs under some prefix. Just like `SCRIPT_NAME` and `PATH_INFO` in traditional CGI spec. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-dashboard] tzssangglass commented on issue #2219: Add sub_path support when dashboard under a subdirectory via nginx reverse proxy.
tzssangglass commented on issue #2219: URL: https://github.com/apache/apisix-dashboard/issues/2219#issuecomment-982600110 > since it only strips the prefix then sends to the backend server APISIX does not modify the url by default. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-ingress-controller] lxm opened a new pull request #779: feat: support regex in path
lxm opened a new pull request #779: URL: https://github.com/apache/apisix-ingress-controller/pull/779 Please answer these questions before submitting a pull request - Why submit this pull request? - [ ] New feature provided - Related issues #768 ___ ### New feature or improvement - support a new annotation `k8s.apisix.apache.org/use-regex` which to change path behavior using apisix's vars -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] tzssangglass commented on issue #5648: limit-count plugin does not work in redis mode?
tzssangglass commented on issue #5648: URL: https://github.com/apache/apisix/issues/5648#issuecomment-982610480 from the error log, it is clear that this is a network connection problem. > Tested that redis is normally connectable How did you tested it was normal? Can you capture network packets? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] tzssangglass commented on issue #5643: request help: body_filter how to send request in apisix
tzssangglass commented on issue #5643: URL: https://github.com/apache/apisix/issues/5643#issuecomment-982618806 I cannot got what you want to do. BTW, ngx.redirect is unavailable in `body_filter_by_lua`, see: https://github.com/openresty/lua-nginx-module#ngxredirect -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] tzssangglass commented on issue #5633: bug: enable skywalking plugin , the route rewrite is not affected
tzssangglass commented on issue #5633: URL: https://github.com/apache/apisix/issues/5633#issuecomment-982630648 I can't reproduce your problem on the master branch. Here are my reproduction steps. 1. route config: ```shell curl --location --request PUT 'http://127.0.0.1:9080/apisix/admin/routes/1' \ --header 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' \ --header 'Content-Type: application/json' \ --data-raw '{ "plugins": { "proxy-rewrite": { "uri": "/get" }, "skywalking": { "sample_ratio": 1 } }, "upstream": { "nodes": { "httpbin.org:80": 1 }, "type": "roundrobin" }, "uri": "/hello" }' ``` 2. skywalking config ```yaml plugin_attr: skywalking: service_name: APISIX service_instance_name: APISIX Instance Name endpoint_addr: http://127.0.0.1:12800 ``` 3. test proxy by APISIX. the uri `/hello` should rewrite by `proxy-rewrite` to `/get` ``` $ curl http://127.0.0.1:9080/hello { "args": {}, "headers": { "Accept": "*/*", "Host": "127.0.0.1", "Sw8": "1-MGMwNmQ4NjUtNGM5Zi00MTNjLTg4YWUtMjZlMjk1ODQ3YWQ1-MGMwNmQ4NjUtNGM5Zi00MTNjLTg4YWUtMjZlMjk1ODQ3YWQ1-1-QVBJU0lY-QVBJU0lYIEluc3RhbmNlIE5hbWU=-L2hlbGxv-dXBzdHJlYW0gc2VydmljZQ==", "User-Agent": "curl/7.64.1", "X-Amzn-Trace-Id": "Root=1-61a623d0-596b05d10f019de71b630319", "X-Forwarded-Host": "127.0.0.1" }, "origin": "127.0.0.1, 180.118.191.92", "url": "http://127.0.0.1/get"; } ``` 4. test use `/hello` to access `httpbin` should got 404 ``` $ curl http://httpbin.org:80/hello 404 Not Found Not Found The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. ``` you can see that `proxy-rewrite` and `skywalking` plugins work well. I think you may have been misled by some wrong configurations. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[apisix-website] branch master updated: docs: add APISIX Ingress in KubeSphere tech blog (#781)
This is an automated email from the ASF dual-hosted git repository. bzp2010 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/apisix-website.git The following commit(s) were added to refs/heads/master by this push: new 40b5c6c docs: add APISIX Ingress in KubeSphere tech blog (#781) 40b5c6c is described below commit 40b5c6c038ebca0f9259ffea9919f6062654ddf3 Author: Sylvia <39793568+sylviab...@users.noreply.github.com> AuthorDate: Tue Nov 30 21:45:16 2021 +0800 docs: add APISIX Ingress in KubeSphere tech blog (#781) --- .../2021/11/30/use-apisix-ingress-in-kubesphere.md | 441 .../2021/11/30/use-apisix-ingress-in-kubesphere.md | 443 + 2 files changed, 884 insertions(+) diff --git a/website/blog/2021/11/30/use-apisix-ingress-in-kubesphere.md b/website/blog/2021/11/30/use-apisix-ingress-in-kubesphere.md new file mode 100644 index 000..aaa4683 --- /dev/null +++ b/website/blog/2021/11/30/use-apisix-ingress-in-kubesphere.md @@ -0,0 +1,441 @@ +--- +title: "Using Apache APISIX Ingress Gateway to access Custom Monitoring in KubeSphere" +author: "Haili Zhang" +authorURL: "https://github.com/webup"; +authorImageURL: "https://avatars.githubusercontent.com/u/2936504?v=4"; +keywords: +- KubeSphere +- Apache APISIX +- Kubenetes +- Ingress Controller +- Monitor +description: This article will take Apache APISIX Ingress Controller as an example to show you in detail how to quickly use different types of gateways and status monitoring for Kubernetes clusters through KubeSphere. +tags: [Technology] +--- + +> This article will take Apache APISIX Ingress Controller as an example to show you in detail how to quickly use different types of gateways and status monitoring for Kubernetes clusters through KubeSphere. + + + +In early November, KubeSphere released version 3.2.0, which added a full set of monitoring and management pages for project gateways, and introduced cluster gateways to provide global Ingress gateway capabilities at the cluster level. + +To help users better understand how to deploy and use third-party Ingress Controllers in the new version of KubeSphere, this article will use the [Apache APISIX Ingress Controller](https://apisix.apache.org/docs/ingress-controller/getting-started/) as an example to show you how to quickly use different types of gateways for Kubernetes clusters with KubeSphere and perform status monitoring. + +## Preparation + +### Installing KubeSphere + +There are two ways to install KubeSphere. + +1. Install directly on [Linux](https://kubesphere.com.cn/docs/quick-start/all-in-one-on-linux/) +2. Install on [existing Kubernetes](https://kubesphere.com.cn/docs/quick-start/minimal-kubesphere-on-k8s/) + +The monitoring module is already included in the minimal installation of KubeSphere, so there is no need to enable it additionally, and you can confirm the installation status via the Monitoring tab on the System Components page. + +![Confirm installation status](https://static.apiseven.com/202108/1638255471644-e1327ffc-dbed-4890-a15c-819f28731fc9.png) + +### Deploying the httpbin demo application + +Since we need to demonstrate the access control capabilities of the gateway, we must first have an accessible application as a backend service for the gateway. Here we use the [kennethreitz/httpbin](https://hub.docker.com/r/kennethreitz/httpbin/) container application provided by [httpbin.org](httpbin.org) as our demo application. + +In KubeSphere, we can either create a new project or use an existing one. After entering the project page, select "Services" under "Application Loads" to directly create a stateless workload and generate a companion service. + +![Create a Service](https://static.apiseven.com/202108/1638255616585-b0f5a674-f06a-4b18-baf9-8d6006abeead.png) + +Use the default port `80` of the [kennethreitz/httpbin](https://hub.docker.com/r/kennethreitz/httpbin/) container as the service port, and make sure you can see the corresponding entry for `httpbin` under both the Workloads and Services pages after creation, as shown in the following image. + +![Service](https://static.apiseven.com/202108/1638255786442-924bf704-9b9d-413f-9fc0-be6650a6ff4a.png) + +![Workload](https://static.apiseven.com/202108/1638255792974-7f354950-e34a-427a-9ff7-aa3af0a56dd6.png) + +### Additional Project Gateway Details + +The **Project Gateway** is a feature that has been live since KubeSphere 3.0. The Gateway in the KubeSphere Project is an NGINX Ingress controller. The mechanism built into KubeSphere for HTTP load balancing is called **Application Routing**, which defines the rules for connecting from the outside to the clustered service. To allow access to services from the outside, users can create routing resources to define URI paths, back-end service names, and other information. + +Following the `httpbin` service project deployed above, open the Gateway Settings page in Project Se
[GitHub] [apisix-website] bzp2010 merged pull request #781: docs: add APISIX Ingress in KubeSphere tech blog
bzp2010 merged pull request #781: URL: https://github.com/apache/apisix-website/pull/781 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-dashboard] codecov-commenter edited a comment on pull request #2224: fix: stream route testcase CI failed frequent
codecov-commenter edited a comment on pull request #2224: URL: https://github.com/apache/apisix-dashboard/pull/2224#issuecomment-979757962 # [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report > Merging [#2224](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (52cd353) into [master](https://codecov.io/gh/apache/apisix-dashboard/commit/b788ab37fdaae244a9415e9bc7b885668cbbf105?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (b788ab3) will **decrease** coverage by `20.82%`. > The diff coverage is `n/a`. [![Impacted file tree graph](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/graphs/tree.svg?width=650&height=150&src=pr&token=Q1HERXN96P&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) ```diff @@ Coverage Diff @@ ## master#2224 +/- ## === - Coverage 69.98% 49.16% -20.83% === Files 184 41 -143 Lines7257 3171 -4086 Branches 8240 -824 === - Hits 5079 1559 -3520 + Misses 1886 1412 -474 + Partials 292 200 -92 ``` | Flag | Coverage Δ | | |---|---|---| | backend-e2e-test | `?` | | | backend-e2e-test-ginkgo | `?` | | | backend-unit-test | `49.16% <ø> (ø)` | | | frontend-e2e-test | `?` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | | |---|---|---| | [api/main.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL21haW4uZ28=) | `0.00% <0.00%> (-100.00%)` | :arrow_down: | | [api/internal/utils/version.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL3V0aWxzL3ZlcnNpb24uZ28=) | `0.00% <0.00%> (-100.00%)` | :arrow_down: | | [api/internal/filter/request\_id.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2ZpbHRlci9yZXF1ZXN0X2lkLmdv) | `0.00% <0.00%> (-100.00%)` | :arrow_down: | | [api/internal/core/entity/entity.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2NvcmUvZW50aXR5L2VudGl0eS5nbw==) | `0.00% <0.00%> (-90.91%)` | :arrow_down: | | [api/internal/core/store/storehub.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2NvcmUvc3RvcmUvc3RvcmVodWIuZ28=) | `0.00% <0.00%> (-72.60%)` | :arrow_down: | | [api/internal/filter/cors.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2ZpbHRlci9jb3JzLmdv) | `0.00% <0.00%> (-70.00%)` | :arrow_down: | | [api/internal/handler/proto/proto.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2hhbmRsZXIvcHJvdG8vcHJvd
[GitHub] [apisix-dashboard] codecov-commenter edited a comment on pull request #2224: fix: stream route testcase CI failed frequent
codecov-commenter edited a comment on pull request #2224: URL: https://github.com/apache/apisix-dashboard/pull/2224#issuecomment-979757962 # [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report > Merging [#2224](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (ff388cd) into [master](https://codecov.io/gh/apache/apisix-dashboard/commit/b788ab37fdaae244a9415e9bc7b885668cbbf105?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (b788ab3) will **decrease** coverage by `20.82%`. > The diff coverage is `n/a`. [![Impacted file tree graph](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/graphs/tree.svg?width=650&height=150&src=pr&token=Q1HERXN96P&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) ```diff @@ Coverage Diff @@ ## master#2224 +/- ## === - Coverage 69.98% 49.16% -20.83% === Files 184 41 -143 Lines7257 3171 -4086 Branches 8240 -824 === - Hits 5079 1559 -3520 + Misses 1886 1412 -474 + Partials 292 200 -92 ``` | Flag | Coverage Δ | | |---|---|---| | backend-e2e-test | `?` | | | backend-e2e-test-ginkgo | `?` | | | backend-unit-test | `49.16% <ø> (ø)` | | | frontend-e2e-test | `?` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | | |---|---|---| | [api/main.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL21haW4uZ28=) | `0.00% <0.00%> (-100.00%)` | :arrow_down: | | [api/internal/utils/version.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL3V0aWxzL3ZlcnNpb24uZ28=) | `0.00% <0.00%> (-100.00%)` | :arrow_down: | | [api/internal/filter/request\_id.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2ZpbHRlci9yZXF1ZXN0X2lkLmdv) | `0.00% <0.00%> (-100.00%)` | :arrow_down: | | [api/internal/core/entity/entity.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2NvcmUvZW50aXR5L2VudGl0eS5nbw==) | `0.00% <0.00%> (-90.91%)` | :arrow_down: | | [api/internal/core/store/storehub.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2NvcmUvc3RvcmUvc3RvcmVodWIuZ28=) | `0.00% <0.00%> (-72.60%)` | :arrow_down: | | [api/internal/filter/cors.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2ZpbHRlci9jb3JzLmdv) | `0.00% <0.00%> (-70.00%)` | :arrow_down: | | [api/internal/handler/proto/proto.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2hhbmRsZXIvcHJvdG8vcHJvd
[GitHub] [apisix-dashboard] codecov-commenter edited a comment on pull request #2224: fix: stream route testcase CI failed frequent
codecov-commenter edited a comment on pull request #2224: URL: https://github.com/apache/apisix-dashboard/pull/2224#issuecomment-979757962 # [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report > Merging [#2224](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (ff388cd) into [master](https://codecov.io/gh/apache/apisix-dashboard/commit/b788ab37fdaae244a9415e9bc7b885668cbbf105?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (b788ab3) will **decrease** coverage by `7.45%`. > The diff coverage is `n/a`. [![Impacted file tree graph](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/graphs/tree.svg?width=650&height=150&src=pr&token=Q1HERXN96P&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) ```diff @@Coverage Diff @@ ## master#2224 +/- ## == - Coverage 69.98% 62.53% -7.46% == Files 184 57 -127 Lines7257 3905-3352 Branches 8240 -824 == - Hits 5079 2442-2637 + Misses 1886 1181 -705 + Partials 292 282 -10 ``` | Flag | Coverage Δ | | |---|---|---| | backend-e2e-test | `44.35% <ø> (+0.20%)` | :arrow_up: | | backend-e2e-test-ginkgo | `?` | | | backend-unit-test | `49.16% <ø> (ø)` | | | frontend-e2e-test | `?` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | | |---|---|---| | [api/internal/core/migrate/conflict.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2NvcmUvbWlncmF0ZS9jb25mbGljdC5nbw==) | `0.00% <0.00%> (-80.00%)` | :arrow_down: | | [api/internal/core/migrate/migrate.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2NvcmUvbWlncmF0ZS9taWdyYXRlLmdv) | `0.00% <0.00%> (-76.20%)` | :arrow_down: | | [api/internal/core/migrate/dataset.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2NvcmUvbWlncmF0ZS9kYXRhc2V0Lmdv) | `0.00% <0.00%> (-53.04%)` | :arrow_down: | | [api/internal/handler/migrate/migrate.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2hhbmRsZXIvbWlncmF0ZS9taWdyYXRlLmdv) | `8.06% <0.00%> (-51.62%)` | :arrow_down: | | [api/internal/handler/proto/proto.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2hhbmRsZXIvcHJvdG8vcHJvdG8uZ28=) | `23.00% <0.00%> (-44.25%)` | :arrow_down: | | [api/internal/handler/healthz/healthz.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2hhbmRsZXIvaGVhbHRoei9oZWFsdGh6Lmdv) | `66.66% <0.00%> (-33.34%)` | :arrow_down: | | [api/internal/handler/stream\_route/stream\_route.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referra
[GitHub] [apisix-ingress-controller] gxthrj commented on issue #778: request help: 新增namespace 然后删除,会一直报not found
gxthrj commented on issue #778: URL: https://github.com/apache/apisix-ingress-controller/issues/778#issuecomment-982748173 There is an issue about this #741, suggest checking bugfix #742 for help. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-dashboard] codecov-commenter edited a comment on pull request #2224: fix: stream route testcase CI failed frequent
codecov-commenter edited a comment on pull request #2224: URL: https://github.com/apache/apisix-dashboard/pull/2224#issuecomment-979757962 # [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report > Merging [#2224](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (ed80d0c) into [master](https://codecov.io/gh/apache/apisix-dashboard/commit/b788ab37fdaae244a9415e9bc7b885668cbbf105?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (b788ab3) will **decrease** coverage by `5.91%`. > The diff coverage is `100.00%`. > :exclamation: Current head ed80d0c differs from pull request most recent head cdc47d6. Consider uploading reports for the commit cdc47d6 to get more accurate results [![Impacted file tree graph](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/graphs/tree.svg?width=650&height=150&src=pr&token=Q1HERXN96P&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) ```diff @@Coverage Diff @@ ## master#2224 +/- ## == - Coverage 69.98% 64.07% -5.92% == Files 184 57 -127 Lines7257 3905-3352 Branches 8240 -824 == - Hits 5079 2502-2577 + Misses 1886 1045 -841 - Partials 292 358 +66 ``` | Flag | Coverage Δ | | |---|---|---| | backend-e2e-test | `44.53% <100.00%> (+0.38%)` | :arrow_up: | | backend-e2e-test-ginkgo | `51.70% <100.00%> (-0.31%)` | :arrow_down: | | backend-unit-test | `?` | | | frontend-e2e-test | `?` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | | |---|---|---| | [api/internal/core/store/storehub.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2NvcmUvc3RvcmUvc3RvcmVodWIuZ28=) | `72.59% <100.00%> (ø)` | | | [api/internal/utils/runtime/runtime.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL3V0aWxzL3J1bnRpbWUvcnVudGltZS5nbw==) | `5.55% <0.00%> (-61.12%)` | :arrow_down: | | [api/internal/core/store/validate\_mock.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2NvcmUvc3RvcmUvdmFsaWRhdGVfbW9jay5nbw==) | `0.00% <0.00%> (-60.00%)` | :arrow_down: | | [api/internal/filter/authentication.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2ZpbHRlci9hdXRoZW50aWNhdGlvbi5nbw==) | `50.00% <0.00%> (-28.95%)` | :arrow_down: | | [api/internal/core/store/store.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2NvcmUvc3RvcmUvc3RvcmUuZ28=) | `65.62% <0.00%> (-25.00%)` | :arrow_down: | | [api/internal/handler/service/service.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2hhbmRsZXIvc2VydmljZS9zZXJ2aWNlLmdv) | `68
[GitHub] [apisix-dashboard] codecov-commenter edited a comment on pull request #2224: fix: stream route testcase CI failed frequent
codecov-commenter edited a comment on pull request #2224: URL: https://github.com/apache/apisix-dashboard/pull/2224#issuecomment-979757962 # [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report > Merging [#2224](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (bb26f07) into [master](https://codecov.io/gh/apache/apisix-dashboard/commit/b788ab37fdaae244a9415e9bc7b885668cbbf105?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (b788ab3) will **increase** coverage by `1.25%`. > The diff coverage is `100.00%`. > :exclamation: Current head bb26f07 differs from pull request most recent head 96ed3ca. Consider uploading reports for the commit 96ed3ca to get more accurate results [![Impacted file tree graph](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/graphs/tree.svg?width=650&height=150&src=pr&token=Q1HERXN96P&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) ```diff @@Coverage Diff @@ ## master#2224 +/- ## == + Coverage 69.98% 71.24% +1.25% == Files 184 57 -127 Lines7257 3905-3352 Branches 8240 -824 == - Hits 5079 2782-2297 + Misses 1886 828-1058 - Partials 292 295 +3 ``` | Flag | Coverage Δ | | |---|---|---| | backend-e2e-test | `44.30% <100.00%> (+0.15%)` | :arrow_up: | | backend-e2e-test-ginkgo | `51.60% <100.00%> (-0.41%)` | :arrow_down: | | backend-unit-test | `49.13% <0.00%> (-0.04%)` | :arrow_down: | | frontend-e2e-test | `?` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/apache/apisix-dashboard/pull/2224?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | | |---|---|---| | [api/internal/core/store/storehub.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2NvcmUvc3RvcmUvc3RvcmVodWIuZ28=) | `72.59% <100.00%> (ø)` | | | [api/internal/handler/upstream/upstream.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2hhbmRsZXIvdXBzdHJlYW0vdXBzdHJlYW0uZ28=) | `86.58% <0.00%> (-4.27%)` | :arrow_down: | | [api/internal/core/storage/etcd.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2NvcmUvc3RvcmFnZS9ldGNkLmdv) | `47.24% <0.00%> (-3.94%)` | :arrow_down: | | [api/internal/core/store/store.go](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YXBpL2ludGVybmFsL2NvcmUvc3RvcmUvc3RvcmUuZ28=) | `90.10% <0.00%> (-0.53%)` | :arrow_down: | | [web/src/components/PluginFlow/PluginFlow.tsx](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-d2ViL3NyYy9jb21wb25lbnRzL1BsdWdpbkZsb3cvUGx1Z2luRmxvdy50c3g=) | | | | [web/src/pages/Route/components/Step3/index.tsx](https://codecov.io/gh/apache/apisix-dashboard/pull/2224/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-d2ViL3NyYy9wYWdlcy9Sb3V0ZS9jb21wb25lbnRzL1N0ZXAzL2luZGV4
[GitHub] [apisix-dashboard] bzp2010 commented on pull request #2224: fix: stream route testcase CI failed frequent
bzp2010 commented on pull request #2224: URL: https://github.com/apache/apisix-dashboard/pull/2224#issuecomment-982804470 ## Update The current attempt will minimize random failures in TCP/UDP tests, but there will still be the possibility of errors in UDP tests. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-dashboard] bzp2010 commented on issue #2219: Add sub_path support when dashboard under a subdirectory via nginx reverse proxy.
bzp2010 commented on issue #2219: URL: https://github.com/apache/apisix-dashboard/issues/2219#issuecomment-982823101 Hi, @ltt1987. I think the problem is that the compilation product of our dashboard project currently uses absolute paths to load resources, so you need to recompile if you want to proxy dashboard in a subdirectory. These are not directly supported by either the Manager API or the `proxy-rewrite` plugin in APISIX. Of course, we can take some measures to improve it, if you are willing to try. Here are the configures about it. [https://github.com/apache/apisix-dashboard/blob/d7b772235f1a13660541e6f52c4844a3bb7929f6/web/config/config.ts#L48-L49](https://github.com/apache/apisix-dashboard/blob/d7b772235f1a13660541e6f52c4844a3bb7929f6/web/config/config.ts#L48-L49) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[apisix-website] branch master updated: chore(deps): bump actions/setup-node from 2.4.1 to 2.5.0 (#780)
This is an automated email from the ASF dual-hosted git repository. bzp2010 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/apisix-website.git The following commit(s) were added to refs/heads/master by this push: new 6158089 chore(deps): bump actions/setup-node from 2.4.1 to 2.5.0 (#780) 6158089 is described below commit 61580893e3240c94b29e5f800fbcd3803648527b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> AuthorDate: Wed Dec 1 00:53:06 2021 +0800 chore(deps): bump actions/setup-node from 2.4.1 to 2.5.0 (#780) Signed-off-by: dependabot[bot] --- .github/workflows/deploy.yml | 2 +- .github/workflows/link-check.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/preview.yml| 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d25eb49..63646e3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -24,7 +24,7 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2.4.0 - - uses: actions/setup-node@v2.4.1 + - uses: actions/setup-node@v2.5.0 with: node-version: "14" diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml index 064baca..3541b5c 100644 --- a/.github/workflows/link-check.yml +++ b/.github/workflows/link-check.yml @@ -24,7 +24,7 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2.4.0 - - uses: actions/setup-node@v2.4.1 + - uses: actions/setup-node@v2.5.0 with: node-version: "12" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 612ddbd..bb2a83c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,7 +9,7 @@ jobs: steps: - uses: actions/checkout@v2.4.0 - name: 🚀 Use Node.js -uses: actions/setup-node@v2.4.1 +uses: actions/setup-node@v2.5.0 with: node-version: '12.x' - run: npm install -g markdownlint-cli@0.25.0 diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index bd0ee04..6401bd0 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v2.4.0 - name: Setup Node.js environment -uses: actions/setup-node@v2.4.1 +uses: actions/setup-node@v2.5.0 with: node-version: 14.x
[GitHub] [apisix-website] bzp2010 merged pull request #780: chore(deps): bump actions/setup-node from 2.4.1 to 2.5.0
bzp2010 merged pull request #780: URL: https://github.com/apache/apisix-website/pull/780 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[apisix-website] branch master updated: chore(deps): bump actions/setup-python from 2.2.2 to 2.3.1 (#779)
This is an automated email from the ASF dual-hosted git repository. bzp2010 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/apisix-website.git The following commit(s) were added to refs/heads/master by this push: new 370849c chore(deps): bump actions/setup-python from 2.2.2 to 2.3.1 (#779) 370849c is described below commit 370849c68554a7e19fe030e226d41aad29704246 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> AuthorDate: Wed Dec 1 00:53:25 2021 +0800 chore(deps): bump actions/setup-python from 2.2.2 to 2.3.1 (#779) Signed-off-by: dependabot[bot] --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index bb2a83c..4d63ea4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2.4.0 - - uses: actions/setup-python@v2.2.2 + - uses: actions/setup-python@v2.3.1 with: python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
[GitHub] [apisix-website] bzp2010 merged pull request #779: chore(deps): bump actions/setup-python from 2.2.2 to 2.3.1
bzp2010 merged pull request #779: URL: https://github.com/apache/apisix-website/pull/779 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] yuz10 opened a new pull request #5653: feat: rocketmq logger
yuz10 opened a new pull request #5653: URL: https://github.com/apache/apisix/pull/5653 ### What this PR does / why we need it: feature: add rocketmq-logger plugin which send log to rocketmq. ### Pre-submission checklist: - [x] Did you explain what problem does this PR solve? Or what new features have been added? - [x] Have you added corresponding test cases? - [x] Have you modified the corresponding document? - [x] Is this PR backward compatible? **If it is not backward compatible, please discuss on the [mailing list](https://github.com/apache/apisix/tree/master#community) first** -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] hozaifaaoud opened a new issue #5654: bug: URI encoding issue
hozaifaaoud opened a new issue #5654: URL: https://github.com/apache/apisix/issues/5654 ### Issue description I created a route /api/v1/groups/* and made a URI Override Regexp: \/api(\/v1\/groups\/.*) now, I am trying this url 127.0.0.1:9080/api/v1/groups/ and facing this issue HTTP Status 400 – Bad Request submitted request https://mydomain.com/api/v1/groups/%3CNumber%3E forwarded request 127.0.0.1:9080/api/v1/groups/ ### Environment - apisix version (cmd: `apisix version`): 2.5 - OS (cmd: `uname -a`): 60-Ubuntu SMP - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): openresty/1.19.9.1 - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API): "3.4.0" - apisix-dashboard version, if have: - the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner): - luarocks version, if the issue is about installation (cmd: `luarocks --version`): 3.4.0 ### Steps to reproduce // ### Actual result HTTP Status 400 – Bad Request ### Error log // ### Expected result _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] spacewander merged pull request #5644: chore(deps): bump actions/setup-node from 2.4.1 to 2.5.0
spacewander merged pull request #5644: URL: https://github.com/apache/apisix/pull/5644 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] spacewander merged pull request #5646: fix: google cloud logging plugin file config error
spacewander merged pull request #5646: URL: https://github.com/apache/apisix/pull/5646 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[apisix] branch master updated (150c29d -> df0d7ad)
This is an automated email from the ASF dual-hosted git repository. spacewander pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/apisix.git. from 150c29d feat: report error when use etcd client cert auth (#5640) add df0d7ad chore(deps): bump actions/setup-node from 2.4.1 to 2.5.0 (#5644) No new revisions were added by this update. Summary of changes: .github/workflows/doc-lint.yml | 2 +- .github/workflows/lint.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
[apisix] branch master updated: fix: google cloud logging plugin file config error (#5646)
This is an automated email from the ASF dual-hosted git repository. spacewander pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/apisix.git The following commit(s) were added to refs/heads/master by this push: new 019eca7 fix: google cloud logging plugin file config error (#5646) 019eca7 is described below commit 019eca71b31de632541d9f1fe41666f9531d394b Author: 帅进超 AuthorDate: Wed Dec 1 08:52:42 2021 +0800 fix: google cloud logging plugin file config error (#5646) --- apisix/plugins/google-cloud-logging.lua | 4 +- t/plugin/google-cloud-logging.t | 96 +++ t/plugin/google-cloud-logging/config.json | 9 +++ 3 files changed, 107 insertions(+), 2 deletions(-) diff --git a/apisix/plugins/google-cloud-logging.lua b/apisix/plugins/google-cloud-logging.lua index f007e9b..961762d 100644 --- a/apisix/plugins/google-cloud-logging.lua +++ b/apisix/plugins/google-cloud-logging.lua @@ -187,7 +187,7 @@ local function get_auth_config(config) local file_content, err = core.io.get_file(config.auth_file) if not file_content then -return nil, "failed to read configuration, file: " .. config.auth_file .. " err:" .. err +return nil, "failed to read configuration, file: " .. config.auth_file .. " err: " .. err end local config_data @@ -196,7 +196,7 @@ local function get_auth_config(config) return nil, "config parse failure, data: " .. file_content .. " , err: " .. err end -auth_config_cache = config.auth_config +auth_config_cache = config_data return auth_config_cache end diff --git a/t/plugin/google-cloud-logging.t b/t/plugin/google-cloud-logging.t index 1b8a893..202e28c 100644 --- a/t/plugin/google-cloud-logging.t +++ b/t/plugin/google-cloud-logging.t @@ -509,3 +509,99 @@ qr/\{\"error\"\:\"[\w+\s+]*\"\}/ --- error_log Batch Processor[google-cloud-logging] failed to process entries Batch Processor[google-cloud-logging] exceeded the max_retry_count + + + +=== TEST 16: set route (file configuration is successful) +--- config +location /t { +content_by_lua_block { + +local config = { +uri = "/hello", +upstream = { +type = "roundrobin", +nodes = { +["127.0.0.1:1980"] = 1 +} +}, +plugins = { +["google-cloud-logging"] = { +auth_file = "t/plugin/google-cloud-logging/config.json", +inactive_timeout = 1, +batch_max_size = 1, +} +} +} +local t = require("lib.test_admin").test +local code, body = t('/apisix/admin/routes/1', ngx.HTTP_PUT, config) + +if code >= 300 then +ngx.status = code +ngx.say(body) +return +end + +ngx.say(body) +} +} +--- response_body +passed + + + +=== TEST 17: test route(file configuration is successful) +--- request +GET /hello +--- wait: 2 +--- response_body +hello world + + + +=== TEST 18: set route (file configuration is failed) +--- config +location /t { +content_by_lua_block { + +local config = { +uri = "/hello", +upstream = { +type = "roundrobin", +nodes = { +["127.0.0.1:1980"] = 1 +} +}, +plugins = { +["google-cloud-logging"] = { +auth_file = "google-cloud-logging/config.json", +inactive_timeout = 1, +batch_max_size = 1, +} +} +} +local t = require("lib.test_admin").test +local code, body = t('/apisix/admin/routes/1', ngx.HTTP_PUT, config) + +if code >= 300 then +ngx.status = code +ngx.say(body) +return +end + +ngx.say(body) +} +} +--- response_body +passed + + + +=== TEST 19: test route(file configuration is failed) +--- request +GET /hello +--- wait: 2 +--- response_body +hello world +--- error_log +config.json: No such file or directory diff --git a/t/plugin/google-cloud-logging/config.json b/t/plugin/google-cloud-logging/config.json new file mode 100644 index 000..015dab2 --- /dev/null +++ b/t/plugin/google-cloud-logging/config.json @@ -0,0 +1,9 @@ +{ + "private_key": "-BEGIN RSA PRIVATE KEY-\nMIIBOgIBAAJBAKebDxlvQMGyEesAL1r1nIJBkSdqu3Hr7noq/0ukiZqVQLSJPMOv\n0oxQSutvvK3hoibwGakDOza+xRITB7cs2cECAwEAAQJAYPWh6YvjwWobVYC45Hz7\n+pqlt1DWeVQMlN407HSWKjdH548ady46xiQuZ5Cfx3YyCcnsfVWaQNbC+jFbY4YL\nwQIhANfASwz8+2sKg1xtvzyaChX5S5XaQTB+azFImBJumixZAiEAxt93Td6JH1RF\nIeQmD/K+DClZMqSr
[GitHub] [apisix-dashboard] juzhiyuan commented on issue #2219: Add sub_path support when dashboard under a subdirectory via nginx reverse proxy.
juzhiyuan commented on issue #2219: URL: https://github.com/apache/apisix-dashboard/issues/2219#issuecomment-983177783 see https://pro.ant.design/zh-CN/config/config#publicpath -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] spacewander commented on a change in pull request #5653: feat: rocketmq logger
spacewander commented on a change in pull request #5653: URL: https://github.com/apache/apisix/pull/5653#discussion_r759777287 ## File path: docs/en/latest/plugins/rocketmq-logger.md ## @@ -0,0 +1,237 @@ +--- +title: rocketmq-logger +--- + + + +## Summary + +- [**Name**](#name) +- [**Attributes**](#attributes) +- [**Info**](#info) +- [**How To Enable**](#how-to-enable) +- [**Test Plugin**](#test-plugin) +- [**Disable Plugin**](#disable-plugin) + +## Name + +`rocketmq-logger` is a plugin which works as a rocketmq client driver for the ngx_lua nginx module. Review comment: ```suggestion `rocketmq-logger` is a plugin which provides the ability to push requests log data as JSON objects to your external rocketmq clusters. ``` We can merge the sentence of the next phase into it. ## File path: docs/zh/latest/plugins/rocketmq-logger.md ## @@ -0,0 +1,232 @@ +--- +title: rocketmq-logger +--- + + + +## 目录 + +- [**简介**](#简介) +- [**属性**](#属性) +- [**工作原理**](#工作原理) +- [**如何启用**](#如何启用) +- [**测试插件**](#测试插件) +- [**禁用插件**](#禁用插件) + +## 简介 + +`rocketmq-logger` 是一个插件,可用作ngx_lua nginx 模块的 rocketmq 客户端驱动程序。 Review comment: Ditto -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] starsz commented on issue #5634: request help: support get the key from function in limit-* plugins
starsz commented on issue #5634: URL: https://github.com/apache/apisix/issues/5634#issuecomment-983195099 > We can register the variable with a custom function, like: > > ``` > core.ctx.register_var("my_consumer", function (...) > end) > ``` Oh, that's good. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] tokers commented on issue #5650: request help: etcd tls connect handshake failed
tokers commented on issue #5650: URL: https://github.com/apache/apisix/issues/5650#issuecomment-983196264 @deepzz0 Configure the SNI setting in etcd section. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] starsz edited a comment on issue #5634: request help: support get the key from function in limit-* plugins
starsz edited a comment on issue #5634: URL: https://github.com/apache/apisix/issues/5634#issuecomment-983195099 > We can register the variable with a custom function, like: > > ``` > core.ctx.register_var("my_consumer", function (...) > end) > ``` Oh, that's good. Wait for the new feature. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on a change in pull request #779: feat: support regex in path
tokers commented on a change in pull request #779: URL: https://github.com/apache/apisix-ingress-controller/pull/779#discussion_r759791796 ## File path: pkg/kube/translation/ingress.go ## @@ -87,29 +90,52 @@ func (t *translator) translateIngressV1(ing *networkingv1.Ingress) (*TranslateCo ctx.addUpstream(ups) } uris := []string{pathRule.Path} - if pathRule.PathType != nil && *pathRule.PathType == networkingv1.PathTypePrefix { - // As per the specification of Ingress path matching rule: - // if the last element of the path is a substring of the - // last element in request path, it is not a match, e.g. /foo/bar - // matches /foo/bar/baz, but does not match /foo/barbaz. - // While in APISIX, /foo/bar matches both /foo/bar/baz and - // /foo/barbaz. - // In order to be conformant with Ingress specification, here - // we create two paths here, the first is the path itself - // (exact match), the other is path + "/*" (prefix match). - prefix := pathRule.Path - if strings.HasSuffix(prefix, "/") { - prefix += "*" - } else { - prefix += "/*" + var nginxVars []configv2alpha1.ApisixRouteHTTPMatchExpr + if pathRule.PathType != nil { + if *pathRule.PathType == networkingv1.PathTypePrefix { + // As per the specification of Ingress path matching rule: + // if the last element of the path is a substring of the + // last element in request path, it is not a match, e.g. /foo/bar + // matches /foo/bar/baz, but does not match /foo/barbaz. + // While in APISIX, /foo/bar matches both /foo/bar/baz and + // /foo/barbaz. + // In order to be conformant with Ingress specification, here + // we create two paths here, the first is the path itself + // (exact match), the other is path + "/*" (prefix match). + prefix := pathRule.Path + if strings.HasSuffix(prefix, "/") { + prefix += "*" + } else { + prefix += "/*" + } + uris = append(uris, prefix) + } else if *pathRule.PathType == networkingv1.PathTypeExact { + uris = append(uris, pathRule.Path) + } else if *pathRule.PathType == networkingv1.PathTypeImplementationSpecific && useRegex { + nginxVars = append(nginxVars, configv2alpha1.ApisixRouteHTTPMatchExpr{ + Subject: configv2alpha1.ApisixRouteHTTPMatchExprSubject{ + Scope: configv2alpha1.ScopePath, + }, + Op: configv2alpha1.OpRegexMatch, + Set: []string{}, Review comment: We don't initialize this field. ## File path: pkg/kube/translation/ingress.go ## @@ -266,29 +319,52 @@ func (t *translator) translateIngressExtensionsV1beta1(ing *extensionsv1beta1.In ctx.addUpstream(ups) } uris := []string{pathRule.Path} - if pathRule.PathType != nil && *pathRule.PathType == extensionsv1beta1.PathTypePrefix { - // As per the specification of Ingress path matching rule: - // if the last element of the path is a substring of the - // last element in request path, it is not a match, e.g. /foo/bar - // matches /foo/bar/baz, but does not match /foo/barbaz. - // While in APISIX, /foo/bar matches both /foo/bar/baz and - // /foo/barbaz. - // In order to be conformant with Ingress specificati
[apisix] branch master updated: docs: minor update in azure faas http2 documentation (#5641)
This is an automated email from the ASF dual-hosted git repository. spacewander pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/apisix.git The following commit(s) were added to refs/heads/master by this push: new b4921c3 docs: minor update in azure faas http2 documentation (#5641) b4921c3 is described below commit b4921c3a1919a7722b54393ed7c7e81825ca9d2c Author: Bisakh AuthorDate: Wed Dec 1 07:19:30 2021 +0530 docs: minor update in azure faas http2 documentation (#5641) --- docs/en/latest/plugins/azure-functions.md | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/en/latest/plugins/azure-functions.md b/docs/en/latest/plugins/azure-functions.md index a999a50..1f9bdd7 100644 --- a/docs/en/latest/plugins/azure-functions.md +++ b/docs/en/latest/plugins/azure-functions.md @@ -74,7 +74,7 @@ $ curl http://127.0.0.1:9080/apisix/admin/plugin_metadata/azure-functions -H 'X- ## How To Enable -The following is an example of how to enable the azure-function faas plugin for a specific route URI. We are assuming your cloud function is already up and running. +The following is an example of how to enable the azure-function faas plugin for a specific APISIX route URI. We are assuming your cloud function is already up and running. ```shell # enable azure function for a route @@ -95,7 +95,7 @@ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f13 Now any requests (HTTP/1.1, HTTPS, HTTP2) to URI `/azure` will trigger an HTTP invocation to the aforesaid function URI and response body along with the response headers and response code will be proxied back to the client. For example ( here azure cloud function just take the `name` query param and returns `Hello $name` ) : ```shell -$ curl -i -XGET http://localhost:9080/azure\?name=apisix +$ curl -i -XGET http://localhost:9080/azure\?name=APISIX HTTP/1.1 200 OK Content-Type: text/plain; charset=utf-8 Transfer-Encoding: chunked @@ -104,20 +104,20 @@ Request-Context: appId=cid-v1:38aae829-293b-43c2-82c6-fa94aec0a071 Date: Wed, 17 Nov 2021 14:46:55 GMT Server: APISIX/2.10.2 -Hello, apisix +Hello, APISIX ``` -For requests where the mode of communication between the client and the Apache APISIX gateway is HTTP/2, the example looks like ( make sure you are running APISIX agent with `enable_http2: true` for a port in conf.yaml or uncomment port 9081 of `node_listen` field inside [config-default.yaml](../../../../conf/config-default.yaml) ) : +For requests where the mode of communication between the client and the Apache APISIX gateway is HTTP/2, the example looks like ( make sure you are running APISIX agent with `enable_http2: true` for a port in `config-default.yaml`. You can do it by uncommenting the port 9081 from `apisix.node_listen` field ) : ```shell -$ curl -i -XGET --http2 --http2-prior-knowledge http://localhost:9081/azure\?name=apisix +$ curl -i -XGET --http2 --http2-prior-knowledge http://localhost:9081/azure\?name=APISIX HTTP/2 200 content-type: text/plain; charset=utf-8 request-context: appId=cid-v1:38aae829-293b-43c2-82c6-fa94aec0a071 date: Wed, 17 Nov 2021 14:54:07 GMT server: APISIX/2.10.2 -Hello, apisix +Hello, APISIX ``` ## Disable Plugin
[GitHub] [apisix] spacewander merged pull request #5641: docs: minor update in azure faas http2 documentation
spacewander merged pull request #5641: URL: https://github.com/apache/apisix/pull/5641 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-website] huang-x-h opened a new issue #782: Prometheus doc 'Grafana dashboard meta ' file link is broken
huang-x-h opened a new issue #782: URL: https://github.com/apache/apisix-website/issues/782 **Actual Behaviour** `prometheus` plugin doc click `Grafana dashboard 元数据 ` is broken **Expected Behaviour** https://cdn.jsdelivr.net/gh/apache/apisix@release/2.11/docs/assets/other/json/apisix-grafana-dashboard.json **Steps to reproduce it** in `en` doc click `Grafana dashboard meta', the link is https://github.com/apache/apisix/blob/master/docs/assets/other/json/apisix-grafana-dashboard.json in `zh` doc click `Grafana dashboard 元数据 `, the link is https://apisix.apache.org/zh/assets/other/json/apisix-grafana-dashboard.json **Screenshots of the issue** ![1638323020(1)](https://user-images.githubusercontent.com/381860/144156535-363f4842-1051-42d1-9401-4b307dc4881b.png) **Would you like to work on the issue?** yes, are the website assets files use the `jsdelivr` ? i can't find how to change the url in markdown files. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-dashboard] zaunist commented on issue #2196: can not open consumer with numbers as name
zaunist commented on issue #2196: URL: https://github.com/apache/apisix-dashboard/issues/2196#issuecomment-983206977 Hi, @hozaifaaoud, I checked this situation and reproduce this issue. It's occurred because APISIX support consumer name start with number, but APISIX-Dashboard does't support. Does the APISIX-Dashboard need to support consumer that start with number ? @juzhiyuan @nic-chen @starsz Any suggestions? ![image](https://user-images.githubusercontent.com/38528079/144156333-85fb38a3-8d05-4d42-a3e6-8950898155f1.png) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] ybbtuubj commented on issue #5648: limit-count plugin does not work in redis mode?
ybbtuubj commented on issue #5648: URL: https://github.com/apache/apisix/issues/5648#issuecomment-983208082 嗯,我那个问题早上测了下是我自己的问题,我用容器创建的redis,是容器网络配置的问题。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[apisix-dashboard] branch master updated: fix: stream route testcase CI failed frequent (#2224)
This is an automated email from the ASF dual-hosted git repository. bzp2010 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git The following commit(s) were added to refs/heads/master by this push: new 8520323 fix: stream route testcase CI failed frequent (#2224) 8520323 is described below commit 852032313307c8647a2c120b36f4ed482f3698dd Author: Zeping Bai AuthorDate: Wed Dec 1 09:57:56 2021 +0800 fix: stream route testcase CI failed frequent (#2224) --- api/test/docker/docker-compose.yaml| 10 -- api/test/docker/upstream.conf | 20 ++- api/test/e2enew/base/base.go | 1 - .../e2enew/stream_route/stream_route_suite_test.go | 2 +- api/test/e2enew/stream_route/stream_route_test.go | 148 + 5 files changed, 81 insertions(+), 100 deletions(-) diff --git a/api/test/docker/docker-compose.yaml b/api/test/docker/docker-compose.yaml index 7473e69..0d1b773 100644 --- a/api/test/docker/docker-compose.yaml +++ b/api/test/docker/docker-compose.yaml @@ -107,16 +107,6 @@ services: apisix_dashboard_e2e: ipv4_address: 172.16.238.21 - upstream_echo: -image: n0r1skcom/echo -restart: always -ports: - - ':/tcp' - - ':/udp' -networks: - apisix_dashboard_e2e: -ipv4_address: 172.16.238.22 - apisix: hostname: apisix_server1 image: apache/apisix:2.10.2-alpine diff --git a/api/test/docker/upstream.conf b/api/test/docker/upstream.conf index db0518a..97e01c5 100644 --- a/api/test/docker/upstream.conf +++ b/api/test/docker/upstream.conf @@ -85,9 +85,14 @@ stream { listen 1991; content_by_lua_block { -local sock = ngx.req.socket() -local data = sock:receive() -sock:send(data) +local sock = ngx.req.socket(true) +while true do +local data = sock:receive(5) +if data then +sock:send("hello " .. data) +break +end +end } } @@ -96,8 +101,13 @@ stream { content_by_lua_block { local sock = ngx.req.socket() -local data = sock:receive() -sock:send(data) +while true do +local data = sock:receive(5) +if data then +sock:send("hello " .. data) +break +end +end } } } diff --git a/api/test/e2enew/base/base.go b/api/test/e2enew/base/base.go index 88d719b..2879696 100644 --- a/api/test/e2enew/base/base.go +++ b/api/test/e2enew/base/base.go @@ -39,7 +39,6 @@ var ( UpstreamIp = "172.16.238.20" UpstreamGrpcIp = "172.16.238.21" - UpstreamEchoIp = "172.16.238.22" APISIXHost = "http://127.0.0.1:9080"; APISIXInternalUrl = "http://172.16.238.30:9080"; APISIXSingleWorkerHost = "http://127.0.0.1:9081"; diff --git a/api/test/e2enew/stream_route/stream_route_suite_test.go b/api/test/e2enew/stream_route/stream_route_suite_test.go index 17656a9..5c752c4 100644 --- a/api/test/e2enew/stream_route/stream_route_suite_test.go +++ b/api/test/e2enew/stream_route/stream_route_suite_test.go @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package stream_route +package stream_route_test import ( "testing" diff --git a/api/test/e2enew/stream_route/stream_route_test.go b/api/test/e2enew/stream_route/stream_route_test.go index c98e9f6..62f8c52 100644 --- a/api/test/e2enew/stream_route/stream_route_test.go +++ b/api/test/e2enew/stream_route/stream_route_test.go @@ -14,28 +14,29 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package stream_route +package stream_route_test import ( "encoding/json" - "io" "io/ioutil" "net" "net/http" + "time" - "github.com/onsi/ginkgo" - "github.com/onsi/ginkgo/extensions/table" - "github.com/onsi/gomega" + . "github.com/onsi/ginkgo" + . "github.com/onsi/ginkgo/extensions/table" + . "github.com/onsi/gomega" "github.com/apisix/manager-api/test/e2enew/base" ) -var _ = ginkgo.Describe("Stream Route", func() { - table.DescribeTable("test stream route data CURD", +var _ = Describe("Stream Route", func() { + DescribeTable("test stream route data CURD", func(tc base.HttpTestCase) { base.RunTestCase(tc) }, - table.Entry("create stream route", base.HttpTestCase{ + // base case + Entry("create stream route", base.HttpTestCase{ Object: base.ManagerApiExpect(),
[GitHub] [apisix-dashboard] bzp2010 merged pull request #2224: fix: stream route testcase CI failed frequent
bzp2010 merged pull request #2224: URL: https://github.com/apache/apisix-dashboard/pull/2224 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] tzssangglass commented on issue #5650: request help: etcd tls connect handshake failed
tzssangglass commented on issue #5650: URL: https://github.com/apache/apisix/issues/5650#issuecomment-983222695 e.g.: https://github.com/apache/apisix/blob/b4921c3a1919a7722b54393ed7c7e81825ca9d2c/t/cli/test_etcd_mtls.sh#L164-L172 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] tzssangglass commented on issue #5654: bug: URI encoding issue
tzssangglass commented on issue #5654: URL: https://github.com/apache/apisix/issues/5654#issuecomment-983223900 pls show the config of route -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[apisix] branch master updated: feat(plugins): aws lambda serverless (#5594)
This is an automated email from the ASF dual-hosted git repository. spacewander pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/apisix.git The following commit(s) were added to refs/heads/master by this push: new e90e3b7 feat(plugins): aws lambda serverless (#5594) e90e3b7 is described below commit e90e3b7aa1d178b3ac740ebf6fcf887ff951 Author: Bisakh AuthorDate: Wed Dec 1 08:09:45 2021 +0530 feat(plugins): aws lambda serverless (#5594) --- apisix/plugins/aws-lambda.lua| 183 + conf/config-default.yaml | 1 + docs/en/latest/config.json | 3 +- docs/en/latest/plugins/aws-lambda.md | 156 ++ t/admin/plugins.t| 1 + t/plugin/aws-lambda.t| 299 +++ 6 files changed, 642 insertions(+), 1 deletion(-) diff --git a/apisix/plugins/aws-lambda.lua b/apisix/plugins/aws-lambda.lua new file mode 100644 index 000..fe4d7f3 --- /dev/null +++ b/apisix/plugins/aws-lambda.lua @@ -0,0 +1,183 @@ +-- +-- Licensed to the Apache Software Foundation (ASF) under one or more +-- contributor license agreements. See the NOTICE file distributed with +-- this work for additional information regarding copyright ownership. +-- The ASF licenses this file to You under the Apache License, Version 2.0 +-- (the "License"); you may not use this file except in compliance with +-- the License. You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. + +local ngx = ngx +local hmac = require("resty.hmac") +local hex_encode = require("resty.string").to_hex +local resty_sha256 = require("resty.sha256") +local str_strip = require("pl.stringx").strip +local norm_path = require("pl.path").normpath +local pairs = pairs +local tab_concat = table.concat +local tab_sort = table.sort +local os = os + + +local plugin_name = "aws-lambda" +local plugin_version = 0.1 +local priority = -1899 + +local ALGO = "AWS4-HMAC-SHA256" + +local function hmac256(key, msg) +return hmac:new(key, hmac.ALGOS.SHA256):final(msg) +end + +local function sha256(msg) +local hash = resty_sha256:new() +hash:update(msg) +local digest = hash:final() +return hex_encode(digest) +end + +local function get_signature_key(key, datestamp, region, service) +local kDate = hmac256("AWS4" .. key, datestamp) +local kRegion = hmac256(kDate, region) +local kService = hmac256(kRegion, service) +local kSigning = hmac256(kService, "aws4_request") +return kSigning +end + +local aws_authz_schema = { +type = "object", +properties = { +-- API Key based authorization +apikey = {type = "string"}, +-- IAM role based authorization, works via aws v4 request signing +-- more at https://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html +iam = { +type = "object", +properties = { +accesskey = { +type = "string", +description = "access key id from from aws iam console" +}, +secretkey = { +type = "string", +description = "secret access key from from aws iam console" +}, +aws_region = { +type = "string", +default = "us-east-1", +description = "the aws region that is receiving the request" +}, +service = { +type = "string", +default = "execute-api", +description = "the service that is receiving the request" +} +}, +required = {"accesskey", "secretkey"} +} +} +} + +local function request_processor(conf, ctx, params) +local headers = params.headers +-- set authorization headers if not already set by the client +-- we are following not to overwrite the authz keys +if not headers["x-api-key"] then +if conf.authorization and conf.authorization.apikey then +headers["x-api-key"] = conf.authorization.apikey +return +end +end + +-- performing aws v4 request signing for IAM authorization +-- visit https://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html +-- to look at the pseudocode in python. +if headers["authorization"] or not conf.authorization or not conf.authorization.iam then +return +end + +-- create a date for headers and the credential string +local t = ngx.time() +l
[GitHub] [apisix] spacewander merged pull request #5594: feat(plugins): aws lambda serverless
spacewander merged pull request #5594: URL: https://github.com/apache/apisix/pull/5594 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] zhangweidongyyl commented on issue #5643: request help: body_filter how to send request in apisix
zhangweidongyyl commented on issue #5643: URL: https://github.com/apache/apisix/issues/5643#issuecomment-983229805 > I cannot got what you want to do. > > BTW, ngx.redirect is unavailable in `body_filter_by_lua`, see: https://github.com/openresty/lua-nginx-module#ngxredirect ngx.req.set_uri it seem can solve my problem -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[apisix-dashboard] branch master updated: chore(deps): bump actions/setup-node from 2.4.1 to 2.5.0 (#2230)
This is an automated email from the ASF dual-hosted git repository. liuxiran pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git The following commit(s) were added to refs/heads/master by this push: new fe05240 chore(deps): bump actions/setup-node from 2.4.1 to 2.5.0 (#2230) fe05240 is described below commit fe052409817005db713e802999d3b99c6a323c5c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> AuthorDate: Wed Dec 1 10:41:22 2021 +0800 chore(deps): bump actions/setup-node from 2.4.1 to 2.5.0 (#2230) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/frontend-e2e-test.yml | 2 +- .github/workflows/frontend-plugin-e2e-test.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/make-build.yaml | 2 +- .github/workflows/test-frontend-multiple-node-build.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/frontend-e2e-test.yml b/.github/workflows/frontend-e2e-test.yml index 975074f..50661d5 100644 --- a/.github/workflows/frontend-e2e-test.yml +++ b/.github/workflows/frontend-e2e-test.yml @@ -42,7 +42,7 @@ jobs: submodules: recursive - name: Setup Node.js environment -uses: actions/setup-node@v2.4.1 +uses: actions/setup-node@v2.5.0 with: node-version: 14.x cache: 'yarn' diff --git a/.github/workflows/frontend-plugin-e2e-test.yml b/.github/workflows/frontend-plugin-e2e-test.yml index fad3deb..075360e 100644 --- a/.github/workflows/frontend-plugin-e2e-test.yml +++ b/.github/workflows/frontend-plugin-e2e-test.yml @@ -40,7 +40,7 @@ jobs: submodules: recursive - name: Setup Node.js environment -uses: actions/setup-node@v2.4.1 +uses: actions/setup-node@v2.5.0 with: node-version: 14.x cache: 'yarn' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0e1aff1..c4ffd89 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,7 +9,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: 🚀 Use Node.js -uses: actions/setup-node@v2.4.1 +uses: actions/setup-node@v2.5.0 with: node-version: '14.x' - run: npm install -g markdownlint-cli@0.25.0 diff --git a/.github/workflows/make-build.yaml b/.github/workflows/make-build.yaml index b75e8d1..805203a 100644 --- a/.github/workflows/make-build.yaml +++ b/.github/workflows/make-build.yaml @@ -39,7 +39,7 @@ jobs: submodules: recursive - name: Setup Node.js environment -uses: actions/setup-node@v2.4.1 +uses: actions/setup-node@v2.5.0 with: node-version: 14.x cache: 'yarn' diff --git a/.github/workflows/test-frontend-multiple-node-build.yml b/.github/workflows/test-frontend-multiple-node-build.yml index aceb068..b9a567e 100644 --- a/.github/workflows/test-frontend-multiple-node-build.yml +++ b/.github/workflows/test-frontend-multiple-node-build.yml @@ -34,7 +34,7 @@ jobs: with: submodules: recursive - name: Use Node.js ${{ matrix.node-version }} -uses: actions/setup-node@v2.4.1 +uses: actions/setup-node@v2.5.0 with: node-version: ${{ matrix.node-version }} cache: 'yarn'
[GitHub] [apisix-dashboard] liuxiran merged pull request #2230: chore(deps): bump actions/setup-node from 2.4.1 to 2.5.0
liuxiran merged pull request #2230: URL: https://github.com/apache/apisix-dashboard/pull/2230 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-dashboard] liuxiran merged pull request #2229: chore(deps): bump actions/setup-python from 2.2.2 to 2.3.1
liuxiran merged pull request #2229: URL: https://github.com/apache/apisix-dashboard/pull/2229 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[apisix-dashboard] branch master updated: chore(deps): bump actions/setup-python from 2.2.2 to 2.3.1 (#2229)
This is an automated email from the ASF dual-hosted git repository. liuxiran pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git The following commit(s) were added to refs/heads/master by this push: new cc1e5d4 chore(deps): bump actions/setup-python from 2.2.2 to 2.3.1 (#2229) cc1e5d4 is described below commit cc1e5d4804f3db20ae52d32dd6f879b46aa331ea Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> AuthorDate: Wed Dec 1 10:42:07 2021 +0800 chore(deps): bump actions/setup-python from 2.2.2 to 2.3.1 (#2229) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c4ffd89..3fa5796 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -34,7 +34,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-python@v2.2.2 + - uses: actions/setup-python@v2.3.1 with: python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
[GitHub] [apisix] bisakhmondal opened a new pull request #5655: docs: add aws lambda plugin to readme
bisakhmondal opened a new pull request #5655: URL: https://github.com/apache/apisix/pull/5655 ### What this PR does / why we need it: ### Pre-submission checklist: * [x] Did you explain what problem does this PR solve? Or what new features have been added? * [ ] Have you added corresponding test cases? * [x] Have you modified the corresponding document? * [x] Is this PR backward compatible? **If it is not backward compatible, please discuss on the [mailing list](https://github.com/apache/apisix/tree/master#community) first** -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] spacewander commented on a change in pull request #5655: docs: add aws lambda plugin to readme
spacewander commented on a change in pull request #5655: URL: https://github.com/apache/apisix/pull/5655#discussion_r759816746 ## File path: README.md ## @@ -153,8 +153,9 @@ A/B testing, canary release, blue-green deployment, limit rate, defense against - **Serverless** - [Lua functions](docs/en/latest/plugins/serverless.md): Invoke functions in each phase in APISIX. - - [Azure functions](docs/en/latest/plugins/azure-functions.md): seamless integration with Azure Serverless Function as a dynamic upstream to proxy all requests for a particular URI to the Microsoft Azure cloud. - - [Apache OpenWhisk](docs/en/latest/plugins/openwhisk.md): seamless integration with Apache OpenWhisk as a dynamic upstream to proxy all requests for a particular URI to your own OpenWhisk cluster. + - [AWS Lambda](docs/en/latest/plugins/aws-lambda.md): Integration with AWS Lambda function as a dynamic upstream to proxy all requests for a particular URI to the AWS API gateway endpoint. Supports authorization via api key and AWS IAM access secret. + - [Azure functions](docs/en/latest/plugins/azure-functions.md): Seamless integration with Azure Serverless Function as a dynamic upstream to proxy all requests for a particular URI to the Microsoft Azure cloud. Review comment: ```suggestion - [Azure Functions](docs/en/latest/plugins/azure-functions.md): Seamless integration with Azure Serverless Function as a dynamic upstream to proxy all requests for a particular URI to the Microsoft Azure cloud. ``` looks better? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] bisakhmondal commented on a change in pull request #5655: docs: add aws lambda plugin to readme
bisakhmondal commented on a change in pull request #5655: URL: https://github.com/apache/apisix/pull/5655#discussion_r759817238 ## File path: README.md ## @@ -153,8 +153,9 @@ A/B testing, canary release, blue-green deployment, limit rate, defense against - **Serverless** - [Lua functions](docs/en/latest/plugins/serverless.md): Invoke functions in each phase in APISIX. - - [Azure functions](docs/en/latest/plugins/azure-functions.md): seamless integration with Azure Serverless Function as a dynamic upstream to proxy all requests for a particular URI to the Microsoft Azure cloud. - - [Apache OpenWhisk](docs/en/latest/plugins/openwhisk.md): seamless integration with Apache OpenWhisk as a dynamic upstream to proxy all requests for a particular URI to your own OpenWhisk cluster. + - [AWS Lambda](docs/en/latest/plugins/aws-lambda.md): Integration with AWS Lambda function as a dynamic upstream to proxy all requests for a particular URI to the AWS API gateway endpoint. Supports authorization via api key and AWS IAM access secret. + - [Azure functions](docs/en/latest/plugins/azure-functions.md): Seamless integration with Azure Serverless Function as a dynamic upstream to proxy all requests for a particular URI to the Microsoft Azure cloud. Review comment: Indeed :+1: -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-ingress-controller] han6565 commented on issue #778: request help: 新增namespace 然后删除,会一直报not found
han6565 commented on issue #778: URL: https://github.com/apache/apisix-ingress-controller/issues/778#issuecomment-983240242 > There is an issue about this #741, suggest checking bugfix #742 for help. thanks . -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-ingress-controller] han6565 closed issue #778: request help: 新增namespace 然后删除,会一直报not found
han6565 closed issue #778: URL: https://github.com/apache/apisix-ingress-controller/issues/778 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] lihuawei321 opened a new issue #5658: request help: 开启log-rotate插件后日志采集不到
lihuawei321 opened a new issue #5658: URL: https://github.com/apache/apisix/issues/5658 ### Issue description 当我开启log-rotate插件后,发起请求后access.log没有日志,关掉log-rotate就有了。 ### Environment - apisix version (cmd: `apisix version`): 2.10.2 - OS (cmd: `uname -a`): centos7 - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API): 3.5 - apisix-dashboard version, if have: 2.9 - the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner): - luarocks version, if the issue is about installation (cmd: `luarocks --version`): -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-ingress-controller] lxm commented on a change in pull request #779: feat: support regex in path
lxm commented on a change in pull request #779: URL: https://github.com/apache/apisix-ingress-controller/pull/779#discussion_r759835430 ## File path: pkg/kube/translation/annotations/types.go ## @@ -18,6 +18,10 @@ import ( "strings" ) +const ( + AnnotationsPrefix = "k8s.apisix.apache.org/" Review comment: this will be used in `translation` package to dicide whether use-regex annotation is true -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix-dashboard] codecov-commenter edited a comment on pull request #2201: test: migrate route remote addr e2e
codecov-commenter edited a comment on pull request #2201: URL: https://github.com/apache/apisix-dashboard/pull/2201#issuecomment-964751665 # [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/2201?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report > Merging [#2201](https://codecov.io/gh/apache/apisix-dashboard/pull/2201?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (ea95e30) into [master](https://codecov.io/gh/apache/apisix-dashboard/commit/cc1e5d4804f3db20ae52d32dd6f879b46aa331ea?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (cc1e5d4) will **decrease** coverage by `18.91%`. > The diff coverage is `n/a`. [![Impacted file tree graph](https://codecov.io/gh/apache/apisix-dashboard/pull/2201/graphs/tree.svg?width=650&height=150&src=pr&token=Q1HERXN96P&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)](https://codecov.io/gh/apache/apisix-dashboard/pull/2201?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) ```diff @@ Coverage Diff @@ ## master#2201 +/- ## === - Coverage 68.07% 49.16% -18.92% === Files 127 41 -86 Lines3352 3171 -181 Branches 8240 -824 === - Hits 2282 1559 -723 - Misses 1070 1412 +342 - Partials0 200 +200 ``` | Flag | Coverage Δ | | |---|---|---| | backend-unit-test | `49.16% <ø> (?)` | | | frontend-e2e-test | `?` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/apache/apisix-dashboard/pull/2201?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | | |---|---|---| | [web/src/components/Plugin/service.ts](https://codecov.io/gh/apache/apisix-dashboard/pull/2201/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-d2ViL3NyYy9jb21wb25lbnRzL1BsdWdpbi9zZXJ2aWNlLnRz) | | | | [web/src/app.tsx](https://codecov.io/gh/apache/apisix-dashboard/pull/2201/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-d2ViL3NyYy9hcHAudHN4) | | | | [web/src/components/ActionBar/ActionBar.tsx](https://codecov.io/gh/apache/apisix-dashboard/pull/2201/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-d2ViL3NyYy9jb21wb25lbnRzL0FjdGlvbkJhci9BY3Rpb25CYXIudHN4) | | | | [web/src/components/RightContent/index.tsx](https://codecov.io/gh/apache/apisix-dashboard/pull/2201/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-d2ViL3NyYy9jb21wb25lbnRzL1JpZ2h0Q29udGVudC9pbmRleC50c3g=) | | | | [web/src/pages/Consumer/components/Step1.tsx](https://codecov.io/gh/apache/apisix-dashboard/pull/2201/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-d2ViL3NyYy9wYWdlcy9Db25zdW1lci9jb21wb25lbnRzL1N0ZXAxLnRzeA==) | | | | [...tream/components/active-check/Healthy/Interval.tsx](https://codecov.io/gh/apache/apisix-dashboard/pull/2201/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-d2ViL3NyYy9jb21wb25lbnRzL1Vwc3RyZWFtL2NvbXBvbmVudHMvYWN0aXZlLWNoZWNrL0hlYWx0aHkvSW50ZXJ2YWwudHN4) | | | | [...m/components/active-check/Healthy/HttpStatuses.tsx](https://codecov.io/gh/apache/apisix-dashboard/pull/2201/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-d2ViL3NyYy9jb21wb25lbnRzL1Vwc3RyZWFtL2NvbXBvbmVudHMvYWN0aXZlLWNoZWNrL0hlYWx0aHkvSHR0cFN0YXR1c2VzLnRzeA==) | | | | [...components/passive-check/Unhealthy/TcpFailur
[GitHub] [apisix-dashboard] codecov-commenter edited a comment on pull request #2200: test: migrate route_export_test e2e
codecov-commenter edited a comment on pull request #2200: URL: https://github.com/apache/apisix-dashboard/pull/2200#issuecomment-963965563 # [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/2200?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report > Merging [#2200](https://codecov.io/gh/apache/apisix-dashboard/pull/2200?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (11964b7) into [master](https://codecov.io/gh/apache/apisix-dashboard/commit/cc1e5d4804f3db20ae52d32dd6f879b46aa331ea?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (cc1e5d4) will **decrease** coverage by `18.91%`. > The diff coverage is `n/a`. [![Impacted file tree graph](https://codecov.io/gh/apache/apisix-dashboard/pull/2200/graphs/tree.svg?width=650&height=150&src=pr&token=Q1HERXN96P&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)](https://codecov.io/gh/apache/apisix-dashboard/pull/2200?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) ```diff @@ Coverage Diff @@ ## master#2200 +/- ## === - Coverage 68.07% 49.16% -18.92% === Files 127 41 -86 Lines3352 3171 -181 Branches 8240 -824 === - Hits 2282 1559 -723 - Misses 1070 1412 +342 - Partials0 200 +200 ``` | Flag | Coverage Δ | | |---|---|---| | backend-unit-test | `49.16% <ø> (?)` | | | frontend-e2e-test | `?` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/apache/apisix-dashboard/pull/2200?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | | |---|---|---| | [web/src/components/Plugin/UI/api-breaker.tsx](https://codecov.io/gh/apache/apisix-dashboard/pull/2200/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-d2ViL3NyYy9jb21wb25lbnRzL1BsdWdpbi9VSS9hcGktYnJlYWtlci50c3g=) | | | | [.../src/pages/User/components/LoginMethodPassword.tsx](https://codecov.io/gh/apache/apisix-dashboard/pull/2200/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-d2ViL3NyYy9wYWdlcy9Vc2VyL2NvbXBvbmVudHMvTG9naW5NZXRob2RQYXNzd29yZC50c3g=) | | | | [web/src/components/Upstream/components/Scheme.tsx](https://codecov.io/gh/apache/apisix-dashboard/pull/2200/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-d2ViL3NyYy9jb21wb25lbnRzL1Vwc3RyZWFtL2NvbXBvbmVudHMvU2NoZW1lLnRzeA==) | | | | [web/src/pages/Route/transform.ts](https://codecov.io/gh/apache/apisix-dashboard/pull/2200/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-d2ViL3NyYy9wYWdlcy9Sb3V0ZS90cmFuc2Zvcm0udHM=) | | | | [web/src/pages/SSL/service.ts](https://codecov.io/gh/apache/apisix-dashboard/pull/2200/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-d2ViL3NyYy9wYWdlcy9TU0wvc2VydmljZS50cw==) | | | | [.../components/passive-check/Healthy/HttpStatuses.tsx](https://codecov.io/gh/apache/apisix-dashboard/pull/2200/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-d2ViL3NyYy9jb21wb25lbnRzL1Vwc3RyZWFtL2NvbXBvbmVudHMvcGFzc2l2ZS1jaGVjay9IZWFsdGh5L0h0dHBTdGF0dXNlcy50c3g=) | | | | [web/src/components/Upstream/components/Retries.tsx](https://codecov.io/gh/apache/apisix-dashboard/pull/2200/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-d2ViL3NyYy9jb21wb25lbnRzL1Vwc3RyZWFtL2NvbXBvbmVudHMvUmV0cmllcy50c3g=) | | | | [...rc