feat(apps): move to stable (#2415)
* feat(ferdi-server): move to stable * move picoshare to stable * persistence fix
This commit is contained in:
@@ -1,20 +0,0 @@
|
|||||||
{{/* Define the secrets */}}
|
|
||||||
{{- define "picoshare.secrets" -}}
|
|
||||||
---
|
|
||||||
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
type: Opaque
|
|
||||||
metadata:
|
|
||||||
name: picoshare-secrets
|
|
||||||
{{- $picoshareprevious := lookup "v1" "Secret" .Release.Namespace "picoshare-secrets" }}
|
|
||||||
{{- $shared_key := "" }}
|
|
||||||
data:
|
|
||||||
{{- if $picoshareprevious}}
|
|
||||||
PS_SHARED_SECRET: {{ index $picoshareprevious.data "PS_SHARED_SECRET" }}
|
|
||||||
{{- else }}
|
|
||||||
{{- $shared_key := randAlphaNum 32 }}
|
|
||||||
PS_SHARED_SECRET: {{ $shared_key | b64enc }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{- end -}}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{{/* Make sure all variables are set properly */}}
|
|
||||||
{{- include "common.setup" . }}
|
|
||||||
|
|
||||||
{{/* Render secrets for picoshare */}}
|
|
||||||
{{- include "picoshare.secrets" . }}
|
|
||||||
|
|
||||||
{{/* Render the templates */}}
|
|
||||||
{{ include "common.postSetup" . }}
|
|
||||||
@@ -21,7 +21,7 @@ maintainers:
|
|||||||
name: ferdi-server
|
name: ferdi-server
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/getferdi/server
|
- https://github.com/getferdi/server
|
||||||
version: 0.0.3
|
version: 1.0.0
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- media
|
- media
|
||||||
@@ -18,7 +18,7 @@ name: picoshare
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/mtlynch/picoshare
|
- https://github.com/mtlynch/picoshare
|
||||||
- https://hub.docker.com/r/mtlynch/picoshare
|
- https://hub.docker.com/r/mtlynch/picoshare
|
||||||
version: 0.0.3
|
version: 1.0.0
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- media
|
- media
|
||||||
@@ -81,6 +81,14 @@ questions:
|
|||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
attrs:
|
attrs:
|
||||||
|
- variable: PS_SHARED_SECRET
|
||||||
|
label: "PS_SHARED_SECRET"
|
||||||
|
description: "Secret Key for Web Console."
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
private: true
|
||||||
|
default: ""
|
||||||
- variable: LITESTREAM_BUCKET
|
- variable: LITESTREAM_BUCKET
|
||||||
label: "LITESTREAM_BUCKET"
|
label: "LITESTREAM_BUCKET"
|
||||||
description: "If you specify settings for a Litestream-compatible cloud storage location, PicoShare will automatically replicate your data."
|
description: "If you specify settings for a Litestream-compatible cloud storage location, PicoShare will automatically replicate your data."
|
||||||
@@ -199,9 +207,9 @@ questions:
|
|||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
attrs:
|
attrs:
|
||||||
- variable: config
|
- variable: data
|
||||||
label: "App Config Storage"
|
label: "App Data Storage"
|
||||||
description: "Stores the Application Configuration."
|
description: "Stores the Application Data."
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{{- include "common.all" . }}
|
||||||
@@ -4,6 +4,7 @@ image:
|
|||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
secret:
|
secret:
|
||||||
|
PS_SHARED_SECRET: "somesecretcode"
|
||||||
LITESTREAM_BUCKET: ""
|
LITESTREAM_BUCKET: ""
|
||||||
LITESTREAM_ENDPOINT: ""
|
LITESTREAM_ENDPOINT: ""
|
||||||
LITESTREAM_ACCESS_KEY_ID: ""
|
LITESTREAM_ACCESS_KEY_ID: ""
|
||||||
@@ -12,12 +13,6 @@ secret:
|
|||||||
env:
|
env:
|
||||||
PORT: "{{ .Values.service.main.ports.main.port }}"
|
PORT: "{{ .Values.service.main.ports.main.port }}"
|
||||||
|
|
||||||
envValueFrom:
|
|
||||||
PS_SHARED_SECRET:
|
|
||||||
secretKeyRef:
|
|
||||||
name: picoshare-secrets
|
|
||||||
key: PS_SHARED_SECRET
|
|
||||||
|
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
ports:
|
ports:
|
||||||
Reference in New Issue
Block a user