From ebc49ef6f87875660c9be60bdc12bb9a2c138603 Mon Sep 17 00:00:00 2001 From: Michele Sciabarra Date: Sun, 11 Oct 2020 13:11:32 +0200 Subject: [PATCH] pametrize quota kafka --- helm/openwhisk/templates/kafka-pod.yaml | 8 ++++++++ helm/openwhisk/values.yaml | 3 +++ 2 files changed, 11 insertions(+) diff --git a/helm/openwhisk/templates/kafka-pod.yaml b/helm/openwhisk/templates/kafka-pod.yaml index f49d30f4..102e94e5 100644 --- a/helm/openwhisk/templates/kafka-pod.yaml +++ b/helm/openwhisk/templates/kafka-pod.yaml @@ -88,6 +88,14 @@ spec: value: "EXTERNAL://_{HOSTNAME_COMMAND}:{{ .Values.kafka.port }}" - name: "KAFKA_INTER_BROKER_LISTENER_NAME" value: "EXTERNAL" +{{- if .Values.kafka.quota.producer }} + - name: "KAFKA_QUOTA_PRODUCER" + value: "{{.Values.kafka.quota.producer}}" +{{- end}} +{{- if .Values.kafka.quota.consumer }} + - name: "KAFKA_QUOTA_CONSUMER" + value: "{{.Values.kafka.quota.consumer}}" +{{- end}} # zookeeper info - name: "KAFKA_ZOOKEEPER_CONNECT" diff --git a/helm/openwhisk/values.yaml b/helm/openwhisk/values.yaml index 2d74e82c..32ed5041 100644 --- a/helm/openwhisk/values.yaml +++ b/helm/openwhisk/values.yaml @@ -100,6 +100,9 @@ whisk: # Kafka configuration. For all sub-fields a value of "" means use the default from application.conf kafka: replicationFactor: "" + quota: + consumer: "" + producer: "" topics: cacheInvalidation: segmentBytes: ""