Merge branch 'master' of gitlab.com:ananace/charts

This commit is contained in:
Alexander Olofsson 2023-03-13 10:46:03 +01:00
commit 41df74c2e8
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
8 changed files with 35 additions and 14 deletions

View file

@ -31,8 +31,8 @@ pages:
- sleep 10 - sleep 10
- mkdir -p public - mkdir -p public
- "echo \"User-Agent: *\nDisallow: /\" > ./public/robots.txt" - "echo \"User-Agent: *\nDisallow: /\" > ./public/robots.txt"
- curl --user gitlab-ci-token:$CI_JOB_TOKEN "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/${CHANNEL}/index.yaml" -o public/index.yaml - curl --user gitlab-ci-token:$CI_JOB_TOKEN "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/${CHANNEL}/index.yaml" -o repo-index.yaml
- sed -e "s|- charts/|- ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/${CHANNEL}/charts/|" -i public/index.yaml - sed -e "s|- charts/|- ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/${CHANNEL}/charts/|" repo-index.yaml > ./public/index.yaml
artifacts: artifacts:
paths: paths:
- public - public

View file

@ -1,4 +1,7 @@
** Note, this chart may take a while to finish setup, please be patient ** ** Note, this chart may take a while to finish setup, please be patient **
{{- if .Values.signingkey.job.enabled }}
** Also, remember to disable the signingkey job (signingkey.job.enabled=false) **
{{- end }}
{{- if not .Values.ingress.enabled }} {{- if not .Values.ingress.enabled }}
Synapse has been installed without an ingress, you will need to manage Synapse has been installed without an ingress, you will need to manage

View file

@ -150,10 +150,7 @@ Set postgresql username
*/}} */}}
{{- define "matrix-synapse.postgresql.username" -}} {{- define "matrix-synapse.postgresql.username" -}}
{{- if .Values.postgresql.enabled -}} {{- if .Values.postgresql.enabled -}}
{{- if .Values.postgresql.postgresqlUsername -}} {{ required "A valid postgresql.auth.username is required" .Values.postgresql.auth.username }}
{{- fail "You need to switch to the new postgresql.auth values." -}}
{{- end -}}
{{- .Values.postgresql.auth.username | default "postgres" }}
{{- else -}} {{- else -}}
{{ required "A valid externalPostgresql.username is required" .Values.externalPostgresql.username }} {{ required "A valid externalPostgresql.username is required" .Values.externalPostgresql.username }}
{{- end -}} {{- end -}}
@ -164,10 +161,7 @@ Set postgresql password
*/}} */}}
{{- define "matrix-synapse.postgresql.password" -}} {{- define "matrix-synapse.postgresql.password" -}}
{{- if .Values.postgresql.enabled -}} {{- if .Values.postgresql.enabled -}}
{{- if .Values.postgresql.postgresqlPassword -}} {{ required "A valid postgresql.auth.password is required" .Values.postgresql.auth.password }}
{{- fail "You need to switch to the new postgresql.auth values." -}}
{{- end -}}
{{- .Values.postgresql.auth.password | default "synapse" }}
{{- else if not (and .Values.externalPostgresql.existingSecret .Values.externalPostgresql.existingSecretPasswordKey) -}} {{- else if not (and .Values.externalPostgresql.existingSecret .Values.externalPostgresql.existingSecretPasswordKey) -}}
{{ required "A valid externalPostgresql.password is required" .Values.externalPostgresql.password }} {{ required "A valid externalPostgresql.password is required" .Values.externalPostgresql.password }}
{{- end -}} {{- end -}}
@ -262,9 +256,9 @@ Set redis port
Set redis password Set redis password
*/}} */}}
{{- define "matrix-synapse.redis.password" -}} {{- define "matrix-synapse.redis.password" -}}
{{- if .Values.redis.password -}} {{- if (and .Values.redis.enabled .Values.redis.password) -}}
{{ .Values.redis.password }} {{ .Values.redis.password }}
{{- else if .Values.redis.auth.password -}} {{- else if (and .Values.redis.enabled .Values.redis.auth.password) -}}
{{ .Values.redis.auth.password }} {{ .Values.redis.auth.password }}
{{- else if .Values.externalRedis.password -}} {{- else if .Values.externalRedis.password -}}
{{ .Values.externalRedis.password }} {{ .Values.externalRedis.password }}

View file

@ -5,5 +5,7 @@ metadata:
name: {{ include "matrix-synapse.fullname" . }}-scripts name: {{ include "matrix-synapse.fullname" . }}-scripts
labels: labels:
{{- include "matrix-synapse.labels" . | nindent 4 }} {{- include "matrix-synapse.labels" . | nindent 4 }}
annotations:
helm.sh/hook: pre-install
data: data:
{{ (.Files.Glob "scripts/*.sh").AsConfig | indent 2 }} {{ (.Files.Glob "scripts/*.sh").AsConfig | indent 2 }}

View file

@ -51,7 +51,12 @@ data:
x_forwarded: true x_forwarded: true
resources: resources:
- names: [client,federation] - names:
- client
- federation
{{- with .Values.config.extraMainListenerTypes -}}
{{ . | toYaml | nindent 14 }}
{{- end }}
compress: false compress: false
- port: 9090 - port: 9090

View file

@ -95,6 +95,7 @@ apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
annotations: annotations:
helm.sh/hook: pre-install
helm.sh/resource-policy: keep helm.sh/resource-policy: keep
name: {{ $name }} name: {{ $name }}
labels: labels:

View file

@ -12,6 +12,9 @@ metadata:
labels: labels:
{{- include "matrix-synapse.labels" . | nindent 4 }} {{- include "matrix-synapse.labels" . | nindent 4 }}
app.kubernetes.io/component: signingkey-job app.kubernetes.io/component: signingkey-job
annotations:
helm.sh/hook: pre-install
helm.sh/hook-delete-policy: hook-succeeded
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: Role kind: Role
@ -20,6 +23,9 @@ metadata:
labels: labels:
{{- include "matrix-synapse.labels" . | nindent 4 }} {{- include "matrix-synapse.labels" . | nindent 4 }}
app.kubernetes.io/component: signingkey-job app.kubernetes.io/component: signingkey-job
annotations:
helm.sh/hook: pre-install
helm.sh/hook-delete-policy: hook-succeeded
rules: rules:
- apiGroups: - apiGroups:
- "" - ""
@ -39,6 +45,9 @@ metadata:
labels: labels:
{{- include "matrix-synapse.labels" . | nindent 4 }} {{- include "matrix-synapse.labels" . | nindent 4 }}
app.kubernetes.io/component: signingkey-job app.kubernetes.io/component: signingkey-job
annotations:
helm.sh/hook: pre-install
helm.sh/hook-delete-policy: hook-succeeded
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: Role kind: Role
@ -55,8 +64,10 @@ metadata:
labels: labels:
{{- include "matrix-synapse.labels" . | nindent 4 }} {{- include "matrix-synapse.labels" . | nindent 4 }}
app.kubernetes.io/component: signingkey-job app.kubernetes.io/component: signingkey-job
{{- with .Values.signingkey.job.annotations }}
annotations: annotations:
helm.sh/hook: pre-install
helm.sh/hook-delete-policy: hook-succeeded
{{- with .Values.signingkey.job.annotations }}
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
spec: spec:

View file

@ -135,6 +135,11 @@ config:
# bind_addresses: ['::'] # bind_addresses: ['::']
# type: manhole # type: manhole
## Extra listener types to add onto the main listener.
##
extraMainListenerTypes: []
# - consent
## Specify arbitrary Synapse configuration here; ## Specify arbitrary Synapse configuration here;
## Ref: https://github.com/matrix-org/synapse/blob/develop/docs/sample_config.yaml ## Ref: https://github.com/matrix-org/synapse/blob/develop/docs/sample_config.yaml
## ##