helm(minor): remove rabbitmq

This commit is contained in:
Langhammer, Jens 2019-10-01 10:48:55 +02:00
parent f4499a5459
commit 84768c0ec6
12 changed files with 29 additions and 145 deletions

9
helm/passbook/Chart.lock Normal file
View file

@ -0,0 +1,9 @@
dependencies:
- name: postgresql
repository: https://kubernetes-charts.storage.googleapis.com/
version: 6.3.10
- name: redis
repository: https://kubernetes-charts.storage.googleapis.com/
version: 9.2.1
digest: sha256:bdde250e1401dccdd5161e39c807f9e88b05e3e8e72e74df767a1bbb5fc39a4a
generated: "2019-10-01T10:46:06.542706+02:00"

View file

@ -1 +0,0 @@
# passbook

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1,98 +0,0 @@
---
categories:
- Authentication
- SSO
questions:
- default: "true"
variable: config.error_reporting
type: boolean
description: "Enable error-reporting to sentry.services.beryju.org"
group: "passbook Configuration"
label: "Error Reporting"
####################################################################
### PostgreSQL
####################################################################
- variable: postgresql.enabled
default: true
description: "Deploy a database server as part of this deployment, or set to false and configure an external database connection."
type: boolean
required: true
label: Install PostgreSQL
show_subquestion_if: true
group: "Database Settings"
subquestions:
- variable: postgresql.postgresqlDatabase
default: "passbook"
description: "Database name to create"
type: string
label: PostgreSQL Database
- variable: postgresql.postgresqlUsername
default: "passbook"
description: "Database user to create"
type: string
label: PostgreSQL User
- variable: postgresql.postgresqlPassword
default: ""
description: "password will be auto-generated if not specified"
type: password
label: PostgreSQL Password
- variable: externalDatabase.host
default: ""
description: "Host of the external database"
type: string
label: External Database Host
show_if: "postgresql.enabled=false"
group: "Database Settings"
- variable: externalDatabase.user
default: ""
description: "Existing username in the external DB"
type: string
label: External Database username
show_if: "postgresql.enabled=false"
group: "Database Settings"
- variable: externalDatabase.password
default: ""
description: "External database password"
type: password
label: External Database password
show_if: "postgresql.enabled=false"
group: "Database Settings"
- variable: externalDatabase.database
default: ""
description: "Name of the existing database"
type: string
label: External Database
show_if: "postgresql.enabled=false"
group: "Database Settings"
- variable: externalDatabase.port
default: "3306"
description: "External database port number"
type: string
label: External Database Port
show_if: "postgresql.enabled=false"
group: "Database Settings"
- variable: postgresql.persistence.enabled
default: false
description: "Enable persistent volume for PostgreSQL"
type: boolean
required: true
label: PostgreSQL Persistent Volume Enabled
show_if: "postgresql.enabled=true"
show_subquestion_if: true
group: "Database Settings"
subquestions:
- variable: postgresql.master.persistence.size
default: "8Gi"
description: "PostgreSQL Persistent Volume Size"
type: string
label: PostgreSQL Volume Size
- variable: postgresql.master.persistence.storageClass
default: ""
description: "If undefined or null, uses the default StorageClass. Default to null"
type: storageclass
label: Default StorageClass for PostgreSQL
- variable: postgresql.master.persistence.existingClaim
default: ""
description: "If not empty, uses the specified existing PVC instead of creating new one"
type: string
label: Existing Persistent Volume Claim for PostgreSQL

View file

@ -1,10 +1,7 @@
dependencies: dependencies:
- name: rabbitmq
version: 4.3.2
repository: https://kubernetes-charts.storage.googleapis.com/
- name: postgresql - name: postgresql
version: 3.10.1 version: 6.3.10
repository: https://kubernetes-charts.storage.googleapis.com/ repository: https://kubernetes-charts.storage.googleapis.com/
- name: redis - name: redis
version: 5.1.0 version: 9.2.1
repository: https://kubernetes-charts.storage.googleapis.com/ repository: https://kubernetes-charts.storage.googleapis.com/

View file

@ -4,41 +4,18 @@ metadata:
name: {{ include "passbook.fullname" . }}-config name: {{ include "passbook.fullname" . }}-config
data: data:
config.yml: | config.yml: |
# Env for Docker images postgresql:
databases: host: "{{ .Release.Name }}-postgresql"
default: name: "{{ .Values.postgresql.postgresqlDatabase }}"
engine: django.db.backends.postgresql user: postgres
name: {{ .Values.postgresql.postgresqlDatabase }} password: "{{ .Values.postgresql.postgresqlPassword }}"
user: postgres redis:
password: {{ .Values.postgresql.postgresqlPassword }} host: "{{ .Release.Name }}-redis-master"
host: {{ .Release.Name }}-postgresql password: "{{ .Values.redis.password }}"
port: '' cache_db: 0
log: message_queue_db: 1
level:
console: WARNING # Error reporting, sends stacktrace to sentry.beryju.org
file: WARNING
file: /dev/null
syslog:
host: 127.0.0.1
port: 514
email:
host: {{ .Values.config.email.host }}
port: 25
user: ''
password: ''
use_tls: false
use_ssl: false
from: passbook <passbook@domain.tld>
web:
listen: 0.0.0.0
port: 8000
threads: 30
debug: false
secure_proxy_header:
HTTP_X_FORWARDED_PROTO: https
rabbitmq: "user:{{ .Values.rabbitmq.rabbitmq.password }}@{{ .Release.Name }}-rabbitmq"
redis: ":{{ .Values.redis.password }}@{{ .Release.Name }}-redis-master/0"
# Error reporting, sends stacktrace to sentry.services.beryju.org
error_report_enabled: {{ .Values.config.error_reporting }} error_report_enabled: {{ .Values.config.error_reporting }}
{{- if .Values.config.secret_key }} {{- if .Values.config.secret_key }}
@ -49,10 +26,10 @@ data:
primary_domain: {{ .Values.primary_domain }} primary_domain: {{ .Values.primary_domain }}
domains: domains:
{{- range .Values.ingress.hosts }} {{- range .Values.ingress.hosts }}
- {{ . | quote }} - {{ . | quote }}
{{- end }} {{- end }}
- kubernetes-healthcheck-host - kubernetes-healthcheck-host
passbook: passbook:
sign_up: sign_up:

View file

@ -1,6 +1,6 @@
"""passbook core config loader""" """passbook core config loader"""
import os import os
from collections import Mapping from collections.abc import Mapping
from contextlib import contextmanager from contextlib import contextmanager
from glob import glob from glob import glob
from typing import Any from typing import Any

View file

@ -17,7 +17,7 @@ debug: false
error_report_enabled: true error_report_enabled: true
domains: domains:
- passbook.local - passbook.local
primary_domain: 'localhost' primary_domain: 'localhost'
passbook: passbook: