mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
wordpress: Added mariadb connection test to wordpress chart. (#1156)
* Added mariadb connection test to wordpress chart. * bump chart version
This commit is contained in:
committed by
Adnan Abdulhussein
parent
2bcb494f7e
commit
ee75d502f2
@@ -1,5 +1,5 @@
|
||||
name: wordpress
|
||||
version: 0.6.6
|
||||
version: 0.6.7
|
||||
appVersion: 4.8
|
||||
description: Web publishing platform for building blogs and websites.
|
||||
icon: https://bitnami.com/assets/stacks/wordpress/img/wordpress-stack-220x234.png
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "{{ .Release.Name }}-credentials-test"
|
||||
annotations:
|
||||
"helm.sh/hook": test-success
|
||||
spec:
|
||||
containers:
|
||||
- name: {{ .Release.Name }}-credentials-test
|
||||
image: {{ .Values.image }}
|
||||
env:
|
||||
- name: MARIADB_HOST
|
||||
value: {{ template "mariadb.fullname" . }}
|
||||
- name: MARIADB_PORT
|
||||
value: "3306"
|
||||
- name: WORDPRESS_DATABASE_NAME
|
||||
value: {{ default "" .Values.mariadb.mariadbDatabase | quote }}
|
||||
- name: WORDPRESS_DATABASE_USER
|
||||
value: {{ default "" .Values.mariadb.mariadbUser | quote }}
|
||||
- name: WORDPRESS_DATABASE_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ template "mariadb.fullname" . }}
|
||||
key: mariadb-password
|
||||
command: ["sh", "-c", "mysql --host=$MARIADB_HOST --port=$MARIADB_PORT --user=$WORDPRESS_DATABASE_USER --password=$WORDPRESS_DATABASE_PASSWORD"]
|
||||
restartPolicy: Never
|
||||
|
||||
Reference in New Issue
Block a user