fix(outline): fetch from the correct secret

This commit is contained in:
Stavros Kois
2023-10-28 01:18:30 +03:00
committed by GitHub
parent 8e87719dac
commit 2a37d142f5
3 changed files with 3 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/outline
- https://github.com/outline/outline
type: application
version: 8.0.5
version: 8.0.6
annotations:
truecharts.org/catagories: |
- productivity

View File

@@ -1,6 +1,6 @@
{{/* Define the secrets */}}
{{- define "outline.secrets" -}}
{{- $secretName := (printf "%s-outline-secrets" (include "tc.v1.common.lib.chart.names.fullname" $)) }}
{{- $secretName := (printf "%s-secrets" (include "tc.v1.common.lib.chart.names.fullname" $)) }}
{{/* Outline wants a HEX 32 char string */}}
{{- $secret_key := (printf "%x" (randAlphaNum 32)) }}

View File

@@ -4,7 +4,7 @@
{{/* Render secrets for outline */}}
{{- $secrets := include "outline.secrets" . | fromYaml -}}
{{- if $secrets -}}
{{- $_ := set .Values.secret "secrets" $secrets -}}
{{- $_ := set .Values.secret "secrets" $secrets -}}
{{- end -}}
{{/* Render the templates */}}