hmm
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
apiVersion: v2
|
||||
kubeVersion: ">=1.16.0-0"
|
||||
name: meshcentral
|
||||
version: 9.0.12
|
||||
version: 9.0.13
|
||||
appVersion: "1.1.1"
|
||||
description: MeshCentral is a full computer management web site
|
||||
type: application
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
|
||||
{{- $sessionKey := "" }}
|
||||
{{- with (lookup "v1" "Secret" .Release.Namespace $secretStorageName) }}
|
||||
{{- $sessionKey = (index .data "session_key") }}
|
||||
{{- $sessionKey = (index .data "session_key") | b64dec }}
|
||||
{{- else }}
|
||||
{{- $sessionKey = randAlphaNum 32 | b64enc}}
|
||||
{{- $sessionKey = randAlphaNum 32 | b64enc }}
|
||||
{{- end }}
|
||||
|
||||
{{/* Inject some values */}}
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
{{- $_ := set $config.settings "mongoDB" (.Values.mongodb.url.complete | trimAll "\"") }}
|
||||
{{- $_ := set $config.settings "mongoDbName" .Values.mongodb.mongodbDatabase }}
|
||||
{{- $_ := set $config.settings "sessionKey" ($sessionKey | b64dec) }}
|
||||
{{- $_ := set $config.settings "sessionKey" $sessionKey }}
|
||||
{{- $_ := set $config.settings "port" .Values.service.main.ports.main.port }}
|
||||
|
||||
{{/* Force disable some functions that are not appliable in docker */}}
|
||||
@@ -77,7 +77,7 @@ metadata:
|
||||
{{- include "tc.common.labels" . | nindent 4 }}
|
||||
data:
|
||||
{{/* Store session_key to reuse */}}
|
||||
session_key: {{ $sessionKey }}
|
||||
session_key: {{ $sessionKey | b64enc }}
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user