diff --git a/charts/ecosystem/templates/_helpers.tpl b/charts/ecosystem/templates/_helpers.tpl index 51450c1..9989fd6 100644 --- a/charts/ecosystem/templates/_helpers.tpl +++ b/charts/ecosystem/templates/_helpers.tpl @@ -65,4 +65,11 @@ */}} {{- define "framework.extra.bundles" -}} {{- print "dev.galasa.cps.etcd,dev.galasa.ras.couchdb,dev.galasa.events.kafka" }} +{{- end -}}s + +{{/* + Returns the maximum message size in bytes allowed for a single gRPC frame as an integer value. +*/}} +{{- define "max.grpc.message.size" -}} + {{- empty .Values.maxgRPCMessageSize | ternary ("4194304") (.Values.maxgRPCMessageSize) }} {{- end -}} diff --git a/charts/ecosystem/templates/api.yaml b/charts/ecosystem/templates/api.yaml index e24e504..6644664 100644 --- a/charts/ecosystem/templates/api.yaml +++ b/charts/ecosystem/templates/api.yaml @@ -153,6 +153,8 @@ spec: key: GALASA_EVENT_STREAMS_TOKEN - name: GALASA_ENCRYPTION_KEYS_PATH value: {{ include "ecosystem.encryption.keys.path" . }} + - name: MAX_GRPC_MESSAGE_SIZE + value: {{ include "max.grpc.message.size" . }} ports: - containerPort: 9010 name: metrics diff --git a/charts/ecosystem/templates/custom-resource-monitor.yaml b/charts/ecosystem/templates/custom-resource-monitor.yaml index 4b9c061..71be6bc 100644 --- a/charts/ecosystem/templates/custom-resource-monitor.yaml +++ b/charts/ecosystem/templates/custom-resource-monitor.yaml @@ -77,6 +77,8 @@ spec: value: "{{ join "," .Values.cleanupMonitor.includes }}" - name: GALASA_MONITOR_EXCLUDES_GLOB_PATTERNS value: "{{ join "," .Values.cleanupMonitor.excludes }}" + - name: MAX_GRPC_MESSAGE_SIZE + value: {{ include "max.grpc.message.size" . }} ports: - containerPort: 9010 name: metrics diff --git a/charts/ecosystem/templates/engine-controller.yaml b/charts/ecosystem/templates/engine-controller.yaml index 224dc02..e8f4e71 100644 --- a/charts/ecosystem/templates/engine-controller.yaml +++ b/charts/ecosystem/templates/engine-controller.yaml @@ -120,6 +120,8 @@ spec: key: GALASA_EVENT_STREAMS_TOKEN - name: GALASA_ENCRYPTION_KEYS_PATH value: {{ include "ecosystem.encryption.keys.path" . }} + - name: MAX_GRPC_MESSAGE_SIZE + value: {{ include "max.grpc.message.size" . }} ports: - containerPort: 9010 name: metrics diff --git a/charts/ecosystem/templates/metrics.yaml b/charts/ecosystem/templates/metrics.yaml index 55ff74e..6aceefa 100644 --- a/charts/ecosystem/templates/metrics.yaml +++ b/charts/ecosystem/templates/metrics.yaml @@ -100,6 +100,8 @@ spec: secretKeyRef: name: {{ .Release.Name }}-couchdb-secret key: GALASA_RAS_TOKEN + - name: MAX_GRPC_MESSAGE_SIZE + value: {{ include "max.grpc.message.size" . }} ports: - containerPort: 9010 name: metrics diff --git a/charts/ecosystem/templates/resource-monitor.yaml b/charts/ecosystem/templates/resource-monitor.yaml index 4c90ec3..2d935a6 100644 --- a/charts/ecosystem/templates/resource-monitor.yaml +++ b/charts/ecosystem/templates/resource-monitor.yaml @@ -108,6 +108,8 @@ spec: value: "{{ join "," .Values.resourceMonitor.includes }}" - name: GALASA_MONITOR_EXCLUDES_GLOB_PATTERNS value: "{{ join "," .Values.resourceMonitor.excludes }}" + - name: MAX_GRPC_MESSAGE_SIZE + value: {{ include "max.grpc.message.size" . }} ports: - containerPort: 9010 name: metrics diff --git a/charts/ecosystem/values.yaml b/charts/ecosystem/values.yaml index 3437530..d1a0e33 100644 --- a/charts/ecosystem/values.yaml +++ b/charts/ecosystem/values.yaml @@ -561,4 +561,17 @@ resourceMonitor: requests: memory: "300Mi" limits: - memory: "500Mi" \ No newline at end of file + memory: "500Mi" +# +# +# +# Optional. Sets the maximum message size in bytes allowed for a single gRPC frame. +# This will be used by the KVClient that is set up to interact with the etcd3 cluster. +# +# The default value for this is 4194304. +# +# The maximum value this can be set to is 2147483647. +# +# Example value: "4194304" +# +maxgRPCMessageSize: "" \ No newline at end of file