Skip to content

Commit

Permalink
feat(templates) support namespaced KongConsumers
Browse files Browse the repository at this point in the history
  • Loading branch information
rainest committed Jul 16, 2024
1 parent 84b8d07 commit 7c60602
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/_includes/md/kic/consumer.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% comment %}This file is intentionally indented as it's included in an <ol> on multiple pages{% endcomment %}
{% assign name = include.name | default: 'kotenok' %}
{%- assign namespace = include.namespace %}
{%- assign credName = include.credName %}
```bash
echo "apiVersion: configuration.konghq.com/v1
Expand All @@ -12,7 +13,7 @@
{% if credName -%}
credentials:
- {{ credName }}
{% endif -%}" | kubectl apply -f -
{% endif -%}" | kubectl apply {% if namespace %}-n {{ namespace }} {% endif %} -f -
```
The results should look like this:
```text
Expand Down

0 comments on commit 7c60602

Please sign in to comment.