Rename tline to porthole
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
apiVersion: v2
|
||||
name: tline
|
||||
name: porthole
|
||||
description: Timeline media library (porthole)
|
||||
type: application
|
||||
version: 0.1.0
|
||||
@@ -105,8 +105,11 @@ app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- $label = .Values.minio.tailscaleServiceS3.hostnameLabel -}}
|
||||
{{- end -}}
|
||||
{{- printf "https://%s.%s" $label .Values.global.tailscale.tailnetFQDN -}}
|
||||
{{- else if .Values.minio.enabled -}}
|
||||
{{- $svc := include "tline.componentName" (dict "Values" .Values "Chart" .Chart "Release" .Release "component" "minio") -}}
|
||||
{{- printf "http://%s:%d" $svc (.Values.minio.service.s3Port | int) -}}
|
||||
{{- else -}}
|
||||
{{- fail "app.minio.publicEndpointTs is required (or set global.tailscale.tailnetFQDN to derive it)" -}}
|
||||
{{- fail "app.minio.publicEndpointTs is required when minio.enabled=false and no tailscale tailnetFQDN is set" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
{{- if not .Values.secrets.existingSecret -}}
|
||||
{{- $existing := lookup "v1" "Secret" .Release.Namespace (include "tline.secretName" .) -}}
|
||||
{{- $existingData := dict -}}
|
||||
{{- if $existing -}}
|
||||
{{- $existingData = (get $existing "data") | default dict -}}
|
||||
{{- end -}}
|
||||
{{- $pgPassB64 := (get $existingData "POSTGRES_PASSWORD") | default (randAlphaNum 32 | b64enc) -}}
|
||||
{{- $minioKeyB64 := (get $existingData "MINIO_ACCESS_KEY_ID") | default (randAlphaNum 20 | b64enc) -}}
|
||||
{{- $minioSecretB64 := (get $existingData "MINIO_SECRET_ACCESS_KEY") | default (randAlphaNum 40 | b64enc) -}}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
@@ -7,9 +15,9 @@ metadata:
|
||||
{{ include "tline.labels" . | indent 4 }}
|
||||
type: Opaque
|
||||
data:
|
||||
POSTGRES_PASSWORD: {{ required "secrets.postgres.password is required" .Values.secrets.postgres.password | b64enc }}
|
||||
MINIO_ACCESS_KEY_ID: {{ required "secrets.minio.accessKeyId is required" .Values.secrets.minio.accessKeyId | b64enc }}
|
||||
MINIO_SECRET_ACCESS_KEY: {{ required "secrets.minio.secretAccessKey is required" .Values.secrets.minio.secretAccessKey | b64enc }}
|
||||
POSTGRES_PASSWORD: {{ .Values.secrets.postgres.password | default ($pgPassB64 | b64dec) | b64enc }}
|
||||
MINIO_ACCESS_KEY_ID: {{ .Values.secrets.minio.accessKeyId | default ($minioKeyB64 | b64dec) | b64enc }}
|
||||
MINIO_SECRET_ACCESS_KEY: {{ .Values.secrets.minio.secretAccessKey | default ($minioSecretB64 | b64dec) | b64enc }}
|
||||
{{- end }}
|
||||
|
||||
{{- if .Values.registrySecret.create -}}
|
||||
@@ -28,7 +28,7 @@ scheduling:
|
||||
|
||||
app:
|
||||
name: porthole
|
||||
queueName: tline
|
||||
queueName: porthole
|
||||
|
||||
# Optional overrides when bringing your own services.
|
||||
databaseUrl: "" # defaults to in-chart Postgres when empty
|
||||
@@ -45,9 +45,9 @@ secrets:
|
||||
existingSecret: "" # if set, chart will not create secrets
|
||||
|
||||
postgres:
|
||||
user: tline
|
||||
user: porthole
|
||||
password: "" # REQUIRED if not using existingSecret
|
||||
database: tline
|
||||
database: porthole
|
||||
|
||||
minio:
|
||||
accessKeyId: "" # REQUIRED if not using existingSecret
|
||||
@@ -55,12 +55,14 @@ secrets:
|
||||
|
||||
images:
|
||||
web:
|
||||
repository: ""
|
||||
tag: ""
|
||||
# Default is a local/in-cluster registry example; override for your environment.
|
||||
repository: registry.lan:5000/porthole-web
|
||||
tag: dev
|
||||
pullPolicy: IfNotPresent
|
||||
worker:
|
||||
repository: ""
|
||||
tag: ""
|
||||
# Default is a local/in-cluster registry example; override for your environment.
|
||||
repository: registry.lan:5000/porthole-worker
|
||||
tag: dev
|
||||
pullPolicy: IfNotPresent
|
||||
postgres:
|
||||
repository: postgres
|
||||
Reference in New Issue
Block a user