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)

View File

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

View File

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