-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rework rabbitmq, add qr code variables, update readme and schema
- Loading branch information
1 parent
29e76e7
commit 6ece306
Showing
21 changed files
with
567 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
config: | ||
matomo: | ||
enabled: true | ||
auth: | ||
apiToken: "a-test-api-tokeen" | ||
baseUrl: "my-matomo.com" | ||
siteId: "SMj6N3zV5eK0Y8dO7TXG41I9LvfDoRl2" | ||
mercure: | ||
enabled: true | ||
auth: | ||
jwtSecret: "a-test-jwt-secret" | ||
publicHubUrl: "my-public-mercure-hub.com" | ||
internalHubUrl: "my-internal-mercure-hub.com" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
rabbitmq: | ||
enabled: true | ||
auth: | ||
password: my-test-password |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{{/* | ||
Define if the RabbitMQ integration is enabled | ||
*/}} | ||
{{- define "shlink-backend.rabbitmq.enabled" -}} | ||
{{- $enabled := "" -}} | ||
{{- if or (.Values.rabbitmq.enabled) (.Values.config.rabbitmq.enabled) -}} | ||
{{- $enabled = "true" -}} | ||
{{- end }} | ||
{{- $enabled -}} | ||
{{- end }} | ||
|
||
{{/* | ||
Get the name of the secret containing the RabbitMQ password | ||
*/}} | ||
{{- define "shlink-backend.rabbitmq.auth.secretName" -}} | ||
{{- $secretName := "" -}} | ||
{{- if .Values.rabbitmq.enabled -}} | ||
{{- $secretName = (include "rabbitmq.secretPasswordName" .Subcharts.rabbitmq) -}} | ||
{{- else if .Values.config.rabbitmq.auth.existingSecret -}} | ||
{{- $secretName = .Values.config.rabbitmq.auth.existingSecret -}} | ||
{{- else -}} | ||
{{- $secretName = printf "%s-rabbitmq" (include "shlink-backend.fullname" .) -}} | ||
{{- end -}} | ||
{{- $secretName -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Define the RabbitMQ username | ||
*/}} | ||
{{- define "shlink-backend.rabbitmq.auth.username" -}} | ||
{{- $username := "" -}} | ||
{{- if .Values.rabbitmq.enabled -}} | ||
{{- $username = .Values.rabbitmq.auth.username -}} | ||
{{- else -}} | ||
{{- $username = .Values.config.rabbitmq.auth.username -}} | ||
{{- end -}} | ||
{{- if not $username -}} | ||
{{- fail "Unable to determine the RabbitMQ username. Use config.rabbitmq.auth.username or activate the integrated RabbitMQ subchart." -}} | ||
{{- end -}} | ||
{{- $username -}} | ||
{{- end }} | ||
|
||
{{/* | ||
Define the RabbitMQ host | ||
*/}} | ||
{{- define "shlink-backend.rabbitmq.host" -}} | ||
{{- $host := "" -}} | ||
{{- if .Values.rabbitmq.enabled -}} | ||
{{- $host = (include "common.names.fullname" .Subcharts.rabbitmq) -}} | ||
{{- else -}} | ||
{{- $host = .Values.config.rabbitmq.host -}} | ||
{{- end -}} | ||
{{- if not $host -}} | ||
{{- fail "Unable to determine the RabbitMQ host. Use config.rabbitmq.host or activate the integrated RabbitMQ subchart." -}} | ||
{{- end -}} | ||
{{- $host -}} | ||
{{- end }} | ||
|
||
{{/* | ||
Define the RabbitMQ port | ||
*/}} | ||
{{- define "shlink-backend.rabbitmq.port" -}} | ||
{{- $port := "" -}} | ||
{{- if .Values.rabbitmq.enabled -}} | ||
{{- if or (.Values.rabbitmq.service.portEnabled) (not .Values.rabbitmq.auth.tls.enabled) }} | ||
{{ $port = .Values.rabbitmq.service.ports.amqp }} | ||
{{- else if .Values.rabbitmq.auth.tls.enabled }} | ||
{{ $port = .Values.rabbitmq.service.ports.amqpTls }} | ||
{{- end }} | ||
{{- else -}} | ||
{{- $port = .Values.config.rabbitmq.port -}} | ||
{{- end -}} | ||
{{- if not $port -}} | ||
{{- fail "Unable to determine the RabbitMQ port. Use config.rabbitmq.port or activate the integrated RabbitMQ subchart." -}} | ||
{{- end -}} | ||
{{- $port -}} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{- if and (not .Values.rabbitmq.enabled) (.Values.config.rabbitmq.auth.existingSecret) -}} | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
labels: | ||
{{- include "shlink-backend.labels" . | nindent 4 }} | ||
name: {{ include "shlink-backend.rabbitmq.auth.secretName" . }} | ||
data: | ||
rabbitmq-password: {{ .Values.config.rabbitmq.auth.password | b64enc }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.