feat(apps): move to stable (#2415)
* feat(ferdi-server): move to stable * move picoshare to stable * persistence fix
This commit is contained in:
parent
26793cb659
commit
c78b69d4b5
|
@ -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
|
||||
sources:
|
||||
- https://github.com/getferdi/server
|
||||
version: 0.0.3
|
||||
version: 1.0.0
|
||||
annotations:
|
||||
truecharts.org/catagories: |
|
||||
- media
|
|
@ -18,7 +18,7 @@ name: picoshare
|
|||
sources:
|
||||
- https://github.com/mtlynch/picoshare
|
||||
- https://hub.docker.com/r/mtlynch/picoshare
|
||||
version: 0.0.3
|
||||
version: 1.0.0
|
||||
annotations:
|
||||
truecharts.org/catagories: |
|
||||
- media
|
|
@ -81,6 +81,14 @@ questions:
|
|||
additional_attrs: true
|
||||
type: dict
|
||||
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
|
||||
label: "LITESTREAM_BUCKET"
|
||||
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
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: config
|
||||
label: "App Config Storage"
|
||||
description: "Stores the Application Configuration."
|
||||
- variable: data
|
||||
label: "App Data Storage"
|
||||
description: "Stores the Application Data."
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
|
@ -0,0 +1 @@
|
|||
{{- include "common.all" . }}
|
|
@ -4,6 +4,7 @@ image:
|
|||
pullPolicy: IfNotPresent
|
||||
|
||||
secret:
|
||||
PS_SHARED_SECRET: "somesecretcode"
|
||||
LITESTREAM_BUCKET: ""
|
||||
LITESTREAM_ENDPOINT: ""
|
||||
LITESTREAM_ACCESS_KEY_ID: ""
|
||||
|
@ -12,12 +13,6 @@ secret:
|
|||
env:
|
||||
PORT: "{{ .Values.service.main.ports.main.port }}"
|
||||
|
||||
envValueFrom:
|
||||
PS_SHARED_SECRET:
|
||||
secretKeyRef:
|
||||
name: picoshare-secrets
|
||||
key: PS_SHARED_SECRET
|
||||
|
||||
service:
|
||||
main:
|
||||
ports:
|
Loading…
Reference in New Issue