Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions charts/ecosystem/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
2 changes: 2 additions & 0 deletions charts/ecosystem/templates/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions charts/ecosystem/templates/custom-resource-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions charts/ecosystem/templates/engine-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions charts/ecosystem/templates/metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions charts/ecosystem/templates/resource-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 14 additions & 1 deletion charts/ecosystem/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -561,4 +561,17 @@ resourceMonitor:
requests:
memory: "300Mi"
limits:
memory: "500Mi"
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: ""