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
+1 -1
View File
@@ -25,7 +25,7 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/outline - https://github.com/truecharts/charts/tree/master/charts/stable/outline
- https://github.com/outline/outline - https://github.com/outline/outline
type: application type: application
version: 8.0.5 version: 8.0.6
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- productivity - productivity
+1 -1
View File
@@ -1,6 +1,6 @@
{{/* Define the secrets */}} {{/* Define the secrets */}}
{{- define "outline.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 */}} {{/* Outline wants a HEX 32 char string */}}
{{- $secret_key := (printf "%x" (randAlphaNum 32)) }} {{- $secret_key := (printf "%x" (randAlphaNum 32)) }}
+1 -1
View File
@@ -4,7 +4,7 @@
{{/* Render secrets for outline */}} {{/* Render secrets for outline */}}
{{- $secrets := include "outline.secrets" . | fromYaml -}} {{- $secrets := include "outline.secrets" . | fromYaml -}}
{{- if $secrets -}} {{- if $secrets -}}
{{- $_ := set .Values.secret "secrets" $secrets -}} {{- $_ := set .Values.secret "secrets" $secrets -}}
{{- end -}} {{- end -}}
{{/* Render the templates */}} {{/* Render the templates */}}