File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 9999 cpu : 100m
100100 memory : 512Mi
101101 configOverrides : " innodb_fast_shutdown=0"
102+ # Configure extra flags for mysqld_exporter and check them in the upgrade test
103+ mysqldExporter :
104+ extraFlags :
105+ collect.info_schema.tables.databases : " *" # Override the default
106+ collect.info_schema.innodb_cmpmem : " false"
107+ collect.info_schema.tables : " true"
102108 dataVolumeClaimTemplate :
103109 accessModes : ["ReadWriteOnce"]
104110 resources :
Original file line number Diff line number Diff line change @@ -252,6 +252,15 @@ function upgradeToLatest() {
252252 verifyDataCommerce
253253}
254254
255+ function verifyResourceSpec() {
256+ echo " Verifying resource spec"
257+
258+ echo " mysqld_exporter flags:"
259+ checkPodSpecBySelectorWithTimeout example " planetscale.com/component=vttablet" 3 " --no-collect.info_schema.innodb_cmpmem$"
260+ checkPodSpecBySelectorWithTimeout example " planetscale.com/component=vttablet" 3 " --collect.info_schema.tables$"
261+ checkPodSpecBySelectorWithTimeout example " planetscale.com/component=vttablet" 3 " --collect.info_schema.tables.databases=\*$"
262+ }
263+
255264# Test setup
256265setupKindCluster
257266cd test/endtoend/operator || exit 1
@@ -263,6 +272,7 @@ checkSemiSyncSetup
263272verifyDurabilityPolicy " commerce" " semi_sync"
264273upgradeToLatest
265274verifyVtGateVersion " 23.0.0"
275+ verifyResourceSpec
266276checkSemiSyncSetup
267277# After upgrading, we verify that the durability policy is still semi_sync
268278verifyDurabilityPolicy " commerce" " semi_sync"
You can’t perform that action at this time.
0 commit comments