From 7c60602fa16a21f83e16006a600b5b6eeee0b4f6 Mon Sep 17 00:00:00 2001 From: Travis Raines <571832+rainest@users.noreply.github.com> Date: Tue, 16 Jul 2024 15:59:54 -0700 Subject: [PATCH] feat(templates) support namespaced KongConsumers --- app/_includes/md/kic/consumer.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/_includes/md/kic/consumer.md b/app/_includes/md/kic/consumer.md index ef2882c465ac..55c48954d005 100644 --- a/app/_includes/md/kic/consumer.md +++ b/app/_includes/md/kic/consumer.md @@ -1,5 +1,6 @@ {% comment %}This file is intentionally indented as it's included in an
    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 @@ -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