back (+1 squashed commits)

Squashed commits:

[e987c8d1a3] yeet
This commit is contained in:
Kjeld Schouten-Lebbing 2023-03-05 23:13:23 +01:00
parent 64806d18fc
commit 4bab915001
6 changed files with 270 additions and 270 deletions

View File

@ -1,4 +1,4 @@
farmOS is a web-based application for farm management, planning, and record keeping. It is developed by a community of volunteers and aims to provide a standard platform for farmers, developers, and researchers to build upon. farmOS is a web-based application for farm management, planning, and record keeping. It is developed by a community of volunteers and aims to provide a standard platform for farmers, developers, and researchers to build upon.
This App is supplied by TrueCharts, for more information visit the manual: [https://truecharts.org/charts/incubator/farmos](https://truecharts.org/charts/incubator/farmos) This App is supplied by TrueCharts, for more information visit the manual: [https://truecharts.org/charts/incubator/farmos](https://truecharts.org/charts/incubator/farmos)

View File

@ -1,32 +1,32 @@
{{/* Define the secret */}} {{/* Define the secret */}}
{{- define "splunk.secret" -}} {{- define "splunk.secret" -}}
{{- $splunkSecret := printf "%s-splunk-config" (include "tc.common.names.fullname" .) }} {{- $splunkSecret := printf "%s-splunk-config" (include "tc.common.names.fullname" .) }}
{{- $argList := list -}} {{- $argList := list -}}
{{- if .Values.splunk.acceptLicense -}} {{- if .Values.splunk.acceptLicense -}}
{{- $argList = append $argList "--accept-license" -}} {{- $argList = append $argList "--accept-license" -}}
{{- end -}} {{- end -}}
{{- with .Values.splunk.extraArgs -}} {{- with .Values.splunk.extraArgs -}}
{{- range . -}} {{- range . -}}
{{- $argList = append $argList . -}} {{- $argList = append $argList . -}}
{{- end -}} {{- end -}}
{{- end }} {{- end }}
--- ---
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: {{ $splunkSecret }} name: {{ $splunkSecret }}
labels: labels:
{{- include "tc.common.labels" . | nindent 4 }} {{- include "tc.common.labels" . | nindent 4 }}
stringData: stringData:
{{- with $argList }} {{- with $argList }}
SPLUNK_START_ARGS: {{ join " " . | quote }} SPLUNK_START_ARGS: {{ join " " . | quote }}
{{- end }} {{- end }}
{{- with .Values.splunk.password }} {{- with .Values.splunk.password }}
SPLUNK_PASSWORD: {{ . }} SPLUNK_PASSWORD: {{ . }}
{{- end }} {{- end }}
{{- end -}} {{- end -}}

View File

@ -1,4 +1,4 @@
Valetudo-RE companion service for generating PNG maps. Valetudo-RE companion service for generating PNG maps.
This App is supplied by TrueCharts, for more information visit the manual: [https://truecharts.org/charts/incubator/valetudo-mapper](https://truecharts.org/charts/incubator/valetudo-mapper) This App is supplied by TrueCharts, for more information visit the manual: [https://truecharts.org/charts/incubator/valetudo-mapper](https://truecharts.org/charts/incubator/valetudo-mapper)

View File

@ -1,117 +1,117 @@
{{/* Wordpress environment variables */}} {{/* Wordpress environment variables */}}
{{- define "wordpress.env" -}} {{- define "wordpress.env" -}}
{{- $configName := printf "%s-env-config" (include "tc.common.names.fullname" .) }} {{- $configName := printf "%s-env-config" (include "tc.common.names.fullname" .) }}
{{- $secretName := printf "%s-env-secret" (include "tc.common.names.fullname" .) }} {{- $secretName := printf "%s-env-secret" (include "tc.common.names.fullname" .) }}
--- ---
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: {{ $configName }} name: {{ $configName }}
labels: labels:
{{- include "tc.common.labels" . | nindent 4 }} {{- include "tc.common.labels" . | nindent 4 }}
data: data:
APACHE_HTTP_PORT_NUMBER: {{ .Values.service.main.ports.main.port | quote }} APACHE_HTTP_PORT_NUMBER: {{ .Values.service.main.ports.main.port | quote }}
{{/* Database */}} {{/* Database */}}
WORDPRESS_DATABASE_PORT_NUMBER: "3306" WORDPRESS_DATABASE_PORT_NUMBER: "3306"
WORDPRESS_DATABASE_USER: {{ .Values.mariadb.mariadbUsername | quote }} WORDPRESS_DATABASE_USER: {{ .Values.mariadb.mariadbUsername | quote }}
WORDPRESS_DATABASE_NAME: {{ .Values.mariadb.mariadbDatabase | quote }} WORDPRESS_DATABASE_NAME: {{ .Values.mariadb.mariadbDatabase | quote }}
{{/* Wordpress */}} {{/* Wordpress */}}
WORDPRESS_USERNAME: {{ .Values.wordpress.user | quote }} WORDPRESS_USERNAME: {{ .Values.wordpress.user | quote }}
WORDPRESS_EMAIL: {{ .Values.wordpress.email | quote }} WORDPRESS_EMAIL: {{ .Values.wordpress.email | quote }}
WORDPRESS_FIRST_NAME: {{ .Values.wordpress.first_name | quote }} WORDPRESS_FIRST_NAME: {{ .Values.wordpress.first_name | quote }}
WORDPRESS_LAST_NAME: {{ .Values.wordpress.last_name | quote }} WORDPRESS_LAST_NAME: {{ .Values.wordpress.last_name | quote }}
WORDPRESS_BLOG_NAME: {{ .Values.wordpress.blog_name | quote }} WORDPRESS_BLOG_NAME: {{ .Values.wordpress.blog_name | quote }}
WORDPRESS_ENABLE_REVERSE_PROXY: {{ ternary "yes" "no" .Values.wordpress.enable_reverse_proxy_headers | quote }} WORDPRESS_ENABLE_REVERSE_PROXY: {{ ternary "yes" "no" .Values.wordpress.enable_reverse_proxy_headers | quote }}
{{- if .Values.smtp.enabled }} {{- if .Values.smtp.enabled }}
WORDPRESS_SMTP_HOST: {{ .Values.smtp.host | quote }} WORDPRESS_SMTP_HOST: {{ .Values.smtp.host | quote }}
WORDPRESS_SMTP_PORT: {{ .Values.smtp.port | quote }} WORDPRESS_SMTP_PORT: {{ .Values.smtp.port | quote }}
{{- end }} {{- end }}
{{/* PHP */}} {{/* PHP */}}
{{- with .Values.wordpress.PHP_ENABLE_OPCACHE }} {{- with .Values.wordpress.PHP_ENABLE_OPCACHE }}
PHP_ENABLE_OPCACHE: {{ . | quote }} PHP_ENABLE_OPCACHE: {{ . | quote }}
{{- end }} {{- end }}
{{- with .Values.wordpress.PHP_EXPOSE_PHP }} {{- with .Values.wordpress.PHP_EXPOSE_PHP }}
PHP_EXPOSE_PHP: {{ . | quote }} PHP_EXPOSE_PHP: {{ . | quote }}
{{- end }} {{- end }}
{{- with .Values.wordpress.PHP_MAX_EXECUTION_TIME }} {{- with .Values.wordpress.PHP_MAX_EXECUTION_TIME }}
PHP_MAX_EXECUTION_TIME: {{ . | quote }} PHP_MAX_EXECUTION_TIME: {{ . | quote }}
{{- end }} {{- end }}
{{- with .Values.wordpress.PHP_MAX_INPUT_TIME }} {{- with .Values.wordpress.PHP_MAX_INPUT_TIME }}
PHP_MAX_INPUT_TIME: {{ . | quote }} PHP_MAX_INPUT_TIME: {{ . | quote }}
{{- end }} {{- end }}
{{- with .Values.wordpress.PHP_MAX_INPUT_VARS }} {{- with .Values.wordpress.PHP_MAX_INPUT_VARS }}
PHP_MAX_INPUT_VARS: {{ . | quote }} PHP_MAX_INPUT_VARS: {{ . | quote }}
{{- end }} {{- end }}
{{- with .Values.wordpress.PHP_MEMORY_LIMIT }} {{- with .Values.wordpress.PHP_MEMORY_LIMIT }}
PHP_MEMORY_LIMIT: {{ . | quote }} PHP_MEMORY_LIMIT: {{ . | quote }}
{{- end }} {{- end }}
{{- with .Values.wordpress.PHP_POST_MAX_SIZE }} {{- with .Values.wordpress.PHP_POST_MAX_SIZE }}
PHP_POST_MAX_SIZE: {{ . | quote }} PHP_POST_MAX_SIZE: {{ . | quote }}
{{- end }} {{- end }}
{{- with .Values.wordpress.PHP_UPLOAD_MAX_FILESIZE }} {{- with .Values.wordpress.PHP_UPLOAD_MAX_FILESIZE }}
PHP_UPLOAD_MAX_FILESIZE: {{ . | quote }} PHP_UPLOAD_MAX_FILESIZE: {{ . | quote }}
{{- end }} {{- end }}
--- ---
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: {{ $secretName }} name: {{ $secretName }}
labels: labels:
{{- include "tc.common.labels" . | nindent 4 }} {{- include "tc.common.labels" . | nindent 4 }}
data: data:
WORDPRESS_DATABASE_HOST: {{ printf "%v-%v" .Release.Name "mariadb" | b64enc }} WORDPRESS_DATABASE_HOST: {{ printf "%v-%v" .Release.Name "mariadb" | b64enc }}
WORDPRESS_DATABASE_PASSWORD: {{ .Values.mariadb.mariadbPassword | trimAll "\"" | b64enc }} WORDPRESS_DATABASE_PASSWORD: {{ .Values.mariadb.mariadbPassword | trimAll "\"" | b64enc }}
WORDPRESS_PASSWORD: {{ .Values.wordpress.pass | b64enc }} WORDPRESS_PASSWORD: {{ .Values.wordpress.pass | b64enc }}
{{- if .Values.smtp.enabled }} {{- if .Values.smtp.enabled }}
WORDPRESS_SMTP_USER: {{ .Values.smtp.user | b64enc }} WORDPRESS_SMTP_USER: {{ .Values.smtp.user | b64enc }}
WORDPRESS_SMTP_PASSWORD: {{ .Values.smtp.pass | b64enc }} WORDPRESS_SMTP_PASSWORD: {{ .Values.smtp.pass | b64enc }}
{{- end }} {{- end }}
{{/* Salts */}} {{/* Salts */}}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }} {{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
WORDPRESS_AUTH_KEY: {{ index .data "WORDPRESS_AUTH_KEY" }} WORDPRESS_AUTH_KEY: {{ index .data "WORDPRESS_AUTH_KEY" }}
{{- else }} {{- else }}
WORDPRESS_AUTH_KEY: {{ randAlphaNum 32 | b64enc }} WORDPRESS_AUTH_KEY: {{ randAlphaNum 32 | b64enc }}
{{- end }} {{- end }}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }} {{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
WORDPRESS_SECURE_AUTH_KEY: {{ index .data "WORDPRESS_SECURE_AUTH_KEY" }} WORDPRESS_SECURE_AUTH_KEY: {{ index .data "WORDPRESS_SECURE_AUTH_KEY" }}
{{- else }} {{- else }}
WORDPRESS_SECURE_AUTH_KEY: {{ randAlphaNum 32 | b64enc }} WORDPRESS_SECURE_AUTH_KEY: {{ randAlphaNum 32 | b64enc }}
{{- end }} {{- end }}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }} {{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
WORDPRESS_LOGGED_IN_KEY: {{ index .data "WORDPRESS_LOGGED_IN_KEY" }} WORDPRESS_LOGGED_IN_KEY: {{ index .data "WORDPRESS_LOGGED_IN_KEY" }}
{{- else }} {{- else }}
WORDPRESS_LOGGED_IN_KEY: {{ randAlphaNum 32 | b64enc }} WORDPRESS_LOGGED_IN_KEY: {{ randAlphaNum 32 | b64enc }}
{{- end }} {{- end }}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }} {{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
WORDPRESS_NONCE_KEY: {{ index .data "WORDPRESS_NONCE_KEY" }} WORDPRESS_NONCE_KEY: {{ index .data "WORDPRESS_NONCE_KEY" }}
{{- else }} {{- else }}
WORDPRESS_NONCE_KEY: {{ randAlphaNum 32 | b64enc }} WORDPRESS_NONCE_KEY: {{ randAlphaNum 32 | b64enc }}
{{- end }} {{- end }}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }} {{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
WORDPRESS_AUTH_SALT: {{ index .data "WORDPRESS_AUTH_SALT" }} WORDPRESS_AUTH_SALT: {{ index .data "WORDPRESS_AUTH_SALT" }}
{{- else }} {{- else }}
WORDPRESS_AUTH_SALT: {{ randAlphaNum 32 | b64enc }} WORDPRESS_AUTH_SALT: {{ randAlphaNum 32 | b64enc }}
{{- end }} {{- end }}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }} {{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
WORDPRESS_SECURE_AUTH_SALT: {{ index .data "WORDPRESS_SECURE_AUTH_SALT" }} WORDPRESS_SECURE_AUTH_SALT: {{ index .data "WORDPRESS_SECURE_AUTH_SALT" }}
{{- else }} {{- else }}
WORDPRESS_SECURE_AUTH_SALT: {{ randAlphaNum 32 | b64enc }} WORDPRESS_SECURE_AUTH_SALT: {{ randAlphaNum 32 | b64enc }}
{{- end }} {{- end }}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }} {{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
WORDPRESS_LOGGED_IN_SALT: {{ index .data "WORDPRESS_LOGGED_IN_SALT" }} WORDPRESS_LOGGED_IN_SALT: {{ index .data "WORDPRESS_LOGGED_IN_SALT" }}
{{- else }} {{- else }}
WORDPRESS_LOGGED_IN_SALT: {{ randAlphaNum 32 | b64enc }} WORDPRESS_LOGGED_IN_SALT: {{ randAlphaNum 32 | b64enc }}
{{- end }} {{- end }}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }} {{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
WORDPRESS_NONCE_SALT: {{ index .data "WORDPRESS_NONCE_SALT" }} WORDPRESS_NONCE_SALT: {{ index .data "WORDPRESS_NONCE_SALT" }}
{{- else }} {{- else }}
WORDPRESS_NONCE_SALT: {{ randAlphaNum 32 | b64enc }} WORDPRESS_NONCE_SALT: {{ randAlphaNum 32 | b64enc }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -1 +1 @@
{{ include "tc.common.loader.all" . }} {{ include "tc.common.loader.all" . }}

View File

@ -1,118 +1,118 @@
{{/* Wordpress environment variables */}} {{/* Wordpress environment variables */}}
{{- define "wordpress.env" -}} {{- define "wordpress.env" -}}
{{- $configName := printf "%s-env-config" (include "tc.common.names.fullname" .) }} {{- $configName := printf "%s-env-config" (include "tc.common.names.fullname" .) }}
{{- $secretName := printf "%s-env-secret" (include "tc.common.names.fullname" .) }} {{- $secretName := printf "%s-env-secret" (include "tc.common.names.fullname" .) }}
--- ---
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: {{ $configName }} name: {{ $configName }}
labels: labels:
{{- include "tc.common.labels" . | nindent 4 }} {{- include "tc.common.labels" . | nindent 4 }}
data: data:
APACHE_HTTP_PORT_NUMBER: {{ .Values.service.main.ports.main.port | quote }} APACHE_HTTP_PORT_NUMBER: {{ .Values.service.main.ports.main.port | quote }}
{{/* Database */}} {{/* Database */}}
WORDPRESS_DATABASE_PORT_NUMBER: "3306" WORDPRESS_DATABASE_PORT_NUMBER: "3306"
WORDPRESS_DATABASE_USER: {{ .Values.mariadb.mariadbUsername | quote }} WORDPRESS_DATABASE_USER: {{ .Values.mariadb.mariadbUsername | quote }}
WORDPRESS_DATABASE_NAME: {{ .Values.mariadb.mariadbDatabase | quote }} WORDPRESS_DATABASE_NAME: {{ .Values.mariadb.mariadbDatabase | quote }}
{{/* Wordpress */}} {{/* Wordpress */}}
WORDPRESS_USERNAME: {{ .Values.wordpress.user | quote }} WORDPRESS_USERNAME: {{ .Values.wordpress.user | quote }}
WORDPRESS_EMAIL: {{ .Values.wordpress.email | quote }} WORDPRESS_EMAIL: {{ .Values.wordpress.email | quote }}
WORDPRESS_FIRST_NAME: {{ .Values.wordpress.first_name | quote }} WORDPRESS_FIRST_NAME: {{ .Values.wordpress.first_name | quote }}
WORDPRESS_LAST_NAME: {{ .Values.wordpress.last_name | quote }} WORDPRESS_LAST_NAME: {{ .Values.wordpress.last_name | quote }}
WORDPRESS_BLOG_NAME: {{ .Values.wordpress.blog_name | quote }} WORDPRESS_BLOG_NAME: {{ .Values.wordpress.blog_name | quote }}
WORDPRESS_ENABLE_REVERSE_PROXY: {{ ternary "yes" "no" .Values.wordpress.enable_reverse_proxy_headers | quote }} WORDPRESS_ENABLE_REVERSE_PROXY: {{ ternary "yes" "no" .Values.wordpress.enable_reverse_proxy_headers | quote }}
{{- if .Values.smtp.enabled }} {{- if .Values.smtp.enabled }}
WORDPRESS_SMTP_HOST: {{ .Values.smtp.host | quote }} WORDPRESS_SMTP_HOST: {{ .Values.smtp.host | quote }}
WORDPRESS_SMTP_PORT: {{ .Values.smtp.port | quote }} WORDPRESS_SMTP_PORT: {{ .Values.smtp.port | quote }}
{{- end }} {{- end }}
{{- $php := get .Values "php-config" }} {{- $php := get .Values "php-config" }}
{{/* PHP */}} {{/* PHP */}}
{{- with $php.PHP_ENABLE_OPCACHE }} {{- with $php.PHP_ENABLE_OPCACHE }}
PHP_ENABLE_OPCACHE: {{ . | quote }} PHP_ENABLE_OPCACHE: {{ . | quote }}
{{- end }} {{- end }}
{{- with $php.PHP_EXPOSE_PHP }} {{- with $php.PHP_EXPOSE_PHP }}
PHP_EXPOSE_PHP: {{ . | quote }} PHP_EXPOSE_PHP: {{ . | quote }}
{{- end }} {{- end }}
{{- with $php.PHP_MAX_EXECUTION_TIME }} {{- with $php.PHP_MAX_EXECUTION_TIME }}
PHP_MAX_EXECUTION_TIME: {{ . | quote }} PHP_MAX_EXECUTION_TIME: {{ . | quote }}
{{- end }} {{- end }}
{{- with $php.PHP_MAX_INPUT_TIME }} {{- with $php.PHP_MAX_INPUT_TIME }}
PHP_MAX_INPUT_TIME: {{ . | quote }} PHP_MAX_INPUT_TIME: {{ . | quote }}
{{- end }} {{- end }}
{{- with $php.PHP_MAX_INPUT_VARS }} {{- with $php.PHP_MAX_INPUT_VARS }}
PHP_MAX_INPUT_VARS: {{ . | quote }} PHP_MAX_INPUT_VARS: {{ . | quote }}
{{- end }} {{- end }}
{{- with $php.PHP_MEMORY_LIMIT }} {{- with $php.PHP_MEMORY_LIMIT }}
PHP_MEMORY_LIMIT: {{ . | quote }} PHP_MEMORY_LIMIT: {{ . | quote }}
{{- end }} {{- end }}
{{- with $php.PHP_POST_MAX_SIZE }} {{- with $php.PHP_POST_MAX_SIZE }}
PHP_POST_MAX_SIZE: {{ . | quote }} PHP_POST_MAX_SIZE: {{ . | quote }}
{{- end }} {{- end }}
{{- with $php.PHP_UPLOAD_MAX_FILESIZE }} {{- with $php.PHP_UPLOAD_MAX_FILESIZE }}
PHP_UPLOAD_MAX_FILESIZE: {{ . | quote }} PHP_UPLOAD_MAX_FILESIZE: {{ . | quote }}
{{- end }} {{- end }}
--- ---
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: {{ $secretName }} name: {{ $secretName }}
labels: labels:
{{- include "tc.common.labels" . | nindent 4 }} {{- include "tc.common.labels" . | nindent 4 }}
data: data:
WORDPRESS_DATABASE_HOST: {{ printf "%v-%v" .Release.Name "mariadb" | b64enc }} WORDPRESS_DATABASE_HOST: {{ printf "%v-%v" .Release.Name "mariadb" | b64enc }}
WORDPRESS_DATABASE_PASSWORD: {{ .Values.mariadb.mariadbPassword | trimAll "\"" | b64enc }} WORDPRESS_DATABASE_PASSWORD: {{ .Values.mariadb.mariadbPassword | trimAll "\"" | b64enc }}
WORDPRESS_PASSWORD: {{ .Values.wordpress.pass | b64enc }} WORDPRESS_PASSWORD: {{ .Values.wordpress.pass | b64enc }}
{{- if .Values.smtp.enabled }} {{- if .Values.smtp.enabled }}
WORDPRESS_SMTP_USER: {{ .Values.smtp.user | b64enc }} WORDPRESS_SMTP_USER: {{ .Values.smtp.user | b64enc }}
WORDPRESS_SMTP_PASSWORD: {{ .Values.smtp.pass | b64enc }} WORDPRESS_SMTP_PASSWORD: {{ .Values.smtp.pass | b64enc }}
{{- end }} {{- end }}
{{/* Salts */}} {{/* Salts */}}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }} {{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
WORDPRESS_AUTH_KEY: {{ index .data "WORDPRESS_AUTH_KEY" }} WORDPRESS_AUTH_KEY: {{ index .data "WORDPRESS_AUTH_KEY" }}
{{- else }} {{- else }}
WORDPRESS_AUTH_KEY: {{ randAlphaNum 32 | b64enc }} WORDPRESS_AUTH_KEY: {{ randAlphaNum 32 | b64enc }}
{{- end }} {{- end }}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }} {{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
WORDPRESS_SECURE_AUTH_KEY: {{ index .data "WORDPRESS_SECURE_AUTH_KEY" }} WORDPRESS_SECURE_AUTH_KEY: {{ index .data "WORDPRESS_SECURE_AUTH_KEY" }}
{{- else }} {{- else }}
WORDPRESS_SECURE_AUTH_KEY: {{ randAlphaNum 32 | b64enc }} WORDPRESS_SECURE_AUTH_KEY: {{ randAlphaNum 32 | b64enc }}
{{- end }} {{- end }}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }} {{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
WORDPRESS_LOGGED_IN_KEY: {{ index .data "WORDPRESS_LOGGED_IN_KEY" }} WORDPRESS_LOGGED_IN_KEY: {{ index .data "WORDPRESS_LOGGED_IN_KEY" }}
{{- else }} {{- else }}
WORDPRESS_LOGGED_IN_KEY: {{ randAlphaNum 32 | b64enc }} WORDPRESS_LOGGED_IN_KEY: {{ randAlphaNum 32 | b64enc }}
{{- end }} {{- end }}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }} {{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
WORDPRESS_NONCE_KEY: {{ index .data "WORDPRESS_NONCE_KEY" }} WORDPRESS_NONCE_KEY: {{ index .data "WORDPRESS_NONCE_KEY" }}
{{- else }} {{- else }}
WORDPRESS_NONCE_KEY: {{ randAlphaNum 32 | b64enc }} WORDPRESS_NONCE_KEY: {{ randAlphaNum 32 | b64enc }}
{{- end }} {{- end }}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }} {{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
WORDPRESS_AUTH_SALT: {{ index .data "WORDPRESS_AUTH_SALT" }} WORDPRESS_AUTH_SALT: {{ index .data "WORDPRESS_AUTH_SALT" }}
{{- else }} {{- else }}
WORDPRESS_AUTH_SALT: {{ randAlphaNum 32 | b64enc }} WORDPRESS_AUTH_SALT: {{ randAlphaNum 32 | b64enc }}
{{- end }} {{- end }}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }} {{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
WORDPRESS_SECURE_AUTH_SALT: {{ index .data "WORDPRESS_SECURE_AUTH_SALT" }} WORDPRESS_SECURE_AUTH_SALT: {{ index .data "WORDPRESS_SECURE_AUTH_SALT" }}
{{- else }} {{- else }}
WORDPRESS_SECURE_AUTH_SALT: {{ randAlphaNum 32 | b64enc }} WORDPRESS_SECURE_AUTH_SALT: {{ randAlphaNum 32 | b64enc }}
{{- end }} {{- end }}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }} {{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
WORDPRESS_LOGGED_IN_SALT: {{ index .data "WORDPRESS_LOGGED_IN_SALT" }} WORDPRESS_LOGGED_IN_SALT: {{ index .data "WORDPRESS_LOGGED_IN_SALT" }}
{{- else }} {{- else }}
WORDPRESS_LOGGED_IN_SALT: {{ randAlphaNum 32 | b64enc }} WORDPRESS_LOGGED_IN_SALT: {{ randAlphaNum 32 | b64enc }}
{{- end }} {{- end }}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }} {{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
WORDPRESS_NONCE_SALT: {{ index .data "WORDPRESS_NONCE_SALT" }} WORDPRESS_NONCE_SALT: {{ index .data "WORDPRESS_NONCE_SALT" }}
{{- else }} {{- else }}
WORDPRESS_NONCE_SALT: {{ randAlphaNum 32 | b64enc }} WORDPRESS_NONCE_SALT: {{ randAlphaNum 32 | b64enc }}
{{- end }} {{- end }}
{{- end }} {{- end }}