Skip to content

Commit

Permalink
K8s - MariaDB - Upgrade to 11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
armandomiani committed Sep 26, 2023
1 parent b20d828 commit 69e6adf
Show file tree
Hide file tree
Showing 6 changed files with 306 additions and 302 deletions.
2 changes: 1 addition & 1 deletion k8s/mariadb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ APP_ID ?= $(CHART_NAME)

VERIFY_WAIT_TIMEOUT = 1800

TRACK ?= 11.0
TRACK ?= 11.1
METRICS_EXPORTER_TAG ?= v0.5.1

SOURCE_REGISTRY ?= marketplace.gcr.io/google
Expand Down
8 changes: 4 additions & 4 deletions k8s/mariadb/apptest/tester/tests/basic-suite.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
actions:
- name: Can connect to a database (as root user)
bashTest:
script: mysql -h ${APP_INSTANCE_NAME}-mariadb.${NAMESPACE}.svc.cluster.local -u root -p"${MYSQL_ROOT_PASSWORD}" -e "SHOW DATABASES"
script: mariadb -h ${APP_INSTANCE_NAME}-mariadb.${NAMESPACE}.svc.cluster.local -u root -p"${MYSQL_ROOT_PASSWORD}" -e "SHOW DATABASES"
expect:
stdout:
contains: information_schema
exitCode:
equals: 0
- name: Can not connect to a database with incorrect credentials
bashTest:
script: mysql -h ${APP_INSTANCE_NAME}-mariadb.${NAMESPACE}.svc.cluster.local -u root -p"wrong_pass" -e "SHOW DATABASES"
script: mariadb -h ${APP_INSTANCE_NAME}-mariadb.${NAMESPACE}.svc.cluster.local -u root -p"wrong_pass" -e "SHOW DATABASES"
expect:
stderr:
contains: 'ERROR 1045 (28000): Access denied for user '
exitCode:
equals: 1
- name: Can create database
bashTest:
script: mysql -h ${APP_INSTANCE_NAME}-mariadb.${NAMESPACE}.svc.cluster.local -u root -p"${MYSQL_ROOT_PASSWORD}" -e "CREATE DATABASE test_database"
script: mariadb -h ${APP_INSTANCE_NAME}-mariadb.${NAMESPACE}.svc.cluster.local -u root -p"${MYSQL_ROOT_PASSWORD}" -e "CREATE DATABASE test_database"
expect:
exitCode:
equals: 0
- name: Check replication
bashTest:
script: mysql -h ${APP_INSTANCE_NAME}-mariadb-secondary.${NAMESPACE}.svc.cluster.local -u root -p"${MYSQL_ROOT_PASSWORD}" -e "SHOW DATABASES"
script: mariadb -h ${APP_INSTANCE_NAME}-mariadb-secondary.${NAMESPACE}.svc.cluster.local -u root -p"${MYSQL_ROOT_PASSWORD}" -e "SHOW DATABASES"
expect:
stdout:
contains: test_database
Expand Down
296 changes: 0 additions & 296 deletions k8s/mariadb/chart/mariadb/templates/manifests.yaml

This file was deleted.

Loading

0 comments on commit 69e6adf

Please sign in to comment.