Skip to content

Commit

Permalink
fix: creation of flowforge-broker service (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb authored Nov 21, 2024
2 parents 889eb09 + 97d323b commit b3fca45
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions helm/flowforge/templates/broker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ spec:
{{- if .Values.forge.broker.affinity }}
affinity: {{ toYaml .Values.forge.broker.affinity | nindent 8 }}
{{- end }}
{{- end }}
{{- if eq .Values.forge.broker.enabled true -}}
---
apiVersion: v1
kind: Service
Expand All @@ -144,5 +146,11 @@ spec:
protocol: TCP
name: mqtt-ws
selector:
{{- if and ( eq .Values.forge.broker.enabled true) ( eq .Values.forge.broker.teamBroker.enabled false ) -}}
{{- include "forge.brokerSelectorLabels" . | nindent 4 }}
{{- else -}}
apps.emqx.io/db-role: core
apps.emqx.io/instance: emqx
apps.emqx.io/managed-by: emqx-operator
{{- end }}
{{- end -}}

0 comments on commit b3fca45

Please sign in to comment.