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 e09723b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/_includes/md/kic/consumer.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{% 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
kind: KongConsumer
metadata:
name: {{ name }}
{% if namespace -%}
namespace: {{ namespace }}
{% endif -%}
annotations:
kubernetes.io/ingress.class: kong
username: {{ name }}
Expand Down

0 comments on commit e09723b

Please sign in to comment.