You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/07/07 12:02:22 UTC

[GitHub] [apisix-ingress-controller] dickens7 opened a new pull request, #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

dickens7 opened a new pull request, #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139

   <!-- Please answer these questions before submitting a pull request -->
   
   ### Type of change:
   
   <!-- Please delete options that are not relevant. -->
   
   - [ ] Bugfix
   - [x] New feature provided
   - [ ] Improve performance
   - [ ] Backport patches
   
   ### What this PR does / why we need it:
   <!--- Why is this change required? What problem does it solve? -->
   <!--- If it fixes an open issue, please link to the issue here. -->
   
   feat: #799
   
   ### Pre-submission checklist:
   
   <!--
   Please follow the requirements:
   1. Use Draft if the PR is not ready to be reviewed
   2. Test is required for the feat/fix PR, unless you have a good reason
   3. Doc is required for the feat PR
   4. Use a new commit to resolve review instead of `push -f`
   5. Use "request review" to notify the reviewer once you have resolved the review
   -->
   
   * [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-ingress-controller#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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] navendu-pottekkat commented on a diff in pull request #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

Posted by GitBox <gi...@apache.org>.
navendu-pottekkat commented on code in PR #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139#discussion_r1038326483


##########
docs/en/latest/concepts/annotations.md:
##########
@@ -204,3 +204,56 @@ spec:
             port:
               number: 80
 ```
+
+Use ApisixPluginConfig
+---------
+
+You can use the following annotations to use the `ApisixPluginConfig`.
+
+* `k8s.apisix.apache.org/plugin-conifg-name`

Review Comment:
   Ah, that's because these fixes have not been published yet. We are trying to make the versioning better, but now it is a mess. You can select "Next" from the version dropdown and you would be able to see the updated docs.



-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] juzhiyuan commented on a diff in pull request #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on code in PR #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139#discussion_r917209684


##########
docs/en/latest/concepts/annotations.md:
##########
@@ -204,3 +204,58 @@ spec:
             port:
               number: 80
 ```
+
+Use ApisixPluginConfig
+---------
+
+You can use the following annotations to use the `ApisixPluginConfig`.
+
+* `k8s.apisix.apache.org/plugin-conifg-name`
+  
+If this annotations set to `ApisixPluginConfig.metadata.name` the route will use `ApisixPluginConfig`
+
+If this comment is set to the `ApisixPluginConfig` resource name, the route will set the corresponding `PluginConfig`
+
+ApisixPluginConfig is a resource under the same Namespace as Ingress

Review Comment:
   If the content is correct, you can merge first. Navendu will update this project's docs when available.



-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on a diff in pull request #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on code in PR #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139#discussion_r918505976


##########
test/e2e/suite-annotations/plugin_conifg.go:
##########
@@ -0,0 +1,188 @@
+// 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.
+
+package annotations
+
+import (
+	"fmt"
+	"net/http"
+	"time"
+
+	"github.com/apache/apisix-ingress-controller/test/e2e/scaffold"
+	ginkgo "github.com/onsi/ginkgo/v2"
+	"github.com/stretchr/testify/assert"
+)
+
+func _createAPC(s *scaffold.Scaffold) {
+	apc := fmt.Sprintf(`
+apiVersion: apisix.apache.org/v2beta3
+kind: ApisixPluginConfig
+metadata:
+  name: echo-and-cors-apc
+spec:
+  plugins:
+  - name: echo
+    enable: true
+    config:
+      before_body: "This is the preface"
+      after_body: "This is the epilogue"
+      headers:
+        X-Foo: v1
+        X-Foo2: v2
+  - name: cors
+    enable: true
+`)
+	err := s.CreateResourceFromString(apc)
+	assert.Nil(ginkgo.GinkgoT(), err)
+	err = s.EnsureNumApisixPluginConfigCreated(1)
+	assert.Nil(ginkgo.GinkgoT(), err, "Checking number of ApisixPluginConfig")
+	time.Sleep(time.Second * 3)
+}
+
+func _assert(s *scaffold.Scaffold, ing string) {
+	assert.Nil(ginkgo.GinkgoT(), s.CreateResourceFromString(ing))
+
+	time.Sleep(3 * time.Second)
+	pcs, err := s.ListApisixPluginConfig()
+	assert.Nil(ginkgo.GinkgoT(), err, nil, "listing pluginConfigs")
+	assert.Len(ginkgo.GinkgoT(), pcs, 1)
+	assert.Len(ginkgo.GinkgoT(), pcs[0].Plugins, 2)
+
+	resp := s.NewAPISIXClient().GET("/ip").WithHeader("Host", "httpbin.org").Expect()
+	resp.Status(http.StatusOK)
+	resp.Header("X-Foo").Equal("v1")
+	resp.Header("X-Foo2").Equal("v2")
+	resp.Header("Access-Control-Allow-Origin").Equal("*")
+	resp.Header("Access-Control-Allow-Methods").Equal("*")
+	resp.Header("Access-Control-Allow-Headers").Equal("*")
+	resp.Header("Access-Control-Expose-Headers").Equal("*")
+	resp.Header("Access-Control-Max-Age").Equal("5")
+	resp.Body().Contains("This is the preface")
+	resp.Body().Contains("origin")
+	resp.Body().Contains("This is the epilogue")
+}
+
+var _ = ginkgo.Describe("suite-annotations: annotations.networking/v1 with ApisixPluginConfig", func() {
+	opts := &scaffold.Options{
+		Name:                  "default",
+		Kubeconfig:            scaffold.GetKubeconfig(),
+		APISIXConfigPath:      "testdata/apisix-gw-config.yaml",
+		IngressAPISIXReplicas: 1,
+		HTTPBinServicePort:    80,
+		APISIXRouteVersion:    "apisix.apache.org/v2beta3",
+	}
+	s := scaffold.NewScaffold(opts)

Review Comment:
   ping @dickens7 please take a look 



-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] AlinsRan commented on a diff in pull request #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

Posted by GitBox <gi...@apache.org>.
AlinsRan commented on code in PR #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139#discussion_r917725700


##########
test/e2e/suite-annotations/plugin_conifg.go:
##########
@@ -0,0 +1,188 @@
+// 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.
+
+package annotations
+
+import (
+	"fmt"
+	"net/http"
+	"time"
+
+	"github.com/apache/apisix-ingress-controller/test/e2e/scaffold"
+	ginkgo "github.com/onsi/ginkgo/v2"
+	"github.com/stretchr/testify/assert"
+)
+
+func _createAPC(s *scaffold.Scaffold) {
+	apc := fmt.Sprintf(`
+apiVersion: apisix.apache.org/v2beta3
+kind: ApisixPluginConfig
+metadata:
+  name: echo-and-cors-apc
+spec:
+  plugins:
+  - name: echo
+    enable: true
+    config:
+      before_body: "This is the preface"
+      after_body: "This is the epilogue"
+      headers:
+        X-Foo: v1
+        X-Foo2: v2
+  - name: cors
+    enable: true
+`)
+	err := s.CreateResourceFromString(apc)
+	assert.Nil(ginkgo.GinkgoT(), err)
+	err = s.EnsureNumApisixPluginConfigCreated(1)
+	assert.Nil(ginkgo.GinkgoT(), err, "Checking number of ApisixPluginConfig")
+	time.Sleep(time.Second * 3)
+}
+
+func _assert(s *scaffold.Scaffold, ing string) {
+	assert.Nil(ginkgo.GinkgoT(), s.CreateResourceFromString(ing))
+
+	time.Sleep(3 * time.Second)
+	pcs, err := s.ListApisixPluginConfig()
+	assert.Nil(ginkgo.GinkgoT(), err, nil, "listing pluginConfigs")
+	assert.Len(ginkgo.GinkgoT(), pcs, 1)
+	assert.Len(ginkgo.GinkgoT(), pcs[0].Plugins, 2)
+
+	resp := s.NewAPISIXClient().GET("/ip").WithHeader("Host", "httpbin.org").Expect()
+	resp.Status(http.StatusOK)
+	resp.Header("X-Foo").Equal("v1")
+	resp.Header("X-Foo2").Equal("v2")
+	resp.Header("Access-Control-Allow-Origin").Equal("*")
+	resp.Header("Access-Control-Allow-Methods").Equal("*")
+	resp.Header("Access-Control-Allow-Headers").Equal("*")
+	resp.Header("Access-Control-Expose-Headers").Equal("*")
+	resp.Header("Access-Control-Max-Age").Equal("5")
+	resp.Body().Contains("This is the preface")
+	resp.Body().Contains("origin")
+	resp.Body().Contains("This is the epilogue")
+}
+
+var _ = ginkgo.Describe("suite-annotations: annotations.networking/v1 with ApisixPluginConfig", func() {
+	opts := &scaffold.Options{
+		Name:                  "default",
+		Kubeconfig:            scaffold.GetKubeconfig(),
+		APISIXConfigPath:      "testdata/apisix-gw-config.yaml",
+		IngressAPISIXReplicas: 1,
+		HTTPBinServicePort:    80,
+		APISIXRouteVersion:    "apisix.apache.org/v2beta3",
+	}
+	s := scaffold.NewScaffold(opts)

Review Comment:
   Can you use `s := scaffold.NewDefaultScaffold()`?



##########
test/e2e/suite-annotations/plugin_conifg.go:
##########
@@ -0,0 +1,188 @@
+// 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.
+
+package annotations
+
+import (
+	"fmt"
+	"net/http"
+	"time"
+
+	"github.com/apache/apisix-ingress-controller/test/e2e/scaffold"
+	ginkgo "github.com/onsi/ginkgo/v2"
+	"github.com/stretchr/testify/assert"
+)
+
+func _createAPC(s *scaffold.Scaffold) {
+	apc := fmt.Sprintf(`
+apiVersion: apisix.apache.org/v2beta3
+kind: ApisixPluginConfig
+metadata:
+  name: echo-and-cors-apc
+spec:
+  plugins:
+  - name: echo
+    enable: true
+    config:
+      before_body: "This is the preface"
+      after_body: "This is the epilogue"
+      headers:
+        X-Foo: v1
+        X-Foo2: v2
+  - name: cors
+    enable: true
+`)
+	err := s.CreateResourceFromString(apc)
+	assert.Nil(ginkgo.GinkgoT(), err)
+	err = s.EnsureNumApisixPluginConfigCreated(1)
+	assert.Nil(ginkgo.GinkgoT(), err, "Checking number of ApisixPluginConfig")
+	time.Sleep(time.Second * 3)
+}
+
+func _assert(s *scaffold.Scaffold, ing string) {
+	assert.Nil(ginkgo.GinkgoT(), s.CreateResourceFromString(ing))
+
+	time.Sleep(3 * time.Second)
+	pcs, err := s.ListApisixPluginConfig()
+	assert.Nil(ginkgo.GinkgoT(), err, nil, "listing pluginConfigs")
+	assert.Len(ginkgo.GinkgoT(), pcs, 1)
+	assert.Len(ginkgo.GinkgoT(), pcs[0].Plugins, 2)
+
+	resp := s.NewAPISIXClient().GET("/ip").WithHeader("Host", "httpbin.org").Expect()
+	resp.Status(http.StatusOK)
+	resp.Header("X-Foo").Equal("v1")
+	resp.Header("X-Foo2").Equal("v2")
+	resp.Header("Access-Control-Allow-Origin").Equal("*")
+	resp.Header("Access-Control-Allow-Methods").Equal("*")
+	resp.Header("Access-Control-Allow-Headers").Equal("*")
+	resp.Header("Access-Control-Expose-Headers").Equal("*")
+	resp.Header("Access-Control-Max-Age").Equal("5")
+	resp.Body().Contains("This is the preface")
+	resp.Body().Contains("origin")
+	resp.Body().Contains("This is the epilogue")
+}
+
+var _ = ginkgo.Describe("suite-annotations: annotations.networking/v1 with ApisixPluginConfig", func() {
+	opts := &scaffold.Options{
+		Name:                  "default",
+		Kubeconfig:            scaffold.GetKubeconfig(),
+		APISIXConfigPath:      "testdata/apisix-gw-config.yaml",
+		IngressAPISIXReplicas: 1,
+		HTTPBinServicePort:    80,
+		APISIXRouteVersion:    "apisix.apache.org/v2beta3",
+	}
+	s := scaffold.NewScaffold(opts)
+	ginkgo.It("networking/v1", func() {
+		backendSvc, backendPorts := s.DefaultHTTPBackend()
+		_createAPC(s)
+		ing := fmt.Sprintf(`
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  name: ingress-v1
+  annotations:
+    kubernetes.io/ingress.class: apisix
+    k8s.apisix.apache.org/plugin-config-name: echo-and-cors-apc
+  name: ingress-v1
+spec:
+  rules:
+  - host: httpbin.org
+    http:
+      paths:
+      - path: /ip
+        pathType: ImplementationSpecific
+        backend:
+          service:
+            name: %s
+            port:
+              number: %d
+`, backendSvc, backendPorts[0])
+		_assert(s, ing)
+	})
+})
+
+var _ = ginkgo.Describe("suite-annotations: annotations.networking/v1beta1 with ApisixPluginConfig", func() {
+	opts := &scaffold.Options{
+		Name:                  "default",
+		Kubeconfig:            scaffold.GetKubeconfig(),
+		APISIXConfigPath:      "testdata/apisix-gw-config.yaml",
+		IngressAPISIXReplicas: 1,
+		HTTPBinServicePort:    80,
+		APISIXRouteVersion:    "apisix.apache.org/v2beta3",
+	}
+	s := scaffold.NewScaffold(opts)
+	ginkgo.It("networking/v1beta1", func() {
+		_createAPC(s)
+
+		backendSvc, backendPorts := s.DefaultHTTPBackend()
+		ing := fmt.Sprintf(`
+apiVersion: networking.k8s.io/v1beta1
+kind: Ingress
+metadata:
+  name: ingress-v1beta1
+  annotations:
+    kubernetes.io/ingress.class: apisix
+    k8s.apisix.apache.org/plugin-config-name: echo-and-cors-apc
+spec:
+  rules:
+  - host: httpbin.org
+    http:
+      paths:
+      - path: /ip
+        pathType: Exact
+        backend:
+          serviceName: %s
+          servicePort: %d
+`, backendSvc, backendPorts[0])
+		_assert(s, ing)
+	})
+})
+
+var _ = ginkgo.Describe("suite-annotations: annotations.extensions/v1beta1 with ApisixPluginConfig", func() {
+	opts := &scaffold.Options{
+		Name:                  "default",
+		Kubeconfig:            scaffold.GetKubeconfig(),
+		APISIXConfigPath:      "testdata/apisix-gw-config.yaml",
+		IngressAPISIXReplicas: 1,
+		HTTPBinServicePort:    80,
+		APISIXRouteVersion:    "apisix.apache.org/v2beta3",
+	}
+	s := scaffold.NewScaffold(opts)

Review Comment:
   Ditto.



##########
test/e2e/suite-annotations/plugin_conifg.go:
##########
@@ -0,0 +1,188 @@
+// 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.
+
+package annotations
+
+import (
+	"fmt"
+	"net/http"
+	"time"
+
+	"github.com/apache/apisix-ingress-controller/test/e2e/scaffold"
+	ginkgo "github.com/onsi/ginkgo/v2"
+	"github.com/stretchr/testify/assert"
+)
+
+func _createAPC(s *scaffold.Scaffold) {
+	apc := fmt.Sprintf(`
+apiVersion: apisix.apache.org/v2beta3
+kind: ApisixPluginConfig
+metadata:
+  name: echo-and-cors-apc
+spec:
+  plugins:
+  - name: echo
+    enable: true
+    config:
+      before_body: "This is the preface"
+      after_body: "This is the epilogue"
+      headers:
+        X-Foo: v1
+        X-Foo2: v2
+  - name: cors
+    enable: true
+`)
+	err := s.CreateResourceFromString(apc)

Review Comment:
   @tao12345666333 Need to support V2 version?



##########
test/e2e/suite-annotations/plugin_conifg.go:
##########
@@ -0,0 +1,188 @@
+// 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.
+
+package annotations
+
+import (
+	"fmt"
+	"net/http"
+	"time"
+
+	"github.com/apache/apisix-ingress-controller/test/e2e/scaffold"
+	ginkgo "github.com/onsi/ginkgo/v2"
+	"github.com/stretchr/testify/assert"
+)
+
+func _createAPC(s *scaffold.Scaffold) {
+	apc := fmt.Sprintf(`
+apiVersion: apisix.apache.org/v2beta3
+kind: ApisixPluginConfig
+metadata:
+  name: echo-and-cors-apc
+spec:
+  plugins:
+  - name: echo
+    enable: true
+    config:
+      before_body: "This is the preface"
+      after_body: "This is the epilogue"
+      headers:
+        X-Foo: v1
+        X-Foo2: v2
+  - name: cors
+    enable: true
+`)
+	err := s.CreateResourceFromString(apc)
+	assert.Nil(ginkgo.GinkgoT(), err)
+	err = s.EnsureNumApisixPluginConfigCreated(1)
+	assert.Nil(ginkgo.GinkgoT(), err, "Checking number of ApisixPluginConfig")
+	time.Sleep(time.Second * 3)
+}
+
+func _assert(s *scaffold.Scaffold, ing string) {
+	assert.Nil(ginkgo.GinkgoT(), s.CreateResourceFromString(ing))
+
+	time.Sleep(3 * time.Second)
+	pcs, err := s.ListApisixPluginConfig()
+	assert.Nil(ginkgo.GinkgoT(), err, nil, "listing pluginConfigs")
+	assert.Len(ginkgo.GinkgoT(), pcs, 1)
+	assert.Len(ginkgo.GinkgoT(), pcs[0].Plugins, 2)
+
+	resp := s.NewAPISIXClient().GET("/ip").WithHeader("Host", "httpbin.org").Expect()
+	resp.Status(http.StatusOK)
+	resp.Header("X-Foo").Equal("v1")
+	resp.Header("X-Foo2").Equal("v2")
+	resp.Header("Access-Control-Allow-Origin").Equal("*")
+	resp.Header("Access-Control-Allow-Methods").Equal("*")
+	resp.Header("Access-Control-Allow-Headers").Equal("*")
+	resp.Header("Access-Control-Expose-Headers").Equal("*")
+	resp.Header("Access-Control-Max-Age").Equal("5")
+	resp.Body().Contains("This is the preface")
+	resp.Body().Contains("origin")
+	resp.Body().Contains("This is the epilogue")
+}
+
+var _ = ginkgo.Describe("suite-annotations: annotations.networking/v1 with ApisixPluginConfig", func() {
+	opts := &scaffold.Options{
+		Name:                  "default",
+		Kubeconfig:            scaffold.GetKubeconfig(),
+		APISIXConfigPath:      "testdata/apisix-gw-config.yaml",
+		IngressAPISIXReplicas: 1,
+		HTTPBinServicePort:    80,
+		APISIXRouteVersion:    "apisix.apache.org/v2beta3",
+	}
+	s := scaffold.NewScaffold(opts)
+	ginkgo.It("networking/v1", func() {
+		backendSvc, backendPorts := s.DefaultHTTPBackend()
+		_createAPC(s)
+		ing := fmt.Sprintf(`
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  name: ingress-v1
+  annotations:
+    kubernetes.io/ingress.class: apisix
+    k8s.apisix.apache.org/plugin-config-name: echo-and-cors-apc
+  name: ingress-v1
+spec:
+  rules:
+  - host: httpbin.org
+    http:
+      paths:
+      - path: /ip
+        pathType: ImplementationSpecific
+        backend:
+          service:
+            name: %s
+            port:
+              number: %d
+`, backendSvc, backendPorts[0])
+		_assert(s, ing)
+	})
+})
+
+var _ = ginkgo.Describe("suite-annotations: annotations.networking/v1beta1 with ApisixPluginConfig", func() {
+	opts := &scaffold.Options{
+		Name:                  "default",
+		Kubeconfig:            scaffold.GetKubeconfig(),
+		APISIXConfigPath:      "testdata/apisix-gw-config.yaml",
+		IngressAPISIXReplicas: 1,
+		HTTPBinServicePort:    80,
+		APISIXRouteVersion:    "apisix.apache.org/v2beta3",
+	}
+	s := scaffold.NewScaffold(opts)

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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] AlinsRan commented on a diff in pull request #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

Posted by GitBox <gi...@apache.org>.
AlinsRan commented on code in PR #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139#discussion_r918745713


##########
test/e2e/suite-annotations/plugin_conifg.go:
##########
@@ -0,0 +1,188 @@
+// 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.
+
+package annotations
+
+import (
+	"fmt"
+	"net/http"
+	"time"
+
+	"github.com/apache/apisix-ingress-controller/test/e2e/scaffold"
+	ginkgo "github.com/onsi/ginkgo/v2"
+	"github.com/stretchr/testify/assert"
+)
+
+func _createAPC(s *scaffold.Scaffold) {
+	apc := fmt.Sprintf(`
+apiVersion: apisix.apache.org/v2beta3
+kind: ApisixPluginConfig
+metadata:
+  name: echo-and-cors-apc
+spec:
+  plugins:
+  - name: echo
+    enable: true
+    config:
+      before_body: "This is the preface"
+      after_body: "This is the epilogue"
+      headers:
+        X-Foo: v1
+        X-Foo2: v2
+  - name: cors
+    enable: true
+`)
+	err := s.CreateResourceFromString(apc)

Review Comment:
   Sure.



-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] navendu-pottekkat commented on a diff in pull request #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

Posted by GitBox <gi...@apache.org>.
navendu-pottekkat commented on code in PR #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139#discussion_r1038308376


##########
docs/en/latest/concepts/annotations.md:
##########
@@ -204,3 +204,56 @@ spec:
             port:
               number: 80
 ```
+
+Use ApisixPluginConfig
+---------
+
+You can use the following annotations to use the `ApisixPluginConfig`.
+
+* `k8s.apisix.apache.org/plugin-conifg-name`

Review Comment:
   @pietrogoddibit2win This page was updated after merging this PR. I think the issue is now resolved: https://github.com/apache/apisix-ingress-controller/blob/master/docs/en/latest/concepts/annotations.md



-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tokers commented on a diff in pull request #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

Posted by GitBox <gi...@apache.org>.
tokers commented on code in PR #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139#discussion_r916384653


##########
docs/en/latest/concepts/annotations.md:
##########
@@ -204,3 +204,54 @@ spec:
             port:
               number: 80
 ```
+
+Use ApisixPluginConfig
+---------
+
+You can use the following annotations to use the `ApisixPluginConfig`.
+
+* `k8s.apisix.apache.org/plugin-conifg-name`
+  
+If this annotations set to `ApisixPluginConfig.metadata.name` the route will enable websoket

Review Comment:
   This sentence is weird, why this route will enable websocket?



##########
docs/en/latest/concepts/annotations.md:
##########
@@ -204,3 +204,54 @@ spec:
             port:
               number: 80
 ```
+
+Use ApisixPluginConfig
+---------
+
+You can use the following annotations to use the `ApisixPluginConfig`.
+
+* `k8s.apisix.apache.org/plugin-conifg-name`
+  
+If this annotations set to `ApisixPluginConfig.metadata.name` the route will enable websoket
+
+For example, the following Ingress, if we set `k8s.apisix.apache.org/plugin-conifg-name: "echo-and-cors-apc"`. `/api/*` route will enable echo-and-cors-apc

Review Comment:
   ```suggestion
   As an example, we attach the annotation `k8s.apisix.apache.org/plugin-conifg-name: "echo-and-cors-apc` for the following Ingress resource, so that `/api/*` route will enable the [echo](https://apisix.apache.org/docs/apisix/plugins/echo/) and [cors](https://apisix.apache.org/docs/apisix/plugins/cors/) plugins.
   ```



-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] dickens7 commented on a diff in pull request #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

Posted by GitBox <gi...@apache.org>.
dickens7 commented on code in PR #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139#discussion_r916425147


##########
docs/en/latest/concepts/annotations.md:
##########
@@ -204,3 +204,54 @@ spec:
             port:
               number: 80
 ```
+
+Use ApisixPluginConfig
+---------
+
+You can use the following annotations to use the `ApisixPluginConfig`.
+
+* `k8s.apisix.apache.org/plugin-conifg-name`
+  
+If this annotations set to `ApisixPluginConfig.metadata.name` the route will enable websoket

Review Comment:
   already edited



##########
docs/en/latest/concepts/annotations.md:
##########
@@ -204,3 +204,54 @@ spec:
             port:
               number: 80
 ```
+
+Use ApisixPluginConfig
+---------
+
+You can use the following annotations to use the `ApisixPluginConfig`.
+
+* `k8s.apisix.apache.org/plugin-conifg-name`
+  
+If this annotations set to `ApisixPluginConfig.metadata.name` the route will enable websoket

Review Comment:
   already edited



-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on pull request #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on PR #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139#issuecomment-1182945074

   re-run lint-checker-ci job.
   The official website may be temporarily unavailable


-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on a diff in pull request #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on code in PR #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139#discussion_r917177394


##########
docs/en/latest/concepts/annotations.md:
##########
@@ -204,3 +204,58 @@ spec:
             port:
               number: 80
 ```
+
+Use ApisixPluginConfig
+---------
+
+You can use the following annotations to use the `ApisixPluginConfig`.
+
+* `k8s.apisix.apache.org/plugin-conifg-name`
+  
+If this annotations set to `ApisixPluginConfig.metadata.name` the route will use `ApisixPluginConfig`
+
+If this comment is set to the `ApisixPluginConfig` resource name, the route will set the corresponding `PluginConfig`
+
+ApisixPluginConfig is a resource under the same Namespace as Ingress

Review Comment:
   @juzhiyuan @navendu-pottekkat  Can you guys help improve this documentation?



-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 merged pull request #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

Posted by GitBox <gi...@apache.org>.
tao12345666333 merged PR #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139


-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] codecov-commenter commented on pull request #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on PR #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139#issuecomment-1178458920

   # [Codecov](https://codecov.io/gh/apache/apisix-ingress-controller/pull/1139?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 [#1139](https://codecov.io/gh/apache/apisix-ingress-controller/pull/1139?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (f5535ee) into [master](https://codecov.io/gh/apache/apisix-ingress-controller/commit/4d172a0306eed6216fd8bf057fd1506053a4a303?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (4d172a0) will **decrease** coverage by `0.15%`.
   > The diff coverage is `100.00%`.
   
   ```diff
   @@            Coverage Diff             @@
   ##           master    #1139      +/-   ##
   ==========================================
   - Coverage   30.38%   30.23%   -0.16%     
   ==========================================
     Files          81       81              
     Lines        9409     9388      -21     
   ==========================================
   - Hits         2859     2838      -21     
     Misses       6235     6235              
     Partials      315      315              
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/apisix-ingress-controller/pull/1139?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
   |---|---|---|
   | [pkg/kube/translation/ingress.go](https://codecov.io/gh/apache/apisix-ingress-controller/pull/1139/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-cGtnL2t1YmUvdHJhbnNsYXRpb24vaW5ncmVzcy5nbw==) | `66.66% <100.00%> (-2.00%)` | :arrow_down: |
   | [pkg/config/config.go](https://codecov.io/gh/apache/apisix-ingress-controller/pull/1139/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-cGtnL2NvbmZpZy9jb25maWcuZ28=) | `66.34% <0.00%> (ø)` | |
   | [pkg/apisix/upstream.go](https://codecov.io/gh/apache/apisix-ingress-controller/pull/1139/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-cGtnL2FwaXNpeC91cHN0cmVhbS5nbw==) | `39.73% <0.00%> (ø)` | |
   | [pkg/apisix/pluginconfig.go](https://codecov.io/gh/apache/apisix-ingress-controller/pull/1139/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-cGtnL2FwaXNpeC9wbHVnaW5jb25maWcuZ28=) | `37.33% <0.00%> (ø)` | |
   | [pkg/ingress/apisix\_route.go](https://codecov.io/gh/apache/apisix-ingress-controller/pull/1139/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-cGtnL2luZ3Jlc3MvYXBpc2l4X3JvdXRlLmdv) | `0.00% <0.00%> (ø)` | |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/apisix-ingress-controller/pull/1139?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/apisix-ingress-controller/pull/1139?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation). Last update [4d172a0...f5535ee](https://codecov.io/gh/apache/apisix-ingress-controller/pull/1139?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation).
   


-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on a diff in pull request #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on code in PR #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139#discussion_r915864397


##########
docs/en/latest/concepts/annotations.md:
##########
@@ -204,3 +204,54 @@ spec:
             port:
               number: 80
 ```
+
+Use ApisixPluginConfig
+---------
+
+You can use the following annotations to use the `ApisixPluginConfig`.
+
+* `k8s.apisix.apache.org/plugin-conifg-name`
+  
+If this annotations set to `ApisixPluginConfig.metadata.name` the route will enable websoket

Review Comment:
   Not websocket 



-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on a diff in pull request #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on code in PR #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139#discussion_r917226929


##########
docs/en/latest/concepts/annotations.md:
##########
@@ -204,3 +204,58 @@ spec:
             port:
               number: 80
 ```
+
+Use ApisixPluginConfig
+---------
+
+You can use the following annotations to use the `ApisixPluginConfig`.
+
+* `k8s.apisix.apache.org/plugin-conifg-name`
+  
+If this annotations set to `ApisixPluginConfig.metadata.name` the route will use `ApisixPluginConfig`
+
+If this comment is set to the `ApisixPluginConfig` resource name, the route will set the corresponding `PluginConfig`
+
+ApisixPluginConfig is a resource under the same Namespace as Ingress

Review Comment:
   okay



-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on a diff in pull request #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on code in PR #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139#discussion_r918505695


##########
test/e2e/suite-annotations/plugin_conifg.go:
##########
@@ -0,0 +1,188 @@
+// 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.
+
+package annotations
+
+import (
+	"fmt"
+	"net/http"
+	"time"
+
+	"github.com/apache/apisix-ingress-controller/test/e2e/scaffold"
+	ginkgo "github.com/onsi/ginkgo/v2"
+	"github.com/stretchr/testify/assert"
+)
+
+func _createAPC(s *scaffold.Scaffold) {
+	apc := fmt.Sprintf(`
+apiVersion: apisix.apache.org/v2beta3
+kind: ApisixPluginConfig
+metadata:
+  name: echo-and-cors-apc
+spec:
+  plugins:
+  - name: echo
+    enable: true
+    config:
+      before_body: "This is the preface"
+      after_body: "This is the epilogue"
+      headers:
+        X-Foo: v1
+        X-Foo2: v2
+  - name: cors
+    enable: true
+`)
+	err := s.CreateResourceFromString(apc)

Review Comment:
   It shouldn't matter here, right?



-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] pietrogoddibit2win commented on a diff in pull request #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

Posted by GitBox <gi...@apache.org>.
pietrogoddibit2win commented on code in PR #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139#discussion_r1038312650


##########
docs/en/latest/concepts/annotations.md:
##########
@@ -204,3 +204,56 @@ spec:
             port:
               number: 80
 ```
+
+Use ApisixPluginConfig
+---------
+
+You can use the following annotations to use the `ApisixPluginConfig`.
+
+* `k8s.apisix.apache.org/plugin-conifg-name`

Review Comment:
   In the official docs page I can still see the error https://apisix.apache.org/docs/ingress-controller/concepts/annotations/



-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on a diff in pull request #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on code in PR #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139#discussion_r917578697


##########
docs/en/latest/concepts/annotations.md:
##########
@@ -204,3 +204,58 @@ spec:
             port:
               number: 80
 ```
+
+Use ApisixPluginConfig
+---------
+
+You can use the following annotations to use the `ApisixPluginConfig`.
+
+* `k8s.apisix.apache.org/plugin-conifg-name`
+  
+If this annotations set to `ApisixPluginConfig.metadata.name` the route will use `ApisixPluginConfig`
+
+If this comment is set to the `ApisixPluginConfig` resource name, the route will set the corresponding `PluginConfig`

Review Comment:
   I think we can remove this line, duplicate content  



-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] dickens7 commented on pull request #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

Posted by GitBox <gi...@apache.org>.
dickens7 commented on PR #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139#issuecomment-1181571748

   Official website document Direct access to this address is abnormal
   
   > https://apisix.apache.org/docs/apisix/plugins/echo/
   
   ```
   apisix.apache.org redirected you too many times.
   ```
   


-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] pietrogoddibit2win commented on a diff in pull request #1139: Add annotations to combine ApisixPluginConfig with k8s ingress resource

Posted by GitBox <gi...@apache.org>.
pietrogoddibit2win commented on code in PR #1139:
URL: https://github.com/apache/apisix-ingress-controller/pull/1139#discussion_r1038293713


##########
docs/en/latest/concepts/annotations.md:
##########
@@ -204,3 +204,56 @@ spec:
             port:
               number: 80
 ```
+
+Use ApisixPluginConfig
+---------
+
+You can use the following annotations to use the `ApisixPluginConfig`.
+
+* `k8s.apisix.apache.org/plugin-conifg-name`

Review Comment:
   there is a typo in annotation name:
   `k8s.apisix.apache.org/plugin-config-name`



-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org