Skip to content

Commit

Permalink
wip: use the proper annotation syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
rainest committed Jul 1, 2024
1 parent 0407873 commit 84b8d07
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ namespace) to interact with KongPlugins in the ReferenceGrant's namespace
With the ReferenceGrant in place, Luka can create the `rate-limiting`

Check failure on line 226 in app/_src/kubernetes-ingress-controller/plugins/cross-namespace.md

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [kong.Spelling] Did you really mean 'Luka'? Raw Output: {"message": "[kong.Spelling] Did you really mean 'Luka'?", "location": {"path": "app/_src/kubernetes-ingress-controller/plugins/cross-namespace.md", "range": {"start": {"line": 226, "column": 35}}}, "severity": "ERROR"}
KongPlugins:

```
```bash
echo '
---
apiVersion: configuration.konghq.com/v1
Expand Down Expand Up @@ -295,11 +295,13 @@ kongplugin.configuration.konghq.com/rate-limit-rustem created
With the plugins in place, each namespace administrator can attach them to the
resources in their respective namespaces.

Kim attaches the plugins to the KongConsumers in `qyzylorda`:
Kim attaches the plugins to the KongConsumers in `qyzylorda`. They use the
`<namespace>:<kongplugin-resource-name>` format in the plugin name to indicate
that the requested KongPlugin resides in another namespace:

```bash
kubectl annotate kongconsumer aygerim -n qyzylorda konghq.com/plugins=rate-limit-aygerim
kubectl annotate kongconsumer rustem -n qyzylorda konghq.com/plugins=rate-limit-rustem
kubectl annotate kongconsumer aygerim -n qyzylorda konghq.com/plugins=kualalumpur:rate-limit-aygerim
kubectl annotate kongconsumer rustem -n qyzylorda konghq.com/plugins=kualalumpur:rate-limit-rustem
```

The result should look like:
Expand All @@ -312,7 +314,7 @@ kongconsumer.configuration.konghq.com/rustem annotated
Luka attaches the plugins to the `httpbin` Service in `kualalumpur`:

Check failure on line 314 in app/_src/kubernetes-ingress-controller/plugins/cross-namespace.md

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [kong.Spelling] Did you really mean 'Luka'? Raw Output: {"message": "[kong.Spelling] Did you really mean 'Luka'?", "location": {"path": "app/_src/kubernetes-ingress-controller/plugins/cross-namespace.md", "range": {"start": {"line": 314, "column": 1}}}, "severity": "ERROR"}

```bash
kubectl annotate service httpbin -n kualalumpur konghq.com/plugins=httpbin-basic-auth,rate-limit-aygerim,rate-limit-rustem
kubectl annotate service httpbin --overwrite -n kualalumpur konghq.com/plugins=httpbin-basic-auth,rate-limit-aygerim,rate-limit-rustem
```

Note that this command overrides the entire plugin annotation, so it needs to
Expand Down

0 comments on commit 84b8d07

Please sign in to comment.