diff --git a/test/e2e/testdata/mysql-client-pod.yaml b/test/e2e/testdata/mysql-client-pod.yaml new file mode 100644 index 0000000..0bb69e6 --- /dev/null +++ b/test/e2e/testdata/mysql-client-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Pod +metadata: + name: mysql-init-pod + namespace: mysql +spec: + restartPolicy: Never + containers: + - name: mysql-client + image: mysql:8 # change to mysql:5.7 if you want to test with MySQL 5.7 but remember + # that the MySQL 5.7 image is is not multi-arch and will not work on ARM64 + # out of the box + command: ["sh", "-c"] + args: + - | + mysql -h mysql-service.mysql -uroot -pe2e-mysql-password -e "CREATE DATABASE IF NOT EXISTS seed-database;" \ No newline at end of file