Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add features
- Return `Age` column to be visible by getter method - Add `Image` column for wide option in getter method of `mariadb` resource - Add `status.showState` default value - after testing couldn't see default values, however it is visible in the generated manifest - Append to the `db.name-server` `-deployment` to be visible from looking for deployemnt - Append `-server-service` to the db.name for internal service - Change default of envioronment variable `MARIADB_ALLOW_EMPTY_ROOT_PASSWORD` (default 0) - Add env `MARIADB_DATABASE` to be created on server startup for `MARIADB_USER` - Results ``` $ kubectl get mariadb NAME MARIADB STATE PORT AGE mariadb-sample RUNNING 3306 44s $ kubectl get mariadb -o wide NAME MARIADB STATE PORT IMAGE AGE mariadb-sample RUNNING 3306 quay.io/mariadb-foundation/mariadb-devel:10.5 48s $ kubectl get pods NAME READY STATUS RESTARTS AGE mariadb-sample-server-deployment-68bc5c6f9f-kcqt7 1/1 Running 0 94s mariadb-sample-server-deployment-68bc5c6f9f-ls9d9 1/1 Running 0 94s $ kubectl get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 116d mariadb-sample-server-service ClusterIP 10.109.68.55 <none> 3306/TCP 108s $ kubectl exec -it mariadb-sample-server-deployment-68bc5c6f9f-ls9d9 -- mariadb -uexample-user -pmy_cool_secret -e "show grants for current_user(); show databases;" +-------------------------------------------------------------------------------------------------------------+ | Grants for example-user@% | +-------------------------------------------------------------------------------------------------------------+ | GRANT USAGE ON *.* TO `example-user`@`%` IDENTIFIED BY PASSWORD '*4EC7004AFBA4CA916C70D9A264CC2B6356AD9AEB' | | GRANT ALL PRIVILEGES ON `testDB-operator`.* TO `example-user`@`%` | +-------------------------------------------------------------------------------------------------------------+ +--------------------+ | Database | +--------------------+ | information_schema | | testDB-operator | +--------------------+ ``` - Future work - add secrets and validate entries
- Loading branch information