Skip to content

Commit

Permalink
Merge pull request #33 from fe80/fe80/brokerResources
Browse files Browse the repository at this point in the history
add broker.resources
  • Loading branch information
ripienaar authored Dec 27, 2021
2 parents 1a92ba9 + db01348 commit ddab94a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/broker/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
apiVersion: v1
name: broker
version: 0.0.20
version: 0.0.21
appVersion: 0.25.0
description: Choria Network Broker
keywords:
Expand All @@ -14,4 +15,3 @@ maintainers:
email: [email protected]
url: https://choria.io
icon: https://choria.io/img/choria.png

1 change: 1 addition & 0 deletions charts/broker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ broker-2 1/1 Running 0 2m43s 10.2.1.82
|`broker.servicePort`|The port to expose when `broker.createService` is enabled|`4222`|
|`broker.clusterSize`|The number of pods to start in a cluster|`1`|
|`broker.serviceLeafnodePort`|When > 0 and `broker.createService` is true expose the leafnode port on this port|`0`|
|`broker.resources`|Define the containers resources (requests and limits)|`{}`|
|`streaming.enabled`|Enables the Choria Streaming Server|`false`|
|`streaming.storageClassName`|When set enables creating a PVC for Streaming storage|`""`|
|`streaming.pvcName`|The name of the PVC to create|`streaming`|
Expand Down
4 changes: 4 additions & 0 deletions charts/broker/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ spec:
readOnly: false
{{- end }}
{{- end }}
{{- if .Values.broker.resources }}
resources:
{{ toYaml .Values.broker.resources | indent 12 }}
{{- end }}

{{- if .Values.leafnodes }}
{{- range $name, $leaf := .Values.leafnodes }}
Expand Down
3 changes: 3 additions & 0 deletions charts/broker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,6 @@ broker:
# follow the instructions in the aaasvc chart to add the aaasvc-signer-cert
# secret
allowAAAServiceTokenClients: false

# Deifne the broker containers resources
resources: {}

0 comments on commit ddab94a

Please sign in to comment.