Skip to content

Commit f8e4222

Browse files
committed
test(mariadb): fix operator MariaDB CR name in single-replica failure dump
The failure-path dump queried mariadbs.k8s.mariadb.com with $name, but the operator CR is named after the Helm release ({{ .Release.Name }} = mariadb-$name), so the dump would hit NotFound instead of showing the rejected CR. Assisted-By: Claude <[email protected]> Signed-off-by: Алексей Артамонов <[email protected]>
1 parent c7e8f4d commit f8e4222

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎hack/e2e-apps/mariadb.bats‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ EOF
9595
kubectl -n tenant-test wait hr mariadb-$name --timeout=5m --for=condition=ready \
9696
|| { echo "HR mariadb-$name not ready — dumping state:"; \
9797
kubectl -n tenant-test describe hr mariadb-$name; \
98-
kubectl -n tenant-test get mariadbs.k8s.mariadb.com $name -o yaml; false; }
98+
kubectl -n tenant-test get mariadbs.k8s.mariadb.com mariadb-$name -o yaml; false; }
9999
# With replicas=1 the operator provisions the bare <name> service (no
100100
# -primary/-secondary): assert it exists and has an endpoint.
101101
timeout 80 sh -ec "until kubectl -n tenant-test get svc mariadb-$name -o jsonpath='{.spec.ports[0].port}' | grep -q '3306'; do sleep 10; done"

0 commit comments

Comments
 (0)