Skip to content

Commit

Permalink
[GHA] Update go-monorepo chart
Browse files Browse the repository at this point in the history
  • Loading branch information
krzwiatrzyk committed Aug 13, 2024
1 parent cf695c2 commit 416b878
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/go-monorepo/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
apiVersion: v2
name: go-monorepo
version: 0.0.11
version: 0.0.12
4 changes: 4 additions & 0 deletions charts/go-monorepo/templates/rabbitmq/queue.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{{ if .Values.rabbitmq.enabled }}
{{ if .Values.rabbitmq.queue }}
{{ if .Values.rabbitmq.queue.create }}
apiVersion: rabbitmq.com/v1beta1
kind: Queue
metadata:
Expand All @@ -8,4 +10,6 @@ spec:
rabbitmqClusterReference:
name: {{ .Values.rabbitmq.cluster.name }}
namespace: {{ .Values.rabbitmq.cluster.namespace }}
{{ end }}
{{ end }}
{{ end }}
13 changes: 13 additions & 0 deletions charts/go-monorepo/templates/rabbitmq/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{{ if .Values.rabbitmq.enabled }}
{{ if .Values.rabbitmq.user.create }}
{{ if .Values.rabbitmq.user.username}}
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}
data:
username: {{ .Values.rabbitmq.user.username | b64enc }}
password: {{ .Values.rabbitmq.user.password | b64enc }}
{{ end }}
{{ end }}
{{ end }}
6 changes: 6 additions & 0 deletions charts/go-monorepo/templates/rabbitmq/user.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ if .Values.rabbitmq.enabled }}
{{ if .Values.rabbitmq.user.create }}
apiVersion: rabbitmq.com/v1beta1
kind: User
metadata:
Expand All @@ -7,4 +8,9 @@ spec:
rabbitmqClusterReference:
name: {{ .Values.rabbitmq.cluster.name }}
namespace: {{ .Values.rabbitmq.cluster.namespace }}
{{ if .Values.rabbitmq.user.username }}
importCredentialsSecret:
name: {{ .Release.Name }}
{{ end }}
{{ end }}
{{ end }}
5 changes: 5 additions & 0 deletions charts/go-monorepo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,13 @@ rabbitmq:
vhost:
name: "/"
create: false
user:
create: true
username: ""
password: ""
# queue:
# name:
# create: true
# cluster:
# name:
# namespace:

0 comments on commit 416b878

Please sign in to comment.