Compare commits
6 Commits
matrix-hoo
...
outline-0.
Author | SHA1 | Date | |
---|---|---|---|
725e83af07 | |||
|
d58fbbd819 | ||
bab4c95580 | |||
536b133850 | |||
ead44d21f7 | |||
ff7fb92c19 |
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: home-assistant
|
name: home-assistant
|
||||||
version: 0.1.4
|
version: 0.1.5
|
||||||
description: Chart for Home Assistant
|
description: Chart for Home Assistant
|
||||||
keywords:
|
keywords:
|
||||||
- home-automation
|
- home-automation
|
||||||
@@ -9,4 +9,4 @@ sources:
|
|||||||
maintainers:
|
maintainers:
|
||||||
- name: alexlebens
|
- name: alexlebens
|
||||||
icon: https://avatars.githubusercontent.com/u/13844975?s=200&v=4
|
icon: https://avatars.githubusercontent.com/u/13844975?s=200&v=4
|
||||||
appVersion: v2024.3.3
|
appVersion: v2024.4.0
|
||||||
|
@@ -3,7 +3,7 @@ deployment:
|
|||||||
strategy: Recreate
|
strategy: Recreate
|
||||||
image:
|
image:
|
||||||
repository: homeassistant/home-assistant
|
repository: homeassistant/home-assistant
|
||||||
tag: 2024.3.3
|
tag: 2024.4.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
env:
|
env:
|
||||||
TZ: UTC
|
TZ: UTC
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: matrix-hookshot
|
name: matrix-hookshot
|
||||||
version: 0.0.6
|
version: 0.1.0
|
||||||
description: Chart for Matrix Hookshot
|
description: Chart for Matrix Hookshot
|
||||||
keywords:
|
keywords:
|
||||||
- matrix
|
- matrix
|
||||||
|
@@ -30,3 +30,14 @@ Helper for passkey secret name
|
|||||||
{{- printf "matrix-hookshot-passkey-secret" }}
|
{{- printf "matrix-hookshot-passkey-secret" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Helper for passkey file name
|
||||||
|
*/}}
|
||||||
|
{{- define "hookshot.passFile" -}}
|
||||||
|
{{- if .Values.hookshot.config.passFile }}
|
||||||
|
{{- printf "%s" .Values.hookshot.config.passFile -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "passkey.pem" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
@@ -24,7 +24,7 @@ spec:
|
|||||||
app.kubernetes.io/name: matrix-hookshot
|
app.kubernetes.io/name: matrix-hookshot
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: {{ .Release.Name }}
|
serviceAccountName: matrix-hookshot
|
||||||
automountServiceAccountToken: true
|
automountServiceAccountToken: true
|
||||||
containers:
|
containers:
|
||||||
- name: matrix-hookshot
|
- name: matrix-hookshot
|
||||||
@@ -40,6 +40,9 @@ spec:
|
|||||||
- name: appservice
|
- name: appservice
|
||||||
containerPort: {{ .Values.service.appservice.port }}
|
containerPort: {{ .Values.service.appservice.port }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
- name: widgets
|
||||||
|
containerPort: {{ .Values.service.widgets.port }}
|
||||||
|
protocol: TCP
|
||||||
env:
|
env:
|
||||||
{{- range $k,$v := .Values.deployment.env }}
|
{{- range $k,$v := .Values.deployment.env }}
|
||||||
- name: {{ $k }}
|
- name: {{ $k }}
|
||||||
@@ -61,8 +64,8 @@ spec:
|
|||||||
subPath: registration.yml
|
subPath: registration.yml
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: passkey
|
- name: passkey
|
||||||
mountPath: "/data/{{ .Values.hookshot.config.passFile }}"
|
mountPath: "/data/{{ template "hookshot.passFile" . }}"
|
||||||
subPath: "{{ .Values.hookshot.config.passFile }}"
|
subPath: {{ template "hookshot.passFile" . }}
|
||||||
readOnly: true
|
readOnly: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
|
@@ -64,3 +64,37 @@ spec:
|
|||||||
port:
|
port:
|
||||||
name: appservice
|
name: appservice
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
---
|
||||||
|
{{- if .Values.ingress.widgets.enabled }}
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: matrix-hookshot-widgets
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: matrix-hookshot-widgets
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/component: web
|
||||||
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.ingress.widgets.annotations | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
ingressClassName: {{ .Values.ingress.widgets.className }}
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- {{ .Values.ingress.widgets.host }}
|
||||||
|
secretName: {{ .Release.Name }}-widgets-secret-tls
|
||||||
|
rules:
|
||||||
|
- host: {{ .Values.ingress.widgets.host }}
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: {{ .Release.Name }}
|
||||||
|
port:
|
||||||
|
name: widgets
|
||||||
|
{{- end }}
|
||||||
|
@@ -24,6 +24,10 @@ spec:
|
|||||||
targetPort: appservice
|
targetPort: appservice
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: appservice
|
name: appservice
|
||||||
|
- port: {{ .Values.service.widgets.port }}
|
||||||
|
targetPort: widgets
|
||||||
|
protocol: TCP
|
||||||
|
name: widgets
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: matrix-hookshot
|
app.kubernetes.io/name: matrix-hookshot
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
@@ -3,7 +3,7 @@ deployment:
|
|||||||
strategy: Recreate
|
strategy: Recreate
|
||||||
image:
|
image:
|
||||||
repository: halfshot/matrix-hookshot
|
repository: halfshot/matrix-hookshot
|
||||||
tag: "4.5.1"
|
tag: "5.2.1"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
env: {}
|
env: {}
|
||||||
envFrom: []
|
envFrom: []
|
||||||
@@ -22,6 +22,8 @@ service:
|
|||||||
port: 9001
|
port: 9001
|
||||||
appservice:
|
appservice:
|
||||||
port: 9002
|
port: 9002
|
||||||
|
widgets:
|
||||||
|
port: 9003
|
||||||
ingress:
|
ingress:
|
||||||
webhook:
|
webhook:
|
||||||
enabled: false
|
enabled: false
|
||||||
@@ -33,6 +35,11 @@ ingress:
|
|||||||
className: ""
|
className: ""
|
||||||
annotations: {}
|
annotations: {}
|
||||||
host: ""
|
host: ""
|
||||||
|
widgets:
|
||||||
|
enabled: false
|
||||||
|
className: ""
|
||||||
|
annotations: {}
|
||||||
|
host: ""
|
||||||
metrics:
|
metrics:
|
||||||
enabled: false
|
enabled: false
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
@@ -69,7 +76,7 @@ hookshot:
|
|||||||
resources:
|
resources:
|
||||||
- metrics
|
- metrics
|
||||||
- provisioning
|
- provisioning
|
||||||
- port: 9002
|
- port: 9003
|
||||||
bindAddress: 0.0.0.0
|
bindAddress: 0.0.0.0
|
||||||
resources:
|
resources:
|
||||||
- widgets
|
- widgets
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: outline
|
name: outline
|
||||||
version: 0.0.9
|
version: 0.1.0
|
||||||
description: Chart for Outline wiki
|
description: Chart for Outline wiki
|
||||||
keywords:
|
keywords:
|
||||||
- wiki
|
- wiki
|
||||||
|
@@ -51,16 +51,16 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: "{{ .Values.outline.utilsSecret.existingSecretName }}"
|
name: "{{ .Values.outline.utilsSecret.existingSecretName }}"
|
||||||
key: "{{ .Values.outline.secretKey.existingSecretKey }}"
|
key: "{{ .Values.outline.secretKey.existingSecretKey }}"
|
||||||
|
- name: POSTGRES_USERNAME
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: "{{ .Values.outline.database.usernameSecret.existingSecretName }}"
|
||||||
|
key: "{{ .Values.outline.database.usernameSecret.existingSecretKey }}"
|
||||||
- name: POSTGRES_PASSWORD
|
- name: POSTGRES_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: "{{ .Values.outline.database.passwordSecret.existingSecretName }}"
|
name: "{{ .Values.outline.database.passwordSecret.existingSecretName }}"
|
||||||
key: "{{ .Values.outline.database.passwordSecret.existingSecretKey }}"
|
key: "{{ .Values.outline.database.passwordSecret.existingSecretKey }}"
|
||||||
- name: POSTGRES_USERNAME
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: "{{ .Values.outline.database.usernameSecret.existingSecretName }}"
|
|
||||||
key: "{{ .Values.outline.database.usernameSecret.existingSecretKey }}"
|
|
||||||
- name: POSTGRES_DATABASE_NAME
|
- name: POSTGRES_DATABASE_NAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
@@ -71,10 +71,15 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: "{{ .Values.outline.database.databaseHost.existingSecretName }}"
|
name: "{{ .Values.outline.database.databaseHost.existingSecretName }}"
|
||||||
key: "{{ .Values.outline.database.databaseHost.existingSecretKey }}"
|
key: "{{ .Values.outline.database.databaseHost.existingSecretKey }}"
|
||||||
|
- name: POSTGRES_DATABASE_PORT
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: "{{ .Values.outline.database.databasePort.existingSecretName }}"
|
||||||
|
key: "{{ .Values.outline.database.databasePort.existingSecretKey }}"
|
||||||
- name: DATABASE_URL
|
- name: DATABASE_URL
|
||||||
value: "postgres://$(POSTGRES_USERNAME):$(POSTGRES_PASSWORD)@postgresql-{{ .Release.Name }}-cluster-rw:5432/$(POSTGRES_DATABASE_NAME)"
|
value: "postgres://$(POSTGRES_USERNAME):$(POSTGRES_PASSWORD)@$(POSTGRES_DATABASE_HOST):$(POSTGRES_DATABASE_PORT)/$(POSTGRES_DATABASE_NAME)"
|
||||||
- name: DATABASE_URL_TEST
|
- name: DATABASE_URL_TEST
|
||||||
value: "postgres://$(POSTGRES_USERNAME):$(POSTGRES_PASSWORD)@postgresql-{{ .Release.Name }}-cluster-rw:5432/$(POSTGRES_DATABASE_NAME)-test"
|
value: "postgres://$(POSTGRES_USERNAME):$(POSTGRES_PASSWORD)@$(POSTGRES_DATABASE_HOST):$(POSTGRES_DATABASE_PORT)/$(POSTGRES_DATABASE_NAME)-test"
|
||||||
- name: DATABASE_CONNECTION_POOL_MIN
|
- name: DATABASE_CONNECTION_POOL_MIN
|
||||||
value: "{{ .Values.outline.database.connectionPoolMin }}"
|
value: "{{ .Values.outline.database.connectionPoolMin }}"
|
||||||
- name: DATABASE_CONNECTION_POOL_MAX
|
- name: DATABASE_CONNECTION_POOL_MAX
|
||||||
|
@@ -64,6 +64,9 @@ outline:
|
|||||||
databaseHost:
|
databaseHost:
|
||||||
existingSecretName:
|
existingSecretName:
|
||||||
existingSecretKey:
|
existingSecretKey:
|
||||||
|
databasePort:
|
||||||
|
existingSecretName:
|
||||||
|
existingSecretKey:
|
||||||
connectionPoolMin: ""
|
connectionPoolMin: ""
|
||||||
connectionPoolMax: "20"
|
connectionPoolMax: "20"
|
||||||
sslMode: disable
|
sslMode: disable
|
||||||
|
Reference in New Issue
Block a user