From f458c0a834ab028ad8fee18803305c6d11b36527 Mon Sep 17 00:00:00 2001 From: Trevor Royer Date: Mon, 3 May 2021 15:48:33 -0500 Subject: [PATCH] add && to allow probe to execute correctly --- examples/mariadb-ephemeral-template.json | 4 ++-- examples/mariadb-persistent-template.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/mariadb-ephemeral-template.json b/examples/mariadb-ephemeral-template.json index e227fac0..a0f184c3 100644 --- a/examples/mariadb-ephemeral-template.json +++ b/examples/mariadb-ephemeral-template.json @@ -116,7 +116,7 @@ "initialDelaySeconds": 5, "exec": { "command": [ "/bin/sh", "-i", "-c", - "MYSQL_PWD=\"$MYSQL_PASSWORD\" mysqladmin -u $MYSQL_USER ping"] + "MYSQL_PWD=\"$MYSQL_PASSWORD\" && mysqladmin -u $MYSQL_USER ping"] } }, "livenessProbe": { @@ -124,7 +124,7 @@ "initialDelaySeconds": 30, "exec": { "command": [ "/bin/sh", "-i", "-c", - "MYSQL_PWD=\"$MYSQL_PASSWORD\" mysqladmin -u $MYSQL_USER ping"] + "MYSQL_PWD=\"$MYSQL_PASSWORD\" && mysqladmin -u $MYSQL_USER ping"] } }, "env": [ diff --git a/examples/mariadb-persistent-template.json b/examples/mariadb-persistent-template.json index 7bc6dab1..ca3cb809 100644 --- a/examples/mariadb-persistent-template.json +++ b/examples/mariadb-persistent-template.json @@ -133,7 +133,7 @@ "initialDelaySeconds": 5, "exec": { "command": [ "/bin/sh", "-i", "-c", - "MYSQL_PWD=\"$MYSQL_PASSWORD\" mysqladmin -u $MYSQL_USER ping"] + "MYSQL_PWD=\"$MYSQL_PASSWORD\" && mysqladmin -u $MYSQL_USER ping"] } }, "livenessProbe": { @@ -141,7 +141,7 @@ "initialDelaySeconds": 30, "exec": { "command": [ "/bin/sh", "-i", "-c", - "MYSQL_PWD=\"$MYSQL_PASSWORD\" mysqladmin -u $MYSQL_USER ping"] + "MYSQL_PWD=\"$MYSQL_PASSWORD\" && mysqladmin -u $MYSQL_USER ping"] } }, "env": [