File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 8585 cpu : 100m
8686 memory : 512Mi
8787 configOverrides : " innodb_fast_shutdown=0"
88+ # Configure extra flags for mysqld_exporter and check them in the upgrade test
89+ mysqldExporter :
90+ extraFlags :
91+ collect.info_schema.tables.databases : " *" # Override operator default
92+ collect.info_schema.innodb_cmpmem : " true" # Duplicate flag, overriden below
93+ collect.info_schema.innodb_cmpmem : " false"
94+ collect.info_schema.tables : " true"
8895 dataVolumeClaimTemplate :
8996 accessModes : ["ReadWriteOnce"]
9097 resources :
Original file line number Diff line number Diff line change @@ -232,6 +232,15 @@ COrder
232232EOF
233233}
234234
235+ function verifyResourceSpec() {
236+ echo " Verifying resource spec"
237+
238+ echo " mysqld_exporter flags:"
239+ checkPodSpecBySelectorWithTimeout " planetscale.com/component=vttablet" 3 " --no-collect.info_schema.innodb_cmpmem$"
240+ checkPodSpecBySelectorWithTimeout " planetscale.com/component=vttablet" 3 " --collect.info_schema.tables$"
241+ checkPodSpecBySelectorWithTimeout " planetscale.com/component=vttablet" 3 " --collect.info_schema.tables.databases=\*$"
242+ }
243+
235244# Test setup
236245echo " Building the docker image"
237246docker build -f build/Dockerfile.release -t vitess-operator-pr:latest .
@@ -251,6 +260,7 @@ checkSemiSyncSetup
251260verifyDurabilityPolicy " commerce" " semi_sync"
252261upgradeToLatest
253262verifyVtGateVersion " 22.0.0"
263+ verifyResourceSpec
254264checkSemiSyncSetup
255265# After upgrading, we verify that the durability policy is still semi_sync
256266verifyDurabilityPolicy " commerce" " semi_sync"
You can’t perform that action at this time.
0 commit comments