wordpress: Added mariadb connection test to wordpress chart. (#1156)

* Added mariadb connection test to wordpress chart.

* bump chart version
This commit is contained in:
William Denniss
2017-06-28 10:16:24 +01:00
committed by Adnan Abdulhussein
parent 2bcb494f7e
commit ee75d502f2
2 changed files with 28 additions and 1 deletions
+1 -1
View File
@@ -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