From 01dc251f63f0e87ef43475a5af036ab6371ce8fe Mon Sep 17 00:00:00 2001 From: Tyler Gu Date: Thu, 14 Dec 2023 15:39:30 -0600 Subject: [PATCH] Refactor unittest and integration-tests and CI Separate unittest and integration-tests into separate directories for easier management. Change CI to collect unittest and integration-tests' coverage, merge them, and report together. Signed-off-by: Tyler Gu --- .github/workflows/unittest.yaml | 107 +- pyproject.toml | 11 + test/cli-output-0.log | 4 - test/cli-output-1.log | 4 - .../operator-2.log => e2e_tests/__init__.py} | 0 test/{ => e2e_tests}/test_bug_reproduction.py | 83 +- .../cassop-315/inputs}/mutated-0.yaml | 0 .../cassop-315/inputs/mutated-1.yaml | 0 .../cassop-315/inputs/mutated-2.yaml | 0 .../cassop-315/inputs/mutated-3.yaml | 0 .../cassop-330/trial-demo}/mutated-0.yaml | 0 .../cassop-330/trial-demo/mutated-1.yaml | 0 .../cassop-330/trial-demo/mutated-2.yaml | 0 .../test_data/cassop-334}/mutated-0.yaml | 0 .../test_data/cassop-334/mutated-1.yaml | 0 .../test_data/cassop-471}/mutated-0.yaml | 0 .../test_data/cassop-471/mutated-1.yaml | 0 .../test_data/cassop-471/mutated-2.yaml | 0 .../test_data/crdbop-918}/mutated-0.yaml | 0 .../test_data/crdbop-918/mutated-1.yaml | 0 .../test_data/crdbop-919}/mutated-0.yaml | 0 .../test_data}/crdbop-919/mutated-1.yaml | 0 .../test_data}/crdbop-919/mutated-2.yaml | 0 .../test_data}/crdbop-920/cli-output--1.log | 0 .../test_data/crdbop-920}/cli-output-0.log | 0 .../test_data/crdbop-920}/cli-output-1.log | 0 .../test_data/crdbop-920}/cli-output-2.log | 0 .../test_data}/crdbop-920/delta-0.log | 0 .../test_data}/crdbop-920/delta-1.log | 0 .../test_data}/crdbop-920/delta-2.log | 0 .../test_data/crdbop-920}/events-0.json | 0 .../test_data/crdbop-920}/events-1.json | 0 .../test_data/crdbop-920}/events-2.json | 0 .../crdbop-920}/generation-0-runtime.json | 0 .../crdbop-920/generation-1-runtime.json | 0 .../crdbop-920/generation-2-runtime.json | 0 .../crdbop-920/inputs}/mutated-0.yaml | 0 .../crdbop-920/inputs/mutated-1.yaml | 0 .../crdbop-920/inputs}/mutated-2.yaml | 0 .../test_data}/crdbop-920/mutated--1.yaml | 0 .../test_data/crdbop-920}/mutated-0.yaml | 0 .../test_data}/crdbop-920/mutated-1.yaml | 0 .../test_data/crdbop-920}/mutated-2.yaml | 0 .../test_data}/crdbop-920/operator--1.log | 0 .../test_data}/crdbop-920/operator-0.log | 0 .../test_data}/crdbop-920/operator-1.log | 0 .../test_data}/crdbop-920/operator-2.log | 0 .../test_data}/crdbop-920/result.json | 0 .../crdbop-920/system-state--01.json | 0 .../crdbop-920/system-state-000.json | 0 .../crdbop-920/system-state-001.json | 0 .../crdbop-920/system-state-002.json | 0 .../test_data/crdbop-927}/mutated-0.yaml | 0 .../test_data/crdbop-927/mutated-1.yaml | 0 .../test_data/crdbop-927/mutated-2.yaml | 0 .../test_data/crdbop-953/mutated-0.yaml | 0 .../test_data/crdbop-953/mutated-1.yaml | 0 .../test_data/knop-1137/mutated-0.yaml | 0 .../test_data/knop-1137/mutated-1.yaml | 0 .../test_data/knop-1157/mutated-0.yaml | 0 .../test_data/knop-1157/mutated-1.yaml | 0 .../test_data/knop-1157/mutated-2.yaml | 0 .../test_data/knop-1158/mutated-0.yaml | 0 .../test_data/knop-1158/mutated-1.yaml | 0 .../test_data/mgopone-1024/mutated-0.yaml | 0 .../test_data/mgopone-1024/mutated-1.yaml | 0 .../test_data/mgopone-1054/mutated-0.yaml | 0 .../test_data/mgopone-1054/mutated-1.yaml | 0 .../test_data/mgopone-1055/mutated-0.yaml | 0 .../test_data/mgopone-1055/mutated-1.yaml | 0 .../test_data/mgopone-1072/mutated-0.yaml | 0 .../test_data/mgopone-1072/mutated-1.yaml | 0 .../test_data/mgopone-1072/mutated-2.yaml | 0 .../test_data/mgopone-1074/mutated-0.yaml | 0 .../test_data/mgopone-1074/mutated-1.yaml | 0 .../test_data/mgopone-1245/mutated-0.yaml | 0 .../test_data/mgopone-1245/mutated-1.yaml | 0 .../test_data/mgopone-1251/mutated-0.yaml | 0 .../test_data/mgopone-1251/mutated-1.yaml | 0 .../test_data/mgopone-1251/mutated-2.yaml | 0 .../test_data/mgopone-1252/mutated-0.yaml | 0 .../test_data/mgopone-1252/mutated-1.yaml | 0 .../test_data/mgopone-1252/mutated-2.yaml | 0 .../test_data/mgoptwo-696/mutated-0.yaml | 0 .../test_data/mgoptwo-696/mutated-1.yaml | 0 .../test_data/mgoptwo-696/mutated-2.yaml | 0 .../test_data/mgoptwo-738/mutated-0.yaml | 0 .../test_data/mgoptwo-738/mutated-1.yaml | 0 .../test_data/mgoptwo-742/mutated-0.yaml | 0 .../test_data/mgoptwo-742/mutated-1.yaml | 0 .../test_data/mgoptwo-895/mutated-0.yaml | 0 .../test_data/mgoptwo-895/mutated-1.yaml | 0 .../test_data/mgoptwo-897/mutated-0.yaml | 0 .../test_data/mgoptwo-897/mutated-1.yaml | 0 .../test_data}/rbop-928/mutated-0.yaml | 0 .../test_data}/rbop-928/mutated-1.yaml | 0 .../test_data}/rbop-928/mutated-2.yaml | 0 .../test_data/rbop-968/mutated-0.yaml | 0 .../test_data/rbop-968/mutated-1.yaml | 0 .../test_data/rbop-968/mutated-2.yaml | 0 .../test_data/rbop-992/mutated-0.yaml | 0 .../test_data/rbop-992/mutated-1.yaml | 0 .../test_data/rdopone-400/mutated-0.yaml | 0 .../test_data/rdopone-400/mutated-1.yaml | 0 .../test_data/rdopone-407/mutated-0.yaml | 0 .../test_data/rdopone-407/mutated-1.yaml | 0 .../test_data/rdopone-552/mutated-0.yaml | 0 .../test_data/rdopone-552/mutated-1.yaml | 0 .../test_data/rdoptwo-280/mutated-0.yaml | 0 .../test_data/rdoptwo-280/mutated-1.yaml | 0 .../test_data/rdoptwo-280/mutated-2.yaml | 0 .../test_data/rdoptwo-283/mutated-0.yaml | 0 .../test_data/rdoptwo-283/mutated-1.yaml | 0 .../test_data/rdoptwo-286/mutated-0.yaml | 0 .../test_data/rdoptwo-286/mutated-1.yaml | 0 .../test_data/rdoptwo-287/mutated-0.yaml | 0 .../test_data/rdoptwo-287/mutated-1.yaml | 0 .../test_data/rdoptwo-287/mutated-2.yaml | 0 .../test_data/rdoptwo-290/mutated-0.yaml | 0 .../test_data/rdoptwo-290/mutated-1.yaml | 0 .../test_data/rdoptwo-290/mutated-2.yaml | 0 .../test_data/rdoptwo-291/mutated-0.yaml | 0 .../test_data/rdoptwo-291/mutated-1.yaml | 0 .../test_data/rdoptwo-297/mutated-0.yaml | 0 .../test_data/rdoptwo-297/mutated-1.yaml | 0 .../test_data/rdoptwo-474/mutated-0.yaml | 0 .../test_data/rdoptwo-474/mutated-1.yaml | 0 .../test_data/rdoptwo-480/mutated-0.yaml | 0 .../test_data/rdoptwo-480/mutated-1.yaml | 0 .../test_data/tiop-4613/diff/mutated-0.yaml | 0 .../test_data/tiop-4613/diff/mutated-1.yaml | 0 .../test_data/tiop-4613/diff/mutated-2.yaml | 0 .../test_data/tiop-4613/normal/mutated-0.yaml | 0 .../test_data/tiop-4613/normal/mutated-1.yaml | 0 .../test_data/tiop-4684/mutated-0.yaml | 0 .../test_data/tiop-4684/mutated-1.yaml | 0 .../test_data/tiop-4945/mutated-0.yaml | 0 .../test_data/tiop-4945/mutated-1.yaml | 0 .../test_data/tiop-4946/mutated-0.yaml | 0 .../test_data/tiop-4946/mutated-1.yaml | 0 .../test_data/xtop-1060/mutated-0.yaml | 0 .../test_data/xtop-1060/mutated-1.yaml | 0 .../test_data/xtop-1061/mutated-0.yaml | 0 .../test_data/xtop-1061/mutated-1.yaml | 0 .../test_data/xtop-1061/mutated-2.yaml | 0 .../test_data/xtop-1067/mutated-0.yaml | 0 .../test_data/xtop-1067/mutated-1.yaml | 0 .../test_data/xtop-1068/mutated-0.yaml | 0 .../test_data/xtop-1068/mutated-1.yaml | 0 .../test_data/xtop-1068/mutated-2.yaml | 0 .../test_data/xtop-1069/mutated-0.yaml | 0 .../test_data/xtop-1069/mutated-1.yaml | 0 .../test_data/xtop-1155/mutated-0.yaml | 0 .../test_data/xtop-1155/mutated-1.yaml | 0 .../test_data/zkop-454/mutated-0.yaml | 0 .../test_data/zkop-454/mutated-1.yaml | 0 .../test_data/zkop-454/mutated-2.yaml | 0 .../test_data/zkop-474/mutated-0.yaml | 0 .../test_data/zkop-474/mutated-1.yaml | 0 .../test_data/zkop-513/mutated-0.yaml | 0 .../test_data/zkop-513/mutated-1.yaml | 0 .../test_data/zkop-513/mutated-2.yaml | 0 .../test_data/zkop-540/mutated-0.yaml | 0 .../test_data/zkop-540/mutated-1.yaml | 0 .../test_data/zkop-541/mutated-0.yaml | 0 .../test_data/zkop-541/mutated-1.yaml | 0 .../test_data/zkop-547/mutated-0.yaml | 0 .../test_data/zkop-547/mutated-1.yaml | 0 .../__init__.py} | 0 .../test_cassop_bugs.py | 63 +- test/{ => integration_tests}/test_compare.py | 0 .../{ => integration_tests}/test_crdb_bugs.py | 42 +- .../test_data}/cassop-315/difftest-002.json | 0 .../trial-04-0000/cli-output--1.log | 0 .../cassop-315/trial-04-0000/cli-output-0.log | 0 .../cassop-315/trial-04-0000/cli-output-1.log | 0 .../cassop-315/trial-04-0000/cli-output-2.log | 0 .../cassop-315/trial-04-0000/cli-output-3.log | 0 .../cassop-315/trial-04-0000/cli-output-4.log | 0 .../cassop-315/trial-04-0000/cli-output-5.log | 0 .../cassop-315/trial-04-0000/delta-0.log | 0 .../cassop-315/trial-04-0000/delta-1.log | 0 .../cassop-315/trial-04-0000/delta-2.log | 0 .../cassop-315/trial-04-0000/delta-3.log | 0 .../cassop-315/trial-04-0000/delta-4.log | 0 .../cassop-315/trial-04-0000/delta-5.log | 0 .../cassop-315/trial-04-0000}/events-0.json | 0 .../cassop-315/trial-04-0000}/events-1.json | 0 .../cassop-315/trial-04-0000}/events-2.json | 0 .../cassop-315/trial-04-0000/events-3.json | 0 .../cassop-315/trial-04-0000/events-4.json | 0 .../cassop-315/trial-04-0000/events-5.json | 0 .../trial-04-0000}/generation-0-runtime.json | 0 .../trial-04-0000/generation-1-runtime.json | 0 .../trial-04-0000/generation-2-runtime.json | 0 .../trial-04-0000/generation-3-runtime.json | 0 .../trial-04-0000/generation-4-runtime.json | 0 .../trial-04-0000/generation-5-runtime.json | 0 .../cassop-315/trial-04-0000/mutated--1.yaml | 0 .../cassop-315/trial-04-0000}/mutated-0.yaml | 0 .../cassop-315/trial-04-0000/mutated-1.yaml | 0 .../cassop-315/trial-04-0000/mutated-2.yaml | 0 .../cassop-315/trial-04-0000/mutated-3.yaml | 0 .../cassop-315/trial-04-0000/mutated-4.yaml | 0 .../cassop-315/trial-04-0000/mutated-5.yaml | 0 .../cassop-315/trial-04-0000/operator--1.log | 0 .../cassop-315/trial-04-0000/operator-0.log | 0 .../cassop-315/trial-04-0000/operator-1.log | 0 .../cassop-315/trial-04-0000/operator-2.log | 0 .../cassop-315/trial-04-0000/operator-3.log | 0 .../cassop-315/trial-04-0000/operator-4.log | 0 .../cassop-315/trial-04-0000/operator-5.log | 0 .../trial-04-0000/post-result-0-baseline.json | 0 .../post-result-0-canonicalization.json | 0 .../post-result-0-dependency_analysis.json | 0 .../post-result-0-taint_analysis.json | 0 .../trial-04-0000/post-result-1-baseline.json | 0 .../post-result-1-canonicalization.json | 0 .../post-result-1-dependency_analysis.json | 0 .../post-result-1-taint_analysis.json | 0 .../trial-04-0000/post-result-2-baseline.json | 0 .../post-result-2-canonicalization.json | 0 .../post-result-2-dependency_analysis.json | 0 .../post-result-2-taint_analysis.json | 0 .../trial-04-0000/post-result-3-baseline.json | 0 .../post-result-3-canonicalization.json | 0 .../post-result-3-dependency_analysis.json | 0 .../post-result-3-taint_analysis.json | 0 .../trial-04-0000/post-result-4-baseline.json | 0 .../post-result-4-canonicalization.json | 0 .../post-result-4-dependency_analysis.json | 0 .../post-result-4-taint_analysis.json | 0 .../trial-04-0000/post-result-5-baseline.json | 0 .../post-result-5-canonicalization.json | 0 .../post-result-5-dependency_analysis.json | 0 .../post-result-5-taint_analysis.json | 0 .../cassop-315/trial-04-0000/result.json | 0 .../trial-04-0000/system-state--01.json | 0 .../trial-04-0000/system-state-000.json | 0 .../trial-04-0000/system-state-001.json | 0 .../trial-04-0000/system-state-002.json | 0 .../trial-04-0000/system-state-003.json | 0 .../trial-04-0000/system-state-004.json | 0 .../trial-04-0000/system-state-005.json | 0 .../test_data}/cassop-330/cli-output--1.log | 0 .../test_data}/cassop-330/cli-output-0.log | 0 .../test_data}/cassop-330/cli-output-1.log | 0 .../test_data}/cassop-330/cli-output-2.log | 0 .../test_data}/cassop-330/delta-0.log | 0 .../test_data}/cassop-330/delta-1.log | 0 .../test_data}/cassop-330/delta-2.log | 2 + .../test_data}/cassop-330/difftest-006.json | 0 .../test_data}/cassop-330/events.log | 0 .../cassop-330}/generation-0-runtime.json | 0 .../cassop-330/generation-1-runtime.json | 0 .../cassop-330/generation-2-runtime.json | 0 .../test_data}/cassop-330/mutated--1.yaml | 0 .../test_data/cassop-330}/mutated-0.yaml | 0 .../test_data}/cassop-330/mutated-1.yaml | 0 .../test_data}/cassop-330/mutated-2.yaml | 0 .../test_data}/cassop-330/operator--1.log | 0 .../test_data}/cassop-330/operator-0.log | 0 .../test_data}/cassop-330/operator-1.log | 0 .../test_data}/cassop-330/operator-2.log | 0 .../cassop-330/post-result-0-baseline.json | 0 .../post-result-0-canonicalization.json | 0 .../post-result-0-dependency_analysis.json | 0 .../post-result-0-taint_analysis.json | 0 .../cassop-330/post-result-1-baseline.json | 0 .../post-result-1-canonicalization.json | 0 .../post-result-1-dependency_analysis.json | 0 .../post-result-1-taint_analysis.json | 0 .../cassop-330/post-result-2-baseline.json | 0 .../post-result-2-canonicalization.json | 0 .../post-result-2-dependency_analysis.json | 0 .../post-result-2-taint_analysis.json | 0 .../test_data}/cassop-330/result.json | 0 .../cassop-330/system-state--01.json | 0 .../cassop-330/system-state-000.json | 0 .../cassop-330/system-state-001.json | 0 .../cassop-330/system-state-002.json | 0 .../trial-00-0001/cli-output--1.log | 0 .../cassop-330/trial-00-0001/cli-output-0.log | 0 .../cassop-330/trial-00-0001/cli-output-1.log | 0 .../cassop-330/trial-00-0001/cli-output-2.log | 0 .../cassop-330/trial-00-0001/cli-output-3.log | 0 .../cassop-330/trial-00-0001/cli-output-4.log | 0 .../cassop-330/trial-00-0001/cli-output-5.log | 0 .../cassop-330/trial-00-0001/cli-output-6.log | 0 .../cassop-330/trial-00-0001/cli-output-7.log | 0 .../cassop-330/trial-00-0001/cli-output-8.log | 0 .../cassop-330/trial-00-0001/delta-0.log | 0 .../cassop-330/trial-00-0001/delta-1.log | 0 .../cassop-330/trial-00-0001/delta-2.log | 0 .../cassop-330/trial-00-0001/delta-3.log | 0 .../cassop-330/trial-00-0001/delta-4.log | 0 .../cassop-330/trial-00-0001/delta-5.log | 0 .../cassop-330/trial-00-0001/delta-6.log | 0 .../cassop-330/trial-00-0001/delta-7.log | 0 .../cassop-330/trial-00-0001/delta-8.log | 0 .../cassop-330/trial-00-0001}/events-0.json | 0 .../cassop-330/trial-00-0001}/events-1.json | 0 .../cassop-330/trial-00-0001}/events-2.json | 0 .../cassop-330/trial-00-0001/events-3.json | 0 .../cassop-330/trial-00-0001/events-4.json | 0 .../cassop-330/trial-00-0001/events-5.json | 0 .../cassop-330/trial-00-0001/events-6.json | 0 .../cassop-330/trial-00-0001/events-7.json | 0 .../cassop-330/trial-00-0001/events-8.json | 0 .../trial-00-0001}/generation-0-runtime.json | 0 .../trial-00-0001/generation-1-runtime.json | 0 .../trial-00-0001/generation-2-runtime.json | 0 .../trial-00-0001/generation-3-runtime.json | 0 .../trial-00-0001/generation-4-runtime.json | 0 .../trial-00-0001/generation-5-runtime.json | 0 .../trial-00-0001/generation-6-runtime.json | 0 .../trial-00-0001/generation-7-runtime.json | 0 .../trial-00-0001/generation-8-runtime.json | 0 .../cassop-330/trial-00-0001/mutated--1.yaml | 0 .../cassop-330/trial-00-0001}/mutated-0.yaml | 0 .../cassop-330/trial-00-0001/mutated-1.yaml | 0 .../cassop-330/trial-00-0001/mutated-2.yaml | 0 .../cassop-330/trial-00-0001/mutated-3.yaml | 0 .../cassop-330/trial-00-0001/mutated-4.yaml | 0 .../cassop-330/trial-00-0001/mutated-5.yaml | 0 .../cassop-330/trial-00-0001/mutated-6.yaml | 0 .../cassop-330/trial-00-0001/mutated-7.yaml | 0 .../cassop-330/trial-00-0001/mutated-8.yaml | 0 .../cassop-330/trial-00-0001/operator--1.log | 0 .../cassop-330/trial-00-0001/operator-0.log | 0 .../cassop-330/trial-00-0001/operator-1.log | 0 .../cassop-330/trial-00-0001/operator-2.log} | 0 .../cassop-330/trial-00-0001/operator-3.log | 0 .../cassop-330/trial-00-0001/operator-4.log | 0 .../cassop-330/trial-00-0001/operator-5.log | 0 .../cassop-330/trial-00-0001/operator-6.log | 0 .../cassop-330/trial-00-0001/operator-7.log | 0 .../cassop-330/trial-00-0001/operator-8.log | 0 .../trial-00-0001/post-result-0-baseline.json | 0 .../post-result-0-canonicalization.json | 0 .../post-result-0-dependency_analysis.json | 0 .../post-result-0-taint_analysis.json | 0 .../trial-00-0001/post-result-1-baseline.json | 0 .../post-result-1-canonicalization.json | 0 .../post-result-1-dependency_analysis.json | 0 .../post-result-1-taint_analysis.json | 0 .../trial-00-0001/post-result-2-baseline.json | 0 .../post-result-2-canonicalization.json | 0 .../post-result-2-dependency_analysis.json | 0 .../post-result-2-taint_analysis.json | 0 .../trial-00-0001/post-result-3-baseline.json | 0 .../post-result-3-canonicalization.json | 0 .../post-result-3-dependency_analysis.json | 0 .../post-result-3-taint_analysis.json | 0 .../trial-00-0001/post-result-4-baseline.json | 0 .../post-result-4-canonicalization.json | 0 .../post-result-4-dependency_analysis.json | 0 .../post-result-4-taint_analysis.json | 0 .../trial-00-0001/post-result-5-baseline.json | 0 .../post-result-5-canonicalization.json | 0 .../post-result-5-dependency_analysis.json | 0 .../post-result-5-taint_analysis.json | 0 .../trial-00-0001/post-result-6-baseline.json | 0 .../post-result-6-canonicalization.json | 0 .../post-result-6-dependency_analysis.json | 0 .../post-result-6-taint_analysis.json | 0 .../trial-00-0001/post-result-7-baseline.json | 0 .../post-result-7-canonicalization.json | 0 .../post-result-7-dependency_analysis.json | 0 .../post-result-7-taint_analysis.json | 0 .../trial-00-0001/post-result-8-baseline.json | 0 .../post-result-8-canonicalization.json | 0 .../post-result-8-dependency_analysis.json | 0 .../post-result-8-taint_analysis.json | 0 .../cassop-330/trial-00-0001/result.json | 0 .../trial-00-0001/system-state--01.json | 0 .../trial-00-0001/system-state-000.json | 0 .../trial-00-0001/system-state-001.json | 0 .../trial-00-0001/system-state-002.json | 0 .../trial-00-0001/system-state-003.json | 0 .../trial-00-0001/system-state-004.json | 0 .../trial-00-0001/system-state-005.json | 0 .../trial-00-0001/system-state-006.json | 0 .../trial-00-0001/system-state-007.json | 0 .../trial-00-0001/system-state-008.json | 0 .../cassop-330/trial-demo}/mutated-0.yaml | 0 .../cassop-330/trial-demo/mutated-1.yaml | 0 .../cassop-330/trial-demo/mutated-2.yaml | 0 .../test_data}/cassop_bugs_config.yaml | 0 .../test_data}/cassop_crd.yaml | 0 .../test_data}/crdb_bugs_config.yaml | 0 .../test_data}/crdb_crd.yaml | 0 .../test_data/crdbop-919}/cli-output-0.log | 0 .../test_data/crdbop-919}/cli-output-1.log | 0 .../test_data/crdbop-919}/cli-output-2.log | 0 .../test_data}/crdbop-919/delta-0.log | 0 .../test_data}/crdbop-919/delta-1.log | 0 .../test_data}/crdbop-919/delta-2.log | 0 .../test_data/crdbop-919}/events-0.json | 0 .../test_data/crdbop-919}/events-1.json | 0 .../test_data/crdbop-919}/events-2.json | 0 .../crdbop-919}/generation-0-runtime.json | 0 .../crdbop-919/generation-1-runtime.json | 0 .../crdbop-919/generation-2-runtime.json | 0 .../test_data/crdbop-919}/mutated-0.yaml | 0 .../test_data/crdbop-919/mutated-1.yaml | 0 .../test_data/crdbop-919/mutated-2.yaml | 0 .../test_data}/crdbop-919/operator-0.log | 0 .../test_data}/crdbop-919/operator-1.log | 0 .../test_data}/crdbop-919/operator-2.log | 0 .../test_data}/crdbop-919/result.json | 0 .../crdbop-919/system-state-000.json | 0 .../crdbop-919/system-state-001.json | 0 .../crdbop-919/system-state-002.json | 0 .../test_data/crdbop-920/cli-output--1.log | 0 .../test_data/crdbop-920/cli-output-0.log | 0 .../test_data/crdbop-920/cli-output-1.log | 0 .../test_data/crdbop-920/cli-output-2.log | 0 .../test_data/crdbop-920/delta-0.log | 0 .../test_data/crdbop-920/delta-1.log | 0 .../test_data/crdbop-920/delta-2.log | 2 + .../test_data/crdbop-920}/events-0.json | 0 .../test_data/crdbop-920}/events-1.json | 0 .../test_data/crdbop-920}/events-2.json | 0 .../crdbop-920}/generation-0-runtime.json | 0 .../crdbop-920/generation-1-runtime.json | 0 .../crdbop-920/generation-2-runtime.json | 0 .../test_data/crdbop-920/mutated--1.yaml | 0 .../test_data/crdbop-920}/mutated-0.yaml | 0 .../test_data/crdbop-920/mutated-1.yaml | 0 .../test_data/crdbop-920/mutated-2.yaml | 0 .../test_data/crdbop-920/operator--1.log | 0 .../test_data/crdbop-920/operator-0.log | 0 .../test_data/crdbop-920/operator-1.log | 0 .../test_data/crdbop-920/operator-2.log | 0 .../test_data/crdbop-920/result.json | 0 .../crdbop-920/system-state--01.json | 0 .../crdbop-920/system-state-000.json | 0 .../crdbop-920/system-state-001.json | 0 .../crdbop-920/system-state-002.json | 0 ...atabases.spotahome.com_redisfailovers.yaml | 0 ...mdb.percona.com_perconaservermongodbs.yaml | 0 .../test_data}/rabbitmq_crd.yaml | 0 .../test_data}/rbop-928/cli-output--1.log | 0 .../test_data}/rbop-928/cli-output-0.log | 0 .../test_data}/rbop-928/cli-output-1.log | 0 .../test_data}/rbop-928/cli-output-2.log | 0 .../test_data}/rbop-928/delta-0.log | 0 .../test_data}/rbop-928/delta-1.log | 0 .../test_data}/rbop-928/delta-2.log | 2 + .../test_data/rbop-928}/events-0.json | 0 .../test_data/rbop-928}/events-1.json | 0 .../test_data/rbop-928}/events-2.json | 0 .../rbop-928}/generation-0-runtime.json | 0 .../rbop-928/generation-1-runtime.json | 0 .../rbop-928/generation-2-runtime.json | 0 .../test_data}/rbop-928/mutated--1.yaml | 0 .../test_data/rbop-928/mutated-0.yaml | 0 .../test_data/rbop-928/mutated-1.yaml | 0 .../test_data/rbop-928/mutated-2.yaml | 0 .../test_data}/rbop-928/operator--1.log | 0 .../test_data}/rbop-928/operator-0.log | 0 .../test_data}/rbop-928/operator-1.log | 0 .../test_data}/rbop-928/operator-2.log | 0 .../test_data}/rbop-928/result.json | 0 .../test_data}/rbop-928/system-state--01.json | 0 .../test_data}/rbop-928/system-state-000.json | 0 .../test_data}/rbop-928/system-state-001.json | 0 .../test_data}/rbop-928/system-state-002.json | 0 .../test_data}/rbop_bugs_config.yaml | 0 test/integration_tests/test_known_schemas.py | 156 + .../test_kubernetes_engines.py | 14 +- .../{ => integration_tests}/test_rbop_bugs.py | 42 +- test/mutated-0.yaml | 39 - test/mutated-1.yaml | 40 - test/operator-0.log | 211 - test/operator-1.log | 253 - test/system-state-000.json | 14279 --------------- test/system-state-001.json | 14280 ---------------- test/test_checker.py | 59 - test/test_common.py | 60 - test/test_known_schemas.py | 133 - 482 files changed, 421 insertions(+), 29465 deletions(-) create mode 100644 pyproject.toml delete mode 100644 test/cli-output-0.log delete mode 100644 test/cli-output-1.log rename test/{cassop-330/trial-00-0001/operator-2.log => e2e_tests/__init__.py} (100%) rename test/{ => e2e_tests}/test_bug_reproduction.py (73%) rename test/{cassop-315/trial-04-0000 => e2e_tests/test_data/cassop-315/inputs}/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/cassop-315/inputs/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/cassop-315/inputs/mutated-2.yaml (100%) rename test/{ => e2e_tests}/test_data/cassop-315/inputs/mutated-3.yaml (100%) rename test/{cassop-330 => e2e_tests/test_data/cassop-330/trial-demo}/mutated-0.yaml (100%) rename test/{ => e2e_tests/test_data}/cassop-330/trial-demo/mutated-1.yaml (100%) rename test/{ => e2e_tests/test_data}/cassop-330/trial-demo/mutated-2.yaml (100%) rename test/{cassop-330/trial-00-0001 => e2e_tests/test_data/cassop-334}/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/cassop-334/mutated-1.yaml (100%) rename test/{cassop-330/trial-demo => e2e_tests/test_data/cassop-471}/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/cassop-471/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/cassop-471/mutated-2.yaml (100%) rename test/{crdbop-919 => e2e_tests/test_data/crdbop-918}/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/crdbop-918/mutated-1.yaml (100%) rename test/{crdbop-920 => e2e_tests/test_data/crdbop-919}/mutated-0.yaml (100%) rename test/{ => e2e_tests/test_data}/crdbop-919/mutated-1.yaml (100%) rename test/{ => e2e_tests/test_data}/crdbop-919/mutated-2.yaml (100%) rename test/{ => e2e_tests/test_data}/crdbop-920/cli-output--1.log (100%) rename test/{crdbop-919 => e2e_tests/test_data/crdbop-920}/cli-output-0.log (100%) rename test/{crdbop-919 => e2e_tests/test_data/crdbop-920}/cli-output-1.log (100%) rename test/{crdbop-919 => e2e_tests/test_data/crdbop-920}/cli-output-2.log (100%) rename test/{ => e2e_tests/test_data}/crdbop-920/delta-0.log (100%) rename test/{ => e2e_tests/test_data}/crdbop-920/delta-1.log (100%) rename test/{ => e2e_tests/test_data}/crdbop-920/delta-2.log (100%) rename test/{cassop-315/trial-04-0000 => e2e_tests/test_data/crdbop-920}/events-0.json (100%) rename test/{cassop-315/trial-04-0000 => e2e_tests/test_data/crdbop-920}/events-1.json (100%) rename test/{cassop-315/trial-04-0000 => e2e_tests/test_data/crdbop-920}/events-2.json (100%) rename test/{cassop-315/trial-04-0000 => e2e_tests/test_data/crdbop-920}/generation-0-runtime.json (100%) rename test/{ => e2e_tests/test_data}/crdbop-920/generation-1-runtime.json (100%) rename test/{ => e2e_tests/test_data}/crdbop-920/generation-2-runtime.json (100%) rename test/{test_data/crdbop-918 => e2e_tests/test_data/crdbop-920/inputs}/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/crdbop-920/inputs/mutated-1.yaml (100%) rename test/{crdbop-920 => e2e_tests/test_data/crdbop-920/inputs}/mutated-2.yaml (100%) rename test/{ => e2e_tests/test_data}/crdbop-920/mutated--1.yaml (100%) rename test/{test_data/crdbop-919 => e2e_tests/test_data/crdbop-920}/mutated-0.yaml (100%) rename test/{ => e2e_tests/test_data}/crdbop-920/mutated-1.yaml (100%) rename test/{test_data/crdbop-920/inputs => e2e_tests/test_data/crdbop-920}/mutated-2.yaml (100%) rename test/{ => e2e_tests/test_data}/crdbop-920/operator--1.log (100%) rename test/{ => e2e_tests/test_data}/crdbop-920/operator-0.log (100%) rename test/{ => e2e_tests/test_data}/crdbop-920/operator-1.log (100%) rename test/{ => e2e_tests/test_data}/crdbop-920/operator-2.log (100%) rename test/{ => e2e_tests/test_data}/crdbop-920/result.json (100%) rename test/{ => e2e_tests}/test_data/crdbop-920/system-state--01.json (100%) rename test/{ => e2e_tests}/test_data/crdbop-920/system-state-000.json (100%) rename test/{ => e2e_tests}/test_data/crdbop-920/system-state-001.json (100%) rename test/{ => e2e_tests}/test_data/crdbop-920/system-state-002.json (100%) rename test/{test_data/crdbop-920/inputs => e2e_tests/test_data/crdbop-927}/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/crdbop-927/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/crdbop-927/mutated-2.yaml (100%) rename test/{ => e2e_tests}/test_data/crdbop-953/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/crdbop-953/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/knop-1137/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/knop-1137/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/knop-1157/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/knop-1157/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/knop-1157/mutated-2.yaml (100%) rename test/{ => e2e_tests}/test_data/knop-1158/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/knop-1158/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/mgopone-1024/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/mgopone-1024/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/mgopone-1054/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/mgopone-1054/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/mgopone-1055/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/mgopone-1055/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/mgopone-1072/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/mgopone-1072/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/mgopone-1072/mutated-2.yaml (100%) rename test/{ => e2e_tests}/test_data/mgopone-1074/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/mgopone-1074/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/mgopone-1245/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/mgopone-1245/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/mgopone-1251/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/mgopone-1251/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/mgopone-1251/mutated-2.yaml (100%) rename test/{ => e2e_tests}/test_data/mgopone-1252/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/mgopone-1252/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/mgopone-1252/mutated-2.yaml (100%) rename test/{ => e2e_tests}/test_data/mgoptwo-696/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/mgoptwo-696/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/mgoptwo-696/mutated-2.yaml (100%) rename test/{ => e2e_tests}/test_data/mgoptwo-738/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/mgoptwo-738/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/mgoptwo-742/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/mgoptwo-742/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/mgoptwo-895/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/mgoptwo-895/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/mgoptwo-897/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/mgoptwo-897/mutated-1.yaml (100%) rename test/{ => e2e_tests/test_data}/rbop-928/mutated-0.yaml (100%) rename test/{ => e2e_tests/test_data}/rbop-928/mutated-1.yaml (100%) rename test/{ => e2e_tests/test_data}/rbop-928/mutated-2.yaml (100%) rename test/{ => e2e_tests}/test_data/rbop-968/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/rbop-968/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/rbop-968/mutated-2.yaml (100%) rename test/{ => e2e_tests}/test_data/rbop-992/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/rbop-992/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/rdopone-400/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/rdopone-400/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/rdopone-407/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/rdopone-407/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/rdopone-552/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/rdopone-552/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-280/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-280/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-280/mutated-2.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-283/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-283/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-286/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-286/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-287/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-287/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-287/mutated-2.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-290/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-290/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-290/mutated-2.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-291/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-291/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-297/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-297/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-474/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-474/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-480/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/rdoptwo-480/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/tiop-4613/diff/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/tiop-4613/diff/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/tiop-4613/diff/mutated-2.yaml (100%) rename test/{ => e2e_tests}/test_data/tiop-4613/normal/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/tiop-4613/normal/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/tiop-4684/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/tiop-4684/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/tiop-4945/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/tiop-4945/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/tiop-4946/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/tiop-4946/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/xtop-1060/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/xtop-1060/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/xtop-1061/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/xtop-1061/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/xtop-1061/mutated-2.yaml (100%) rename test/{ => e2e_tests}/test_data/xtop-1067/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/xtop-1067/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/xtop-1068/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/xtop-1068/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/xtop-1068/mutated-2.yaml (100%) rename test/{ => e2e_tests}/test_data/xtop-1069/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/xtop-1069/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/xtop-1155/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/xtop-1155/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/zkop-454/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/zkop-454/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/zkop-454/mutated-2.yaml (100%) rename test/{ => e2e_tests}/test_data/zkop-474/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/zkop-474/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/zkop-513/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/zkop-513/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/zkop-513/mutated-2.yaml (100%) rename test/{ => e2e_tests}/test_data/zkop-540/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/zkop-540/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/zkop-541/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/zkop-541/mutated-1.yaml (100%) rename test/{ => e2e_tests}/test_data/zkop-547/mutated-0.yaml (100%) rename test/{ => e2e_tests}/test_data/zkop-547/mutated-1.yaml (100%) rename test/{cassop-330/trial-00-0001/operator-4.log => integration_tests/__init__.py} (100%) rename test/{ => integration_tests}/test_cassop_bugs.py (50%) rename test/{ => integration_tests}/test_compare.py (100%) rename test/{ => integration_tests}/test_crdb_bugs.py (54%) rename test/{ => integration_tests/test_data}/cassop-315/difftest-002.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/cli-output--1.log (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/cli-output-0.log (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/cli-output-1.log (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/cli-output-2.log (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/cli-output-3.log (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/cli-output-4.log (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/cli-output-5.log (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/delta-0.log (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/delta-1.log (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/delta-2.log (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/delta-3.log (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/delta-4.log (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/delta-5.log (100%) rename test/{cassop-330/trial-00-0001 => integration_tests/test_data/cassop-315/trial-04-0000}/events-0.json (100%) rename test/{cassop-330/trial-00-0001 => integration_tests/test_data/cassop-315/trial-04-0000}/events-1.json (100%) rename test/{cassop-330/trial-00-0001 => integration_tests/test_data/cassop-315/trial-04-0000}/events-2.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/events-3.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/events-4.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/events-5.json (100%) rename test/{cassop-330 => integration_tests/test_data/cassop-315/trial-04-0000}/generation-0-runtime.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/generation-1-runtime.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/generation-2-runtime.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/generation-3-runtime.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/generation-4-runtime.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/generation-5-runtime.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/mutated--1.yaml (100%) rename test/{test_data/cassop-315/inputs => integration_tests/test_data/cassop-315/trial-04-0000}/mutated-0.yaml (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/mutated-1.yaml (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/mutated-2.yaml (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/mutated-3.yaml (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/mutated-4.yaml (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/mutated-5.yaml (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/operator--1.log (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/operator-0.log (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/operator-1.log (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/operator-2.log (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/operator-3.log (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/operator-4.log (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/operator-5.log (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-0-baseline.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-0-canonicalization.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-0-dependency_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-0-taint_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-1-baseline.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-1-canonicalization.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-1-dependency_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-1-taint_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-2-baseline.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-2-canonicalization.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-2-dependency_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-2-taint_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-3-baseline.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-3-canonicalization.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-3-dependency_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-3-taint_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-4-baseline.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-4-canonicalization.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-4-dependency_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-4-taint_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-5-baseline.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-5-canonicalization.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-5-dependency_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/post-result-5-taint_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/result.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/system-state--01.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/system-state-000.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/system-state-001.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/system-state-002.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/system-state-003.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/system-state-004.json (100%) rename test/{ => integration_tests/test_data}/cassop-315/trial-04-0000/system-state-005.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/cli-output--1.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/cli-output-0.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/cli-output-1.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/cli-output-2.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/delta-0.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/delta-1.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/delta-2.log (98%) rename test/{ => integration_tests/test_data}/cassop-330/difftest-006.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/events.log (100%) rename test/{cassop-330/trial-00-0001 => integration_tests/test_data/cassop-330}/generation-0-runtime.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/generation-1-runtime.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/generation-2-runtime.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/mutated--1.yaml (100%) rename test/{test_data/cassop-330/trial-demo => integration_tests/test_data/cassop-330}/mutated-0.yaml (100%) rename test/{ => integration_tests/test_data}/cassop-330/mutated-1.yaml (100%) rename test/{ => integration_tests/test_data}/cassop-330/mutated-2.yaml (100%) rename test/{ => integration_tests/test_data}/cassop-330/operator--1.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/operator-0.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/operator-1.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/operator-2.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/post-result-0-baseline.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/post-result-0-canonicalization.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/post-result-0-dependency_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/post-result-0-taint_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/post-result-1-baseline.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/post-result-1-canonicalization.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/post-result-1-dependency_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/post-result-1-taint_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/post-result-2-baseline.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/post-result-2-canonicalization.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/post-result-2-dependency_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/post-result-2-taint_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/result.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/system-state--01.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/system-state-000.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/system-state-001.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/system-state-002.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/cli-output--1.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/cli-output-0.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/cli-output-1.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/cli-output-2.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/cli-output-3.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/cli-output-4.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/cli-output-5.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/cli-output-6.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/cli-output-7.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/cli-output-8.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/delta-0.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/delta-1.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/delta-2.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/delta-3.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/delta-4.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/delta-5.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/delta-6.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/delta-7.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/delta-8.log (100%) rename test/{crdbop-919 => integration_tests/test_data/cassop-330/trial-00-0001}/events-0.json (100%) rename test/{crdbop-919 => integration_tests/test_data/cassop-330/trial-00-0001}/events-1.json (100%) rename test/{crdbop-919 => integration_tests/test_data/cassop-330/trial-00-0001}/events-2.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/events-3.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/events-4.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/events-5.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/events-6.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/events-7.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/events-8.json (100%) rename test/{crdbop-919 => integration_tests/test_data/cassop-330/trial-00-0001}/generation-0-runtime.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/generation-1-runtime.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/generation-2-runtime.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/generation-3-runtime.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/generation-4-runtime.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/generation-5-runtime.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/generation-6-runtime.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/generation-7-runtime.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/generation-8-runtime.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/mutated--1.yaml (100%) rename test/{test_data/cassop-334 => integration_tests/test_data/cassop-330/trial-00-0001}/mutated-0.yaml (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/mutated-1.yaml (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/mutated-2.yaml (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/mutated-3.yaml (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/mutated-4.yaml (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/mutated-5.yaml (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/mutated-6.yaml (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/mutated-7.yaml (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/mutated-8.yaml (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/operator--1.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/operator-0.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/operator-1.log (100%) rename test/{cassop-330/trial-00-0001/operator-6.log => integration_tests/test_data/cassop-330/trial-00-0001/operator-2.log} (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/operator-3.log (100%) create mode 100644 test/integration_tests/test_data/cassop-330/trial-00-0001/operator-4.log rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/operator-5.log (100%) create mode 100644 test/integration_tests/test_data/cassop-330/trial-00-0001/operator-6.log rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/operator-7.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/operator-8.log (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-0-baseline.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-0-canonicalization.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-0-dependency_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-0-taint_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-1-baseline.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-1-canonicalization.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-1-dependency_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-1-taint_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-2-baseline.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-2-canonicalization.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-2-dependency_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-2-taint_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-3-baseline.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-3-canonicalization.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-3-dependency_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-3-taint_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-4-baseline.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-4-canonicalization.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-4-dependency_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-4-taint_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-5-baseline.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-5-canonicalization.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-5-dependency_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-5-taint_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-6-baseline.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-6-canonicalization.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-6-dependency_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-6-taint_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-7-baseline.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-7-canonicalization.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-7-dependency_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-7-taint_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-8-baseline.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-8-canonicalization.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-8-dependency_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/post-result-8-taint_analysis.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/result.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/system-state--01.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/system-state-000.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/system-state-001.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/system-state-002.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/system-state-003.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/system-state-004.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/system-state-005.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/system-state-006.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/system-state-007.json (100%) rename test/{ => integration_tests/test_data}/cassop-330/trial-00-0001/system-state-008.json (100%) rename test/{test_data/cassop-471 => integration_tests/test_data/cassop-330/trial-demo}/mutated-0.yaml (100%) rename test/{ => integration_tests}/test_data/cassop-330/trial-demo/mutated-1.yaml (100%) rename test/{ => integration_tests}/test_data/cassop-330/trial-demo/mutated-2.yaml (100%) rename test/{ => integration_tests/test_data}/cassop_bugs_config.yaml (100%) rename test/{ => integration_tests/test_data}/cassop_crd.yaml (100%) rename test/{ => integration_tests/test_data}/crdb_bugs_config.yaml (100%) rename test/{ => integration_tests/test_data}/crdb_crd.yaml (100%) rename test/{crdbop-920 => integration_tests/test_data/crdbop-919}/cli-output-0.log (100%) rename test/{crdbop-920 => integration_tests/test_data/crdbop-919}/cli-output-1.log (100%) rename test/{crdbop-920 => integration_tests/test_data/crdbop-919}/cli-output-2.log (100%) rename test/{ => integration_tests/test_data}/crdbop-919/delta-0.log (100%) rename test/{ => integration_tests/test_data}/crdbop-919/delta-1.log (100%) rename test/{ => integration_tests/test_data}/crdbop-919/delta-2.log (100%) rename test/{crdbop-920 => integration_tests/test_data/crdbop-919}/events-0.json (100%) rename test/{crdbop-920 => integration_tests/test_data/crdbop-919}/events-1.json (100%) rename test/{crdbop-920 => integration_tests/test_data/crdbop-919}/events-2.json (100%) rename test/{crdbop-920 => integration_tests/test_data/crdbop-919}/generation-0-runtime.json (100%) rename test/{ => integration_tests/test_data}/crdbop-919/generation-1-runtime.json (100%) rename test/{ => integration_tests/test_data}/crdbop-919/generation-2-runtime.json (100%) rename test/{test_data/crdbop-920 => integration_tests/test_data/crdbop-919}/mutated-0.yaml (100%) rename test/{ => integration_tests}/test_data/crdbop-919/mutated-1.yaml (100%) rename test/{ => integration_tests}/test_data/crdbop-919/mutated-2.yaml (100%) rename test/{ => integration_tests/test_data}/crdbop-919/operator-0.log (100%) rename test/{ => integration_tests/test_data}/crdbop-919/operator-1.log (100%) rename test/{ => integration_tests/test_data}/crdbop-919/operator-2.log (100%) rename test/{ => integration_tests/test_data}/crdbop-919/result.json (100%) rename test/{ => integration_tests/test_data}/crdbop-919/system-state-000.json (100%) rename test/{ => integration_tests/test_data}/crdbop-919/system-state-001.json (100%) rename test/{ => integration_tests/test_data}/crdbop-919/system-state-002.json (100%) rename test/{ => integration_tests}/test_data/crdbop-920/cli-output--1.log (100%) rename test/{ => integration_tests}/test_data/crdbop-920/cli-output-0.log (100%) rename test/{ => integration_tests}/test_data/crdbop-920/cli-output-1.log (100%) rename test/{ => integration_tests}/test_data/crdbop-920/cli-output-2.log (100%) rename test/{ => integration_tests}/test_data/crdbop-920/delta-0.log (100%) rename test/{ => integration_tests}/test_data/crdbop-920/delta-1.log (100%) rename test/{ => integration_tests}/test_data/crdbop-920/delta-2.log (96%) rename test/{rbop-928 => integration_tests/test_data/crdbop-920}/events-0.json (100%) rename test/{rbop-928 => integration_tests/test_data/crdbop-920}/events-1.json (100%) rename test/{rbop-928 => integration_tests/test_data/crdbop-920}/events-2.json (100%) rename test/{rbop-928 => integration_tests/test_data/crdbop-920}/generation-0-runtime.json (100%) rename test/{ => integration_tests}/test_data/crdbop-920/generation-1-runtime.json (100%) rename test/{ => integration_tests}/test_data/crdbop-920/generation-2-runtime.json (100%) rename test/{ => integration_tests}/test_data/crdbop-920/mutated--1.yaml (100%) rename test/{test_data/crdbop-927 => integration_tests/test_data/crdbop-920}/mutated-0.yaml (100%) rename test/{ => integration_tests}/test_data/crdbop-920/mutated-1.yaml (100%) rename test/{ => integration_tests}/test_data/crdbop-920/mutated-2.yaml (100%) rename test/{ => integration_tests}/test_data/crdbop-920/operator--1.log (100%) rename test/{ => integration_tests}/test_data/crdbop-920/operator-0.log (100%) rename test/{ => integration_tests}/test_data/crdbop-920/operator-1.log (100%) rename test/{ => integration_tests}/test_data/crdbop-920/operator-2.log (100%) rename test/{ => integration_tests}/test_data/crdbop-920/result.json (100%) rename test/{ => integration_tests/test_data}/crdbop-920/system-state--01.json (100%) rename test/{ => integration_tests/test_data}/crdbop-920/system-state-000.json (100%) rename test/{ => integration_tests/test_data}/crdbop-920/system-state-001.json (100%) rename test/{ => integration_tests/test_data}/crdbop-920/system-state-002.json (100%) rename test/{ => integration_tests/test_data}/databases.spotahome.com_redisfailovers.yaml (100%) rename test/{ => integration_tests/test_data}/psmdb.percona.com_perconaservermongodbs.yaml (100%) rename test/{ => integration_tests/test_data}/rabbitmq_crd.yaml (100%) rename test/{ => integration_tests/test_data}/rbop-928/cli-output--1.log (100%) rename test/{ => integration_tests/test_data}/rbop-928/cli-output-0.log (100%) rename test/{ => integration_tests/test_data}/rbop-928/cli-output-1.log (100%) rename test/{ => integration_tests/test_data}/rbop-928/cli-output-2.log (100%) rename test/{ => integration_tests/test_data}/rbop-928/delta-0.log (100%) rename test/{ => integration_tests/test_data}/rbop-928/delta-1.log (100%) rename test/{ => integration_tests/test_data}/rbop-928/delta-2.log (99%) rename test/{test_data/crdbop-920 => integration_tests/test_data/rbop-928}/events-0.json (100%) rename test/{test_data/crdbop-920 => integration_tests/test_data/rbop-928}/events-1.json (100%) rename test/{test_data/crdbop-920 => integration_tests/test_data/rbop-928}/events-2.json (100%) rename test/{test_data/crdbop-920 => integration_tests/test_data/rbop-928}/generation-0-runtime.json (100%) rename test/{ => integration_tests/test_data}/rbop-928/generation-1-runtime.json (100%) rename test/{ => integration_tests/test_data}/rbop-928/generation-2-runtime.json (100%) rename test/{ => integration_tests/test_data}/rbop-928/mutated--1.yaml (100%) rename test/{ => integration_tests}/test_data/rbop-928/mutated-0.yaml (100%) rename test/{ => integration_tests}/test_data/rbop-928/mutated-1.yaml (100%) rename test/{ => integration_tests}/test_data/rbop-928/mutated-2.yaml (100%) rename test/{ => integration_tests/test_data}/rbop-928/operator--1.log (100%) rename test/{ => integration_tests/test_data}/rbop-928/operator-0.log (100%) rename test/{ => integration_tests/test_data}/rbop-928/operator-1.log (100%) rename test/{ => integration_tests/test_data}/rbop-928/operator-2.log (100%) rename test/{ => integration_tests/test_data}/rbop-928/result.json (100%) rename test/{ => integration_tests/test_data}/rbop-928/system-state--01.json (100%) rename test/{ => integration_tests/test_data}/rbop-928/system-state-000.json (100%) rename test/{ => integration_tests/test_data}/rbop-928/system-state-001.json (100%) rename test/{ => integration_tests/test_data}/rbop-928/system-state-002.json (100%) rename test/{ => integration_tests/test_data}/rbop_bugs_config.yaml (100%) create mode 100644 test/integration_tests/test_known_schemas.py rename {acto/kubernetes_engine => test/integration_tests}/test_kubernetes_engines.py (87%) rename test/{ => integration_tests}/test_rbop_bugs.py (59%) delete mode 100644 test/mutated-0.yaml delete mode 100644 test/mutated-1.yaml delete mode 100644 test/operator-0.log delete mode 100644 test/operator-1.log delete mode 100644 test/system-state-000.json delete mode 100644 test/system-state-001.json delete mode 100644 test/test_checker.py delete mode 100644 test/test_common.py delete mode 100644 test/test_known_schemas.py diff --git a/.github/workflows/unittest.yaml b/.github/workflows/unittest.yaml index 155b01170e..816c9faa7e 100644 --- a/.github/workflows/unittest.yaml +++ b/.github/workflows/unittest.yaml @@ -1,13 +1,36 @@ name: Regression Test -on: [push] +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] jobs: + check_should_skip: + runs-on: ubuntu-latest + outputs: + should_skip: ${{ steps.skip_check.outputs.should_skip }} + steps: + - id: skip_check + uses: fkirc/skip-duplicate-actions@v5.3.1 + with: + skip_after_successful_duplicate: 'true' unittest: runs-on: ubuntu-latest + needs: check_should_skip + if: ${{ needs.check_should_skip.outputs.should_skip != 'true' }} + permissions: + # Gives the action the necessary permissions for publishing new + # comments in pull requests. + pull-requests: write + # Gives the action the necessary permissions for pushing data to the + # python-coverage-comment-action branch, and for editing existing + # comments (to avoid publishing multiple comments in the same PR) + contents: write steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 with: - python-version: "3.8" + python-version: "3.10" - name: Install Packages run: pip install codespell flake8 - name: Check Spelling @@ -23,11 +46,79 @@ jobs: pip install -r requirements.txt make - name: Run unittest + run: > + COVERAGE_FILE=.coverage.${{ github.sha }}.unittest + pytest acto + --junitxml=pytest.xml + --cov-report= + --cov=acto + - name: Upload coverage + uses: actions/upload-artifact@v4 + with: + name: .coverage.${{ github.sha }}.unittest + path: .coverage.${{ github.sha }}.unittest + retention-days: 1 + integration-test: + runs-on: ubuntu-latest + needs: check_should_skip + if: ${{ needs.check_should_skip.outputs.should_skip != 'true' }} + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install Packages + run: pip install codespell flake8 + - name: Check Spelling + run: codespell --skip="./data"|| true + - name: Check Syntax Error + run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + - uses: actions/setup-go@v4 + with: + go-version: '1.20.5' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + make + - name: Run integration test + run: > + COVERAGE_FILE=.coverage.${{ github.sha }}.integration-test + pytest test/integration_tests + --junitxml=pytest.xml + --cov-report= + --cov=acto + - name: Upload coverage + uses: actions/upload-artifact@v4 + with: + name: .coverage.${{ github.sha }}.integration-test + path: .coverage.${{ github.sha }}.integration-test + retention-days: 1 + coverage-report: + runs-on: ubuntu-latest + needs: [unittest, integration-test] + if: ${{ github.event_name == 'pull_request' }} + permissions: + pull-requests: write + contents: write + steps: + - uses: actions/checkout@v3 + - name: Download unittest coverage + uses: actions/download-artifact@v4 + with: + name: .coverage.${{ github.sha }}.unittest + - name: Download integration test coverage + uses: actions/download-artifact@v4 + with: + name: .coverage.${{ github.sha }}.integration-test + - name: Merge coverage files run: | - pytest -m "not local and not singleBugReproduction" --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=acto | tee pytest-coverage.txt - - name: Pytest coverage comment - if: ${{ github.event == 'pull_request' }} - uses: MishaKav/pytest-coverage-comment@main + pip install coverage + coverage combine + - name: list files + run: ls -al + - name: Coverage comment + uses: py-cov-action/python-coverage-comment-action@v3 with: - pytest-coverage-path: ./pytest-coverage.txt - junitxml-path: ./pytest.xml \ No newline at end of file + GITHUB_TOKEN: ${{ github.token }} + ANNOTATE_MISSING_LINES: true \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000000..a6cf828502 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,11 @@ +[tool.autopep8] +max_line_length = 80 +aggressive = 3 +experimental = true + +[tool.isort] +profile = "black" +line_length = 80 + +[tool.coverage.run] +relative_files = true \ No newline at end of file diff --git a/test/cli-output-0.log b/test/cli-output-0.log deleted file mode 100644 index 0fca1c2c26..0000000000 --- a/test/cli-output-0.log +++ /dev/null @@ -1,4 +0,0 @@ -{ - "stdout": "tidbcluster.pingcap.com/test-cluster created\n", - "stderr": "" -} \ No newline at end of file diff --git a/test/cli-output-1.log b/test/cli-output-1.log deleted file mode 100644 index df8d866877..0000000000 --- a/test/cli-output-1.log +++ /dev/null @@ -1,4 +0,0 @@ -{ - "stdout": "tidbcluster.pingcap.com/test-cluster configured\n", - "stderr": "" -} \ No newline at end of file diff --git a/test/cassop-330/trial-00-0001/operator-2.log b/test/e2e_tests/__init__.py similarity index 100% rename from test/cassop-330/trial-00-0001/operator-2.log rename to test/e2e_tests/__init__.py diff --git a/test/test_bug_reproduction.py b/test/e2e_tests/test_bug_reproduction.py similarity index 73% rename from test/test_bug_reproduction.py rename to test/e2e_tests/test_bug_reproduction.py index 0871eb0a39..ad09cc4190 100644 --- a/test/test_bug_reproduction.py +++ b/test/e2e_tests/test_bug_reproduction.py @@ -3,21 +3,26 @@ import pathlib import queue import random -from typing import Dict, List, Tuple import unittest +from test.utils import BugConfig, all_bugs, check_postdiff_runtime_error +from typing import Dict, List, Tuple import pytest + from acto.common import PassResult from acto.reproduce import reproduce, reproduce_postdiff -from test.utils import BugConfig, all_bugs, check_postdiff_runtime_error - test_dir = pathlib.Path(__file__).parent.resolve() test_data_dir = os.path.join(test_dir, 'test_data') -def run_bug_config(operator_name: str, bug_id: str, bug_config: BugConfig, acto_namespace: int) -> bool: + +def run_bug_config( + operator_name: str, + bug_id: str, + bug_config: BugConfig, + acto_namespace: int) -> bool: '''This function tries to reproduce a bug according to the bug config - + Returns: if the reproduction is successful ''' @@ -32,18 +37,18 @@ def run_bug_config(operator_name: str, bug_id: str, bug_config: BugConfig, acto_ cluster_runtime='KIND', acto_namespace=acto_namespace) if bug_config.difftest: - if bug_config.diffdir != None: + if bug_config.diffdir is not None: diff_repro_dir = os.path.join(test_data_dir, bug_config.diffdir) work_dir = f'testrun-{bug_id}-diff' reproduce(work_dir, - diff_repro_dir, - operator_config, - cluster_runtime='KIND', - acto_namespace=acto_namespace) + diff_repro_dir, + operator_config, + cluster_runtime='KIND', + acto_namespace=acto_namespace) if reproduce_postdiff(work_dir, - operator_config, - cluster_runtime='KIND', - acto_namespace=acto_namespace): + operator_config, + cluster_runtime='KIND', + acto_namespace=acto_namespace): reproduced = True else: print(f"Bug {bug_id} not reproduced!") @@ -52,10 +57,10 @@ def run_bug_config(operator_name: str, bug_id: str, bug_config: BugConfig, acto_ if bug_config.declaration: if len(normal_run_result) != 0: last_error = normal_run_result[-1] - if last_error.state_result != None and not isinstance( + if last_error.state_result is not None and not isinstance( last_error.state_result, PassResult): reproduced = True - elif last_error.recovery_result != None and not isinstance( + elif last_error.recovery_result is not None and not isinstance( last_error.recovery_result, PassResult): reproduced = True else: @@ -65,10 +70,10 @@ def run_bug_config(operator_name: str, bug_id: str, bug_config: BugConfig, acto_ if bug_config.recovery: if len(normal_run_result) != 0: last_error = normal_run_result[-1] - if last_error.recovery_result != None and not isinstance( + if last_error.recovery_result is not None and not isinstance( last_error.recovery_result, PassResult): reproduced = True - elif last_error.state_result != None and not isinstance( + elif last_error.state_result is not None and not isinstance( last_error.state_result, PassResult): reproduced = True else: @@ -80,7 +85,7 @@ def run_bug_config(operator_name: str, bug_id: str, bug_config: BugConfig, acto_ reproduced = True elif len(normal_run_result) != 0: last_error = normal_run_result[-1] - if last_error.health_result != None and not isinstance( + if last_error.health_result is not None and not isinstance( last_error.health_result, PassResult): reproduced = True else: @@ -92,13 +97,17 @@ def run_bug_config(operator_name: str, bug_id: str, bug_config: BugConfig, acto_ else: return False -def run_worker(workqueue: multiprocessing.Queue, acto_namespace: int, reproduction_results: Dict[str, bool]): + +def run_worker( + workqueue: multiprocessing.Queue, acto_namespace: int, + reproduction_results: Dict[str, bool]): while True: try: - bug_tuple: Tuple[str, str, BugConfig] = workqueue.get(block=True, timeout=5) + bug_tuple: Tuple[str, str, BugConfig] = workqueue.get( + block=True, timeout=5) except queue.Empty: break - + operator_name, bug_id, bug_config = bug_tuple reproduced = False NUM_RETRY = 3 @@ -113,14 +122,15 @@ def run_worker(workqueue: multiprocessing.Queue, acto_namespace: int, reproducti reproduction_results[bug_id] = reproduced -@pytest.mark.local + +@pytest.mark.all_bug_reproduction class TestBugReproduction(unittest.TestCase): def __init__(self, methodName: str = "runTest") -> None: super().__init__(methodName) # TODO: make _num_workers a command line argument - self._num_workers = 2 # Number of workers to run the test + self._num_workers = 2 # Number of workers to run the test def test_all_bugs(self): manager = multiprocessing.Manager() @@ -130,11 +140,14 @@ def test_all_bugs(self): for bug_id, bug_config in bugs.items(): workqueue.put((operator, bug_id, bug_config)) - reproduction_results: Dict[str, bool] = manager.dict() # workers write reproduction results - # to this dict. Bug ID -> if success + # workers write reproduction results + reproduction_results: Dict[str, bool] = manager.dict() + # to this dict. Bug ID -> if success processes: List[multiprocessing.Process] = [] for i in range(self._num_workers): - p = multiprocessing.Process(target=run_worker, args=(workqueue, i, reproduction_results)) + p = multiprocessing.Process( + target=run_worker, args=( + workqueue, i, reproduction_results)) p.start() processes.append(p) @@ -145,16 +158,17 @@ def test_all_bugs(self): for bug_id, if_reproduced in reproduction_results.items(): if not if_reproduced: errors.append(bug_id) - + self.assertFalse(errors, f'Test failed with {errors}') + @pytest.mark.singleBugReproduction class TestSingleBugReproduction(unittest.TestCase): def __init__(self, methodName: str = "runTest") -> None: super().__init__(methodName) - self._num_workers = 1 # Number of workers to run the test + self._num_workers = 1 # Number of workers to run the test def test_all_bugs(self): manager = multiprocessing.Manager() @@ -164,11 +178,14 @@ def test_all_bugs(self): bug_id, bug_config = random.choice(list(bugs.items())) workqueue.put((operator, bug_id, bug_config)) - reproduction_results: Dict[str, bool] = manager.dict() # workers write reproduction results - # to this dict. Bug ID -> if success + # workers write reproduction results + reproduction_results: Dict[str, bool] = manager.dict() + # to this dict. Bug ID -> if success processes: List[multiprocessing.Process] = [] for i in range(self._num_workers): - p = multiprocessing.Process(target=run_worker, args=(workqueue, i, reproduction_results)) + p = multiprocessing.Process( + target=run_worker, args=( + workqueue, i, reproduction_results)) p.start() processes.append(p) @@ -179,9 +196,9 @@ def test_all_bugs(self): for bug_id, if_reproduced in reproduction_results.items(): if not if_reproduced: errors.append(bug_id) - + self.assertFalse(errors, f'Test failed with {errors}') if __name__ == '__main__': - unittest.main() \ No newline at end of file + unittest.main() diff --git a/test/cassop-315/trial-04-0000/mutated-0.yaml b/test/e2e_tests/test_data/cassop-315/inputs/mutated-0.yaml similarity index 100% rename from test/cassop-315/trial-04-0000/mutated-0.yaml rename to test/e2e_tests/test_data/cassop-315/inputs/mutated-0.yaml diff --git a/test/test_data/cassop-315/inputs/mutated-1.yaml b/test/e2e_tests/test_data/cassop-315/inputs/mutated-1.yaml similarity index 100% rename from test/test_data/cassop-315/inputs/mutated-1.yaml rename to test/e2e_tests/test_data/cassop-315/inputs/mutated-1.yaml diff --git a/test/test_data/cassop-315/inputs/mutated-2.yaml b/test/e2e_tests/test_data/cassop-315/inputs/mutated-2.yaml similarity index 100% rename from test/test_data/cassop-315/inputs/mutated-2.yaml rename to test/e2e_tests/test_data/cassop-315/inputs/mutated-2.yaml diff --git a/test/test_data/cassop-315/inputs/mutated-3.yaml b/test/e2e_tests/test_data/cassop-315/inputs/mutated-3.yaml similarity index 100% rename from test/test_data/cassop-315/inputs/mutated-3.yaml rename to test/e2e_tests/test_data/cassop-315/inputs/mutated-3.yaml diff --git a/test/cassop-330/mutated-0.yaml b/test/e2e_tests/test_data/cassop-330/trial-demo/mutated-0.yaml similarity index 100% rename from test/cassop-330/mutated-0.yaml rename to test/e2e_tests/test_data/cassop-330/trial-demo/mutated-0.yaml diff --git a/test/cassop-330/trial-demo/mutated-1.yaml b/test/e2e_tests/test_data/cassop-330/trial-demo/mutated-1.yaml similarity index 100% rename from test/cassop-330/trial-demo/mutated-1.yaml rename to test/e2e_tests/test_data/cassop-330/trial-demo/mutated-1.yaml diff --git a/test/cassop-330/trial-demo/mutated-2.yaml b/test/e2e_tests/test_data/cassop-330/trial-demo/mutated-2.yaml similarity index 100% rename from test/cassop-330/trial-demo/mutated-2.yaml rename to test/e2e_tests/test_data/cassop-330/trial-demo/mutated-2.yaml diff --git a/test/cassop-330/trial-00-0001/mutated-0.yaml b/test/e2e_tests/test_data/cassop-334/mutated-0.yaml similarity index 100% rename from test/cassop-330/trial-00-0001/mutated-0.yaml rename to test/e2e_tests/test_data/cassop-334/mutated-0.yaml diff --git a/test/test_data/cassop-334/mutated-1.yaml b/test/e2e_tests/test_data/cassop-334/mutated-1.yaml similarity index 100% rename from test/test_data/cassop-334/mutated-1.yaml rename to test/e2e_tests/test_data/cassop-334/mutated-1.yaml diff --git a/test/cassop-330/trial-demo/mutated-0.yaml b/test/e2e_tests/test_data/cassop-471/mutated-0.yaml similarity index 100% rename from test/cassop-330/trial-demo/mutated-0.yaml rename to test/e2e_tests/test_data/cassop-471/mutated-0.yaml diff --git a/test/test_data/cassop-471/mutated-1.yaml b/test/e2e_tests/test_data/cassop-471/mutated-1.yaml similarity index 100% rename from test/test_data/cassop-471/mutated-1.yaml rename to test/e2e_tests/test_data/cassop-471/mutated-1.yaml diff --git a/test/test_data/cassop-471/mutated-2.yaml b/test/e2e_tests/test_data/cassop-471/mutated-2.yaml similarity index 100% rename from test/test_data/cassop-471/mutated-2.yaml rename to test/e2e_tests/test_data/cassop-471/mutated-2.yaml diff --git a/test/crdbop-919/mutated-0.yaml b/test/e2e_tests/test_data/crdbop-918/mutated-0.yaml similarity index 100% rename from test/crdbop-919/mutated-0.yaml rename to test/e2e_tests/test_data/crdbop-918/mutated-0.yaml diff --git a/test/test_data/crdbop-918/mutated-1.yaml b/test/e2e_tests/test_data/crdbop-918/mutated-1.yaml similarity index 100% rename from test/test_data/crdbop-918/mutated-1.yaml rename to test/e2e_tests/test_data/crdbop-918/mutated-1.yaml diff --git a/test/crdbop-920/mutated-0.yaml b/test/e2e_tests/test_data/crdbop-919/mutated-0.yaml similarity index 100% rename from test/crdbop-920/mutated-0.yaml rename to test/e2e_tests/test_data/crdbop-919/mutated-0.yaml diff --git a/test/crdbop-919/mutated-1.yaml b/test/e2e_tests/test_data/crdbop-919/mutated-1.yaml similarity index 100% rename from test/crdbop-919/mutated-1.yaml rename to test/e2e_tests/test_data/crdbop-919/mutated-1.yaml diff --git a/test/crdbop-919/mutated-2.yaml b/test/e2e_tests/test_data/crdbop-919/mutated-2.yaml similarity index 100% rename from test/crdbop-919/mutated-2.yaml rename to test/e2e_tests/test_data/crdbop-919/mutated-2.yaml diff --git a/test/crdbop-920/cli-output--1.log b/test/e2e_tests/test_data/crdbop-920/cli-output--1.log similarity index 100% rename from test/crdbop-920/cli-output--1.log rename to test/e2e_tests/test_data/crdbop-920/cli-output--1.log diff --git a/test/crdbop-919/cli-output-0.log b/test/e2e_tests/test_data/crdbop-920/cli-output-0.log similarity index 100% rename from test/crdbop-919/cli-output-0.log rename to test/e2e_tests/test_data/crdbop-920/cli-output-0.log diff --git a/test/crdbop-919/cli-output-1.log b/test/e2e_tests/test_data/crdbop-920/cli-output-1.log similarity index 100% rename from test/crdbop-919/cli-output-1.log rename to test/e2e_tests/test_data/crdbop-920/cli-output-1.log diff --git a/test/crdbop-919/cli-output-2.log b/test/e2e_tests/test_data/crdbop-920/cli-output-2.log similarity index 100% rename from test/crdbop-919/cli-output-2.log rename to test/e2e_tests/test_data/crdbop-920/cli-output-2.log diff --git a/test/crdbop-920/delta-0.log b/test/e2e_tests/test_data/crdbop-920/delta-0.log similarity index 100% rename from test/crdbop-920/delta-0.log rename to test/e2e_tests/test_data/crdbop-920/delta-0.log diff --git a/test/crdbop-920/delta-1.log b/test/e2e_tests/test_data/crdbop-920/delta-1.log similarity index 100% rename from test/crdbop-920/delta-1.log rename to test/e2e_tests/test_data/crdbop-920/delta-1.log diff --git a/test/crdbop-920/delta-2.log b/test/e2e_tests/test_data/crdbop-920/delta-2.log similarity index 100% rename from test/crdbop-920/delta-2.log rename to test/e2e_tests/test_data/crdbop-920/delta-2.log diff --git a/test/cassop-315/trial-04-0000/events-0.json b/test/e2e_tests/test_data/crdbop-920/events-0.json similarity index 100% rename from test/cassop-315/trial-04-0000/events-0.json rename to test/e2e_tests/test_data/crdbop-920/events-0.json diff --git a/test/cassop-315/trial-04-0000/events-1.json b/test/e2e_tests/test_data/crdbop-920/events-1.json similarity index 100% rename from test/cassop-315/trial-04-0000/events-1.json rename to test/e2e_tests/test_data/crdbop-920/events-1.json diff --git a/test/cassop-315/trial-04-0000/events-2.json b/test/e2e_tests/test_data/crdbop-920/events-2.json similarity index 100% rename from test/cassop-315/trial-04-0000/events-2.json rename to test/e2e_tests/test_data/crdbop-920/events-2.json diff --git a/test/cassop-315/trial-04-0000/generation-0-runtime.json b/test/e2e_tests/test_data/crdbop-920/generation-0-runtime.json similarity index 100% rename from test/cassop-315/trial-04-0000/generation-0-runtime.json rename to test/e2e_tests/test_data/crdbop-920/generation-0-runtime.json diff --git a/test/crdbop-920/generation-1-runtime.json b/test/e2e_tests/test_data/crdbop-920/generation-1-runtime.json similarity index 100% rename from test/crdbop-920/generation-1-runtime.json rename to test/e2e_tests/test_data/crdbop-920/generation-1-runtime.json diff --git a/test/crdbop-920/generation-2-runtime.json b/test/e2e_tests/test_data/crdbop-920/generation-2-runtime.json similarity index 100% rename from test/crdbop-920/generation-2-runtime.json rename to test/e2e_tests/test_data/crdbop-920/generation-2-runtime.json diff --git a/test/test_data/crdbop-918/mutated-0.yaml b/test/e2e_tests/test_data/crdbop-920/inputs/mutated-0.yaml similarity index 100% rename from test/test_data/crdbop-918/mutated-0.yaml rename to test/e2e_tests/test_data/crdbop-920/inputs/mutated-0.yaml diff --git a/test/test_data/crdbop-920/inputs/mutated-1.yaml b/test/e2e_tests/test_data/crdbop-920/inputs/mutated-1.yaml similarity index 100% rename from test/test_data/crdbop-920/inputs/mutated-1.yaml rename to test/e2e_tests/test_data/crdbop-920/inputs/mutated-1.yaml diff --git a/test/crdbop-920/mutated-2.yaml b/test/e2e_tests/test_data/crdbop-920/inputs/mutated-2.yaml similarity index 100% rename from test/crdbop-920/mutated-2.yaml rename to test/e2e_tests/test_data/crdbop-920/inputs/mutated-2.yaml diff --git a/test/crdbop-920/mutated--1.yaml b/test/e2e_tests/test_data/crdbop-920/mutated--1.yaml similarity index 100% rename from test/crdbop-920/mutated--1.yaml rename to test/e2e_tests/test_data/crdbop-920/mutated--1.yaml diff --git a/test/test_data/crdbop-919/mutated-0.yaml b/test/e2e_tests/test_data/crdbop-920/mutated-0.yaml similarity index 100% rename from test/test_data/crdbop-919/mutated-0.yaml rename to test/e2e_tests/test_data/crdbop-920/mutated-0.yaml diff --git a/test/crdbop-920/mutated-1.yaml b/test/e2e_tests/test_data/crdbop-920/mutated-1.yaml similarity index 100% rename from test/crdbop-920/mutated-1.yaml rename to test/e2e_tests/test_data/crdbop-920/mutated-1.yaml diff --git a/test/test_data/crdbop-920/inputs/mutated-2.yaml b/test/e2e_tests/test_data/crdbop-920/mutated-2.yaml similarity index 100% rename from test/test_data/crdbop-920/inputs/mutated-2.yaml rename to test/e2e_tests/test_data/crdbop-920/mutated-2.yaml diff --git a/test/crdbop-920/operator--1.log b/test/e2e_tests/test_data/crdbop-920/operator--1.log similarity index 100% rename from test/crdbop-920/operator--1.log rename to test/e2e_tests/test_data/crdbop-920/operator--1.log diff --git a/test/crdbop-920/operator-0.log b/test/e2e_tests/test_data/crdbop-920/operator-0.log similarity index 100% rename from test/crdbop-920/operator-0.log rename to test/e2e_tests/test_data/crdbop-920/operator-0.log diff --git a/test/crdbop-920/operator-1.log b/test/e2e_tests/test_data/crdbop-920/operator-1.log similarity index 100% rename from test/crdbop-920/operator-1.log rename to test/e2e_tests/test_data/crdbop-920/operator-1.log diff --git a/test/crdbop-920/operator-2.log b/test/e2e_tests/test_data/crdbop-920/operator-2.log similarity index 100% rename from test/crdbop-920/operator-2.log rename to test/e2e_tests/test_data/crdbop-920/operator-2.log diff --git a/test/crdbop-920/result.json b/test/e2e_tests/test_data/crdbop-920/result.json similarity index 100% rename from test/crdbop-920/result.json rename to test/e2e_tests/test_data/crdbop-920/result.json diff --git a/test/test_data/crdbop-920/system-state--01.json b/test/e2e_tests/test_data/crdbop-920/system-state--01.json similarity index 100% rename from test/test_data/crdbop-920/system-state--01.json rename to test/e2e_tests/test_data/crdbop-920/system-state--01.json diff --git a/test/test_data/crdbop-920/system-state-000.json b/test/e2e_tests/test_data/crdbop-920/system-state-000.json similarity index 100% rename from test/test_data/crdbop-920/system-state-000.json rename to test/e2e_tests/test_data/crdbop-920/system-state-000.json diff --git a/test/test_data/crdbop-920/system-state-001.json b/test/e2e_tests/test_data/crdbop-920/system-state-001.json similarity index 100% rename from test/test_data/crdbop-920/system-state-001.json rename to test/e2e_tests/test_data/crdbop-920/system-state-001.json diff --git a/test/test_data/crdbop-920/system-state-002.json b/test/e2e_tests/test_data/crdbop-920/system-state-002.json similarity index 100% rename from test/test_data/crdbop-920/system-state-002.json rename to test/e2e_tests/test_data/crdbop-920/system-state-002.json diff --git a/test/test_data/crdbop-920/inputs/mutated-0.yaml b/test/e2e_tests/test_data/crdbop-927/mutated-0.yaml similarity index 100% rename from test/test_data/crdbop-920/inputs/mutated-0.yaml rename to test/e2e_tests/test_data/crdbop-927/mutated-0.yaml diff --git a/test/test_data/crdbop-927/mutated-1.yaml b/test/e2e_tests/test_data/crdbop-927/mutated-1.yaml similarity index 100% rename from test/test_data/crdbop-927/mutated-1.yaml rename to test/e2e_tests/test_data/crdbop-927/mutated-1.yaml diff --git a/test/test_data/crdbop-927/mutated-2.yaml b/test/e2e_tests/test_data/crdbop-927/mutated-2.yaml similarity index 100% rename from test/test_data/crdbop-927/mutated-2.yaml rename to test/e2e_tests/test_data/crdbop-927/mutated-2.yaml diff --git a/test/test_data/crdbop-953/mutated-0.yaml b/test/e2e_tests/test_data/crdbop-953/mutated-0.yaml similarity index 100% rename from test/test_data/crdbop-953/mutated-0.yaml rename to test/e2e_tests/test_data/crdbop-953/mutated-0.yaml diff --git a/test/test_data/crdbop-953/mutated-1.yaml b/test/e2e_tests/test_data/crdbop-953/mutated-1.yaml similarity index 100% rename from test/test_data/crdbop-953/mutated-1.yaml rename to test/e2e_tests/test_data/crdbop-953/mutated-1.yaml diff --git a/test/test_data/knop-1137/mutated-0.yaml b/test/e2e_tests/test_data/knop-1137/mutated-0.yaml similarity index 100% rename from test/test_data/knop-1137/mutated-0.yaml rename to test/e2e_tests/test_data/knop-1137/mutated-0.yaml diff --git a/test/test_data/knop-1137/mutated-1.yaml b/test/e2e_tests/test_data/knop-1137/mutated-1.yaml similarity index 100% rename from test/test_data/knop-1137/mutated-1.yaml rename to test/e2e_tests/test_data/knop-1137/mutated-1.yaml diff --git a/test/test_data/knop-1157/mutated-0.yaml b/test/e2e_tests/test_data/knop-1157/mutated-0.yaml similarity index 100% rename from test/test_data/knop-1157/mutated-0.yaml rename to test/e2e_tests/test_data/knop-1157/mutated-0.yaml diff --git a/test/test_data/knop-1157/mutated-1.yaml b/test/e2e_tests/test_data/knop-1157/mutated-1.yaml similarity index 100% rename from test/test_data/knop-1157/mutated-1.yaml rename to test/e2e_tests/test_data/knop-1157/mutated-1.yaml diff --git a/test/test_data/knop-1157/mutated-2.yaml b/test/e2e_tests/test_data/knop-1157/mutated-2.yaml similarity index 100% rename from test/test_data/knop-1157/mutated-2.yaml rename to test/e2e_tests/test_data/knop-1157/mutated-2.yaml diff --git a/test/test_data/knop-1158/mutated-0.yaml b/test/e2e_tests/test_data/knop-1158/mutated-0.yaml similarity index 100% rename from test/test_data/knop-1158/mutated-0.yaml rename to test/e2e_tests/test_data/knop-1158/mutated-0.yaml diff --git a/test/test_data/knop-1158/mutated-1.yaml b/test/e2e_tests/test_data/knop-1158/mutated-1.yaml similarity index 100% rename from test/test_data/knop-1158/mutated-1.yaml rename to test/e2e_tests/test_data/knop-1158/mutated-1.yaml diff --git a/test/test_data/mgopone-1024/mutated-0.yaml b/test/e2e_tests/test_data/mgopone-1024/mutated-0.yaml similarity index 100% rename from test/test_data/mgopone-1024/mutated-0.yaml rename to test/e2e_tests/test_data/mgopone-1024/mutated-0.yaml diff --git a/test/test_data/mgopone-1024/mutated-1.yaml b/test/e2e_tests/test_data/mgopone-1024/mutated-1.yaml similarity index 100% rename from test/test_data/mgopone-1024/mutated-1.yaml rename to test/e2e_tests/test_data/mgopone-1024/mutated-1.yaml diff --git a/test/test_data/mgopone-1054/mutated-0.yaml b/test/e2e_tests/test_data/mgopone-1054/mutated-0.yaml similarity index 100% rename from test/test_data/mgopone-1054/mutated-0.yaml rename to test/e2e_tests/test_data/mgopone-1054/mutated-0.yaml diff --git a/test/test_data/mgopone-1054/mutated-1.yaml b/test/e2e_tests/test_data/mgopone-1054/mutated-1.yaml similarity index 100% rename from test/test_data/mgopone-1054/mutated-1.yaml rename to test/e2e_tests/test_data/mgopone-1054/mutated-1.yaml diff --git a/test/test_data/mgopone-1055/mutated-0.yaml b/test/e2e_tests/test_data/mgopone-1055/mutated-0.yaml similarity index 100% rename from test/test_data/mgopone-1055/mutated-0.yaml rename to test/e2e_tests/test_data/mgopone-1055/mutated-0.yaml diff --git a/test/test_data/mgopone-1055/mutated-1.yaml b/test/e2e_tests/test_data/mgopone-1055/mutated-1.yaml similarity index 100% rename from test/test_data/mgopone-1055/mutated-1.yaml rename to test/e2e_tests/test_data/mgopone-1055/mutated-1.yaml diff --git a/test/test_data/mgopone-1072/mutated-0.yaml b/test/e2e_tests/test_data/mgopone-1072/mutated-0.yaml similarity index 100% rename from test/test_data/mgopone-1072/mutated-0.yaml rename to test/e2e_tests/test_data/mgopone-1072/mutated-0.yaml diff --git a/test/test_data/mgopone-1072/mutated-1.yaml b/test/e2e_tests/test_data/mgopone-1072/mutated-1.yaml similarity index 100% rename from test/test_data/mgopone-1072/mutated-1.yaml rename to test/e2e_tests/test_data/mgopone-1072/mutated-1.yaml diff --git a/test/test_data/mgopone-1072/mutated-2.yaml b/test/e2e_tests/test_data/mgopone-1072/mutated-2.yaml similarity index 100% rename from test/test_data/mgopone-1072/mutated-2.yaml rename to test/e2e_tests/test_data/mgopone-1072/mutated-2.yaml diff --git a/test/test_data/mgopone-1074/mutated-0.yaml b/test/e2e_tests/test_data/mgopone-1074/mutated-0.yaml similarity index 100% rename from test/test_data/mgopone-1074/mutated-0.yaml rename to test/e2e_tests/test_data/mgopone-1074/mutated-0.yaml diff --git a/test/test_data/mgopone-1074/mutated-1.yaml b/test/e2e_tests/test_data/mgopone-1074/mutated-1.yaml similarity index 100% rename from test/test_data/mgopone-1074/mutated-1.yaml rename to test/e2e_tests/test_data/mgopone-1074/mutated-1.yaml diff --git a/test/test_data/mgopone-1245/mutated-0.yaml b/test/e2e_tests/test_data/mgopone-1245/mutated-0.yaml similarity index 100% rename from test/test_data/mgopone-1245/mutated-0.yaml rename to test/e2e_tests/test_data/mgopone-1245/mutated-0.yaml diff --git a/test/test_data/mgopone-1245/mutated-1.yaml b/test/e2e_tests/test_data/mgopone-1245/mutated-1.yaml similarity index 100% rename from test/test_data/mgopone-1245/mutated-1.yaml rename to test/e2e_tests/test_data/mgopone-1245/mutated-1.yaml diff --git a/test/test_data/mgopone-1251/mutated-0.yaml b/test/e2e_tests/test_data/mgopone-1251/mutated-0.yaml similarity index 100% rename from test/test_data/mgopone-1251/mutated-0.yaml rename to test/e2e_tests/test_data/mgopone-1251/mutated-0.yaml diff --git a/test/test_data/mgopone-1251/mutated-1.yaml b/test/e2e_tests/test_data/mgopone-1251/mutated-1.yaml similarity index 100% rename from test/test_data/mgopone-1251/mutated-1.yaml rename to test/e2e_tests/test_data/mgopone-1251/mutated-1.yaml diff --git a/test/test_data/mgopone-1251/mutated-2.yaml b/test/e2e_tests/test_data/mgopone-1251/mutated-2.yaml similarity index 100% rename from test/test_data/mgopone-1251/mutated-2.yaml rename to test/e2e_tests/test_data/mgopone-1251/mutated-2.yaml diff --git a/test/test_data/mgopone-1252/mutated-0.yaml b/test/e2e_tests/test_data/mgopone-1252/mutated-0.yaml similarity index 100% rename from test/test_data/mgopone-1252/mutated-0.yaml rename to test/e2e_tests/test_data/mgopone-1252/mutated-0.yaml diff --git a/test/test_data/mgopone-1252/mutated-1.yaml b/test/e2e_tests/test_data/mgopone-1252/mutated-1.yaml similarity index 100% rename from test/test_data/mgopone-1252/mutated-1.yaml rename to test/e2e_tests/test_data/mgopone-1252/mutated-1.yaml diff --git a/test/test_data/mgopone-1252/mutated-2.yaml b/test/e2e_tests/test_data/mgopone-1252/mutated-2.yaml similarity index 100% rename from test/test_data/mgopone-1252/mutated-2.yaml rename to test/e2e_tests/test_data/mgopone-1252/mutated-2.yaml diff --git a/test/test_data/mgoptwo-696/mutated-0.yaml b/test/e2e_tests/test_data/mgoptwo-696/mutated-0.yaml similarity index 100% rename from test/test_data/mgoptwo-696/mutated-0.yaml rename to test/e2e_tests/test_data/mgoptwo-696/mutated-0.yaml diff --git a/test/test_data/mgoptwo-696/mutated-1.yaml b/test/e2e_tests/test_data/mgoptwo-696/mutated-1.yaml similarity index 100% rename from test/test_data/mgoptwo-696/mutated-1.yaml rename to test/e2e_tests/test_data/mgoptwo-696/mutated-1.yaml diff --git a/test/test_data/mgoptwo-696/mutated-2.yaml b/test/e2e_tests/test_data/mgoptwo-696/mutated-2.yaml similarity index 100% rename from test/test_data/mgoptwo-696/mutated-2.yaml rename to test/e2e_tests/test_data/mgoptwo-696/mutated-2.yaml diff --git a/test/test_data/mgoptwo-738/mutated-0.yaml b/test/e2e_tests/test_data/mgoptwo-738/mutated-0.yaml similarity index 100% rename from test/test_data/mgoptwo-738/mutated-0.yaml rename to test/e2e_tests/test_data/mgoptwo-738/mutated-0.yaml diff --git a/test/test_data/mgoptwo-738/mutated-1.yaml b/test/e2e_tests/test_data/mgoptwo-738/mutated-1.yaml similarity index 100% rename from test/test_data/mgoptwo-738/mutated-1.yaml rename to test/e2e_tests/test_data/mgoptwo-738/mutated-1.yaml diff --git a/test/test_data/mgoptwo-742/mutated-0.yaml b/test/e2e_tests/test_data/mgoptwo-742/mutated-0.yaml similarity index 100% rename from test/test_data/mgoptwo-742/mutated-0.yaml rename to test/e2e_tests/test_data/mgoptwo-742/mutated-0.yaml diff --git a/test/test_data/mgoptwo-742/mutated-1.yaml b/test/e2e_tests/test_data/mgoptwo-742/mutated-1.yaml similarity index 100% rename from test/test_data/mgoptwo-742/mutated-1.yaml rename to test/e2e_tests/test_data/mgoptwo-742/mutated-1.yaml diff --git a/test/test_data/mgoptwo-895/mutated-0.yaml b/test/e2e_tests/test_data/mgoptwo-895/mutated-0.yaml similarity index 100% rename from test/test_data/mgoptwo-895/mutated-0.yaml rename to test/e2e_tests/test_data/mgoptwo-895/mutated-0.yaml diff --git a/test/test_data/mgoptwo-895/mutated-1.yaml b/test/e2e_tests/test_data/mgoptwo-895/mutated-1.yaml similarity index 100% rename from test/test_data/mgoptwo-895/mutated-1.yaml rename to test/e2e_tests/test_data/mgoptwo-895/mutated-1.yaml diff --git a/test/test_data/mgoptwo-897/mutated-0.yaml b/test/e2e_tests/test_data/mgoptwo-897/mutated-0.yaml similarity index 100% rename from test/test_data/mgoptwo-897/mutated-0.yaml rename to test/e2e_tests/test_data/mgoptwo-897/mutated-0.yaml diff --git a/test/test_data/mgoptwo-897/mutated-1.yaml b/test/e2e_tests/test_data/mgoptwo-897/mutated-1.yaml similarity index 100% rename from test/test_data/mgoptwo-897/mutated-1.yaml rename to test/e2e_tests/test_data/mgoptwo-897/mutated-1.yaml diff --git a/test/rbop-928/mutated-0.yaml b/test/e2e_tests/test_data/rbop-928/mutated-0.yaml similarity index 100% rename from test/rbop-928/mutated-0.yaml rename to test/e2e_tests/test_data/rbop-928/mutated-0.yaml diff --git a/test/rbop-928/mutated-1.yaml b/test/e2e_tests/test_data/rbop-928/mutated-1.yaml similarity index 100% rename from test/rbop-928/mutated-1.yaml rename to test/e2e_tests/test_data/rbop-928/mutated-1.yaml diff --git a/test/rbop-928/mutated-2.yaml b/test/e2e_tests/test_data/rbop-928/mutated-2.yaml similarity index 100% rename from test/rbop-928/mutated-2.yaml rename to test/e2e_tests/test_data/rbop-928/mutated-2.yaml diff --git a/test/test_data/rbop-968/mutated-0.yaml b/test/e2e_tests/test_data/rbop-968/mutated-0.yaml similarity index 100% rename from test/test_data/rbop-968/mutated-0.yaml rename to test/e2e_tests/test_data/rbop-968/mutated-0.yaml diff --git a/test/test_data/rbop-968/mutated-1.yaml b/test/e2e_tests/test_data/rbop-968/mutated-1.yaml similarity index 100% rename from test/test_data/rbop-968/mutated-1.yaml rename to test/e2e_tests/test_data/rbop-968/mutated-1.yaml diff --git a/test/test_data/rbop-968/mutated-2.yaml b/test/e2e_tests/test_data/rbop-968/mutated-2.yaml similarity index 100% rename from test/test_data/rbop-968/mutated-2.yaml rename to test/e2e_tests/test_data/rbop-968/mutated-2.yaml diff --git a/test/test_data/rbop-992/mutated-0.yaml b/test/e2e_tests/test_data/rbop-992/mutated-0.yaml similarity index 100% rename from test/test_data/rbop-992/mutated-0.yaml rename to test/e2e_tests/test_data/rbop-992/mutated-0.yaml diff --git a/test/test_data/rbop-992/mutated-1.yaml b/test/e2e_tests/test_data/rbop-992/mutated-1.yaml similarity index 100% rename from test/test_data/rbop-992/mutated-1.yaml rename to test/e2e_tests/test_data/rbop-992/mutated-1.yaml diff --git a/test/test_data/rdopone-400/mutated-0.yaml b/test/e2e_tests/test_data/rdopone-400/mutated-0.yaml similarity index 100% rename from test/test_data/rdopone-400/mutated-0.yaml rename to test/e2e_tests/test_data/rdopone-400/mutated-0.yaml diff --git a/test/test_data/rdopone-400/mutated-1.yaml b/test/e2e_tests/test_data/rdopone-400/mutated-1.yaml similarity index 100% rename from test/test_data/rdopone-400/mutated-1.yaml rename to test/e2e_tests/test_data/rdopone-400/mutated-1.yaml diff --git a/test/test_data/rdopone-407/mutated-0.yaml b/test/e2e_tests/test_data/rdopone-407/mutated-0.yaml similarity index 100% rename from test/test_data/rdopone-407/mutated-0.yaml rename to test/e2e_tests/test_data/rdopone-407/mutated-0.yaml diff --git a/test/test_data/rdopone-407/mutated-1.yaml b/test/e2e_tests/test_data/rdopone-407/mutated-1.yaml similarity index 100% rename from test/test_data/rdopone-407/mutated-1.yaml rename to test/e2e_tests/test_data/rdopone-407/mutated-1.yaml diff --git a/test/test_data/rdopone-552/mutated-0.yaml b/test/e2e_tests/test_data/rdopone-552/mutated-0.yaml similarity index 100% rename from test/test_data/rdopone-552/mutated-0.yaml rename to test/e2e_tests/test_data/rdopone-552/mutated-0.yaml diff --git a/test/test_data/rdopone-552/mutated-1.yaml b/test/e2e_tests/test_data/rdopone-552/mutated-1.yaml similarity index 100% rename from test/test_data/rdopone-552/mutated-1.yaml rename to test/e2e_tests/test_data/rdopone-552/mutated-1.yaml diff --git a/test/test_data/rdoptwo-280/mutated-0.yaml b/test/e2e_tests/test_data/rdoptwo-280/mutated-0.yaml similarity index 100% rename from test/test_data/rdoptwo-280/mutated-0.yaml rename to test/e2e_tests/test_data/rdoptwo-280/mutated-0.yaml diff --git a/test/test_data/rdoptwo-280/mutated-1.yaml b/test/e2e_tests/test_data/rdoptwo-280/mutated-1.yaml similarity index 100% rename from test/test_data/rdoptwo-280/mutated-1.yaml rename to test/e2e_tests/test_data/rdoptwo-280/mutated-1.yaml diff --git a/test/test_data/rdoptwo-280/mutated-2.yaml b/test/e2e_tests/test_data/rdoptwo-280/mutated-2.yaml similarity index 100% rename from test/test_data/rdoptwo-280/mutated-2.yaml rename to test/e2e_tests/test_data/rdoptwo-280/mutated-2.yaml diff --git a/test/test_data/rdoptwo-283/mutated-0.yaml b/test/e2e_tests/test_data/rdoptwo-283/mutated-0.yaml similarity index 100% rename from test/test_data/rdoptwo-283/mutated-0.yaml rename to test/e2e_tests/test_data/rdoptwo-283/mutated-0.yaml diff --git a/test/test_data/rdoptwo-283/mutated-1.yaml b/test/e2e_tests/test_data/rdoptwo-283/mutated-1.yaml similarity index 100% rename from test/test_data/rdoptwo-283/mutated-1.yaml rename to test/e2e_tests/test_data/rdoptwo-283/mutated-1.yaml diff --git a/test/test_data/rdoptwo-286/mutated-0.yaml b/test/e2e_tests/test_data/rdoptwo-286/mutated-0.yaml similarity index 100% rename from test/test_data/rdoptwo-286/mutated-0.yaml rename to test/e2e_tests/test_data/rdoptwo-286/mutated-0.yaml diff --git a/test/test_data/rdoptwo-286/mutated-1.yaml b/test/e2e_tests/test_data/rdoptwo-286/mutated-1.yaml similarity index 100% rename from test/test_data/rdoptwo-286/mutated-1.yaml rename to test/e2e_tests/test_data/rdoptwo-286/mutated-1.yaml diff --git a/test/test_data/rdoptwo-287/mutated-0.yaml b/test/e2e_tests/test_data/rdoptwo-287/mutated-0.yaml similarity index 100% rename from test/test_data/rdoptwo-287/mutated-0.yaml rename to test/e2e_tests/test_data/rdoptwo-287/mutated-0.yaml diff --git a/test/test_data/rdoptwo-287/mutated-1.yaml b/test/e2e_tests/test_data/rdoptwo-287/mutated-1.yaml similarity index 100% rename from test/test_data/rdoptwo-287/mutated-1.yaml rename to test/e2e_tests/test_data/rdoptwo-287/mutated-1.yaml diff --git a/test/test_data/rdoptwo-287/mutated-2.yaml b/test/e2e_tests/test_data/rdoptwo-287/mutated-2.yaml similarity index 100% rename from test/test_data/rdoptwo-287/mutated-2.yaml rename to test/e2e_tests/test_data/rdoptwo-287/mutated-2.yaml diff --git a/test/test_data/rdoptwo-290/mutated-0.yaml b/test/e2e_tests/test_data/rdoptwo-290/mutated-0.yaml similarity index 100% rename from test/test_data/rdoptwo-290/mutated-0.yaml rename to test/e2e_tests/test_data/rdoptwo-290/mutated-0.yaml diff --git a/test/test_data/rdoptwo-290/mutated-1.yaml b/test/e2e_tests/test_data/rdoptwo-290/mutated-1.yaml similarity index 100% rename from test/test_data/rdoptwo-290/mutated-1.yaml rename to test/e2e_tests/test_data/rdoptwo-290/mutated-1.yaml diff --git a/test/test_data/rdoptwo-290/mutated-2.yaml b/test/e2e_tests/test_data/rdoptwo-290/mutated-2.yaml similarity index 100% rename from test/test_data/rdoptwo-290/mutated-2.yaml rename to test/e2e_tests/test_data/rdoptwo-290/mutated-2.yaml diff --git a/test/test_data/rdoptwo-291/mutated-0.yaml b/test/e2e_tests/test_data/rdoptwo-291/mutated-0.yaml similarity index 100% rename from test/test_data/rdoptwo-291/mutated-0.yaml rename to test/e2e_tests/test_data/rdoptwo-291/mutated-0.yaml diff --git a/test/test_data/rdoptwo-291/mutated-1.yaml b/test/e2e_tests/test_data/rdoptwo-291/mutated-1.yaml similarity index 100% rename from test/test_data/rdoptwo-291/mutated-1.yaml rename to test/e2e_tests/test_data/rdoptwo-291/mutated-1.yaml diff --git a/test/test_data/rdoptwo-297/mutated-0.yaml b/test/e2e_tests/test_data/rdoptwo-297/mutated-0.yaml similarity index 100% rename from test/test_data/rdoptwo-297/mutated-0.yaml rename to test/e2e_tests/test_data/rdoptwo-297/mutated-0.yaml diff --git a/test/test_data/rdoptwo-297/mutated-1.yaml b/test/e2e_tests/test_data/rdoptwo-297/mutated-1.yaml similarity index 100% rename from test/test_data/rdoptwo-297/mutated-1.yaml rename to test/e2e_tests/test_data/rdoptwo-297/mutated-1.yaml diff --git a/test/test_data/rdoptwo-474/mutated-0.yaml b/test/e2e_tests/test_data/rdoptwo-474/mutated-0.yaml similarity index 100% rename from test/test_data/rdoptwo-474/mutated-0.yaml rename to test/e2e_tests/test_data/rdoptwo-474/mutated-0.yaml diff --git a/test/test_data/rdoptwo-474/mutated-1.yaml b/test/e2e_tests/test_data/rdoptwo-474/mutated-1.yaml similarity index 100% rename from test/test_data/rdoptwo-474/mutated-1.yaml rename to test/e2e_tests/test_data/rdoptwo-474/mutated-1.yaml diff --git a/test/test_data/rdoptwo-480/mutated-0.yaml b/test/e2e_tests/test_data/rdoptwo-480/mutated-0.yaml similarity index 100% rename from test/test_data/rdoptwo-480/mutated-0.yaml rename to test/e2e_tests/test_data/rdoptwo-480/mutated-0.yaml diff --git a/test/test_data/rdoptwo-480/mutated-1.yaml b/test/e2e_tests/test_data/rdoptwo-480/mutated-1.yaml similarity index 100% rename from test/test_data/rdoptwo-480/mutated-1.yaml rename to test/e2e_tests/test_data/rdoptwo-480/mutated-1.yaml diff --git a/test/test_data/tiop-4613/diff/mutated-0.yaml b/test/e2e_tests/test_data/tiop-4613/diff/mutated-0.yaml similarity index 100% rename from test/test_data/tiop-4613/diff/mutated-0.yaml rename to test/e2e_tests/test_data/tiop-4613/diff/mutated-0.yaml diff --git a/test/test_data/tiop-4613/diff/mutated-1.yaml b/test/e2e_tests/test_data/tiop-4613/diff/mutated-1.yaml similarity index 100% rename from test/test_data/tiop-4613/diff/mutated-1.yaml rename to test/e2e_tests/test_data/tiop-4613/diff/mutated-1.yaml diff --git a/test/test_data/tiop-4613/diff/mutated-2.yaml b/test/e2e_tests/test_data/tiop-4613/diff/mutated-2.yaml similarity index 100% rename from test/test_data/tiop-4613/diff/mutated-2.yaml rename to test/e2e_tests/test_data/tiop-4613/diff/mutated-2.yaml diff --git a/test/test_data/tiop-4613/normal/mutated-0.yaml b/test/e2e_tests/test_data/tiop-4613/normal/mutated-0.yaml similarity index 100% rename from test/test_data/tiop-4613/normal/mutated-0.yaml rename to test/e2e_tests/test_data/tiop-4613/normal/mutated-0.yaml diff --git a/test/test_data/tiop-4613/normal/mutated-1.yaml b/test/e2e_tests/test_data/tiop-4613/normal/mutated-1.yaml similarity index 100% rename from test/test_data/tiop-4613/normal/mutated-1.yaml rename to test/e2e_tests/test_data/tiop-4613/normal/mutated-1.yaml diff --git a/test/test_data/tiop-4684/mutated-0.yaml b/test/e2e_tests/test_data/tiop-4684/mutated-0.yaml similarity index 100% rename from test/test_data/tiop-4684/mutated-0.yaml rename to test/e2e_tests/test_data/tiop-4684/mutated-0.yaml diff --git a/test/test_data/tiop-4684/mutated-1.yaml b/test/e2e_tests/test_data/tiop-4684/mutated-1.yaml similarity index 100% rename from test/test_data/tiop-4684/mutated-1.yaml rename to test/e2e_tests/test_data/tiop-4684/mutated-1.yaml diff --git a/test/test_data/tiop-4945/mutated-0.yaml b/test/e2e_tests/test_data/tiop-4945/mutated-0.yaml similarity index 100% rename from test/test_data/tiop-4945/mutated-0.yaml rename to test/e2e_tests/test_data/tiop-4945/mutated-0.yaml diff --git a/test/test_data/tiop-4945/mutated-1.yaml b/test/e2e_tests/test_data/tiop-4945/mutated-1.yaml similarity index 100% rename from test/test_data/tiop-4945/mutated-1.yaml rename to test/e2e_tests/test_data/tiop-4945/mutated-1.yaml diff --git a/test/test_data/tiop-4946/mutated-0.yaml b/test/e2e_tests/test_data/tiop-4946/mutated-0.yaml similarity index 100% rename from test/test_data/tiop-4946/mutated-0.yaml rename to test/e2e_tests/test_data/tiop-4946/mutated-0.yaml diff --git a/test/test_data/tiop-4946/mutated-1.yaml b/test/e2e_tests/test_data/tiop-4946/mutated-1.yaml similarity index 100% rename from test/test_data/tiop-4946/mutated-1.yaml rename to test/e2e_tests/test_data/tiop-4946/mutated-1.yaml diff --git a/test/test_data/xtop-1060/mutated-0.yaml b/test/e2e_tests/test_data/xtop-1060/mutated-0.yaml similarity index 100% rename from test/test_data/xtop-1060/mutated-0.yaml rename to test/e2e_tests/test_data/xtop-1060/mutated-0.yaml diff --git a/test/test_data/xtop-1060/mutated-1.yaml b/test/e2e_tests/test_data/xtop-1060/mutated-1.yaml similarity index 100% rename from test/test_data/xtop-1060/mutated-1.yaml rename to test/e2e_tests/test_data/xtop-1060/mutated-1.yaml diff --git a/test/test_data/xtop-1061/mutated-0.yaml b/test/e2e_tests/test_data/xtop-1061/mutated-0.yaml similarity index 100% rename from test/test_data/xtop-1061/mutated-0.yaml rename to test/e2e_tests/test_data/xtop-1061/mutated-0.yaml diff --git a/test/test_data/xtop-1061/mutated-1.yaml b/test/e2e_tests/test_data/xtop-1061/mutated-1.yaml similarity index 100% rename from test/test_data/xtop-1061/mutated-1.yaml rename to test/e2e_tests/test_data/xtop-1061/mutated-1.yaml diff --git a/test/test_data/xtop-1061/mutated-2.yaml b/test/e2e_tests/test_data/xtop-1061/mutated-2.yaml similarity index 100% rename from test/test_data/xtop-1061/mutated-2.yaml rename to test/e2e_tests/test_data/xtop-1061/mutated-2.yaml diff --git a/test/test_data/xtop-1067/mutated-0.yaml b/test/e2e_tests/test_data/xtop-1067/mutated-0.yaml similarity index 100% rename from test/test_data/xtop-1067/mutated-0.yaml rename to test/e2e_tests/test_data/xtop-1067/mutated-0.yaml diff --git a/test/test_data/xtop-1067/mutated-1.yaml b/test/e2e_tests/test_data/xtop-1067/mutated-1.yaml similarity index 100% rename from test/test_data/xtop-1067/mutated-1.yaml rename to test/e2e_tests/test_data/xtop-1067/mutated-1.yaml diff --git a/test/test_data/xtop-1068/mutated-0.yaml b/test/e2e_tests/test_data/xtop-1068/mutated-0.yaml similarity index 100% rename from test/test_data/xtop-1068/mutated-0.yaml rename to test/e2e_tests/test_data/xtop-1068/mutated-0.yaml diff --git a/test/test_data/xtop-1068/mutated-1.yaml b/test/e2e_tests/test_data/xtop-1068/mutated-1.yaml similarity index 100% rename from test/test_data/xtop-1068/mutated-1.yaml rename to test/e2e_tests/test_data/xtop-1068/mutated-1.yaml diff --git a/test/test_data/xtop-1068/mutated-2.yaml b/test/e2e_tests/test_data/xtop-1068/mutated-2.yaml similarity index 100% rename from test/test_data/xtop-1068/mutated-2.yaml rename to test/e2e_tests/test_data/xtop-1068/mutated-2.yaml diff --git a/test/test_data/xtop-1069/mutated-0.yaml b/test/e2e_tests/test_data/xtop-1069/mutated-0.yaml similarity index 100% rename from test/test_data/xtop-1069/mutated-0.yaml rename to test/e2e_tests/test_data/xtop-1069/mutated-0.yaml diff --git a/test/test_data/xtop-1069/mutated-1.yaml b/test/e2e_tests/test_data/xtop-1069/mutated-1.yaml similarity index 100% rename from test/test_data/xtop-1069/mutated-1.yaml rename to test/e2e_tests/test_data/xtop-1069/mutated-1.yaml diff --git a/test/test_data/xtop-1155/mutated-0.yaml b/test/e2e_tests/test_data/xtop-1155/mutated-0.yaml similarity index 100% rename from test/test_data/xtop-1155/mutated-0.yaml rename to test/e2e_tests/test_data/xtop-1155/mutated-0.yaml diff --git a/test/test_data/xtop-1155/mutated-1.yaml b/test/e2e_tests/test_data/xtop-1155/mutated-1.yaml similarity index 100% rename from test/test_data/xtop-1155/mutated-1.yaml rename to test/e2e_tests/test_data/xtop-1155/mutated-1.yaml diff --git a/test/test_data/zkop-454/mutated-0.yaml b/test/e2e_tests/test_data/zkop-454/mutated-0.yaml similarity index 100% rename from test/test_data/zkop-454/mutated-0.yaml rename to test/e2e_tests/test_data/zkop-454/mutated-0.yaml diff --git a/test/test_data/zkop-454/mutated-1.yaml b/test/e2e_tests/test_data/zkop-454/mutated-1.yaml similarity index 100% rename from test/test_data/zkop-454/mutated-1.yaml rename to test/e2e_tests/test_data/zkop-454/mutated-1.yaml diff --git a/test/test_data/zkop-454/mutated-2.yaml b/test/e2e_tests/test_data/zkop-454/mutated-2.yaml similarity index 100% rename from test/test_data/zkop-454/mutated-2.yaml rename to test/e2e_tests/test_data/zkop-454/mutated-2.yaml diff --git a/test/test_data/zkop-474/mutated-0.yaml b/test/e2e_tests/test_data/zkop-474/mutated-0.yaml similarity index 100% rename from test/test_data/zkop-474/mutated-0.yaml rename to test/e2e_tests/test_data/zkop-474/mutated-0.yaml diff --git a/test/test_data/zkop-474/mutated-1.yaml b/test/e2e_tests/test_data/zkop-474/mutated-1.yaml similarity index 100% rename from test/test_data/zkop-474/mutated-1.yaml rename to test/e2e_tests/test_data/zkop-474/mutated-1.yaml diff --git a/test/test_data/zkop-513/mutated-0.yaml b/test/e2e_tests/test_data/zkop-513/mutated-0.yaml similarity index 100% rename from test/test_data/zkop-513/mutated-0.yaml rename to test/e2e_tests/test_data/zkop-513/mutated-0.yaml diff --git a/test/test_data/zkop-513/mutated-1.yaml b/test/e2e_tests/test_data/zkop-513/mutated-1.yaml similarity index 100% rename from test/test_data/zkop-513/mutated-1.yaml rename to test/e2e_tests/test_data/zkop-513/mutated-1.yaml diff --git a/test/test_data/zkop-513/mutated-2.yaml b/test/e2e_tests/test_data/zkop-513/mutated-2.yaml similarity index 100% rename from test/test_data/zkop-513/mutated-2.yaml rename to test/e2e_tests/test_data/zkop-513/mutated-2.yaml diff --git a/test/test_data/zkop-540/mutated-0.yaml b/test/e2e_tests/test_data/zkop-540/mutated-0.yaml similarity index 100% rename from test/test_data/zkop-540/mutated-0.yaml rename to test/e2e_tests/test_data/zkop-540/mutated-0.yaml diff --git a/test/test_data/zkop-540/mutated-1.yaml b/test/e2e_tests/test_data/zkop-540/mutated-1.yaml similarity index 100% rename from test/test_data/zkop-540/mutated-1.yaml rename to test/e2e_tests/test_data/zkop-540/mutated-1.yaml diff --git a/test/test_data/zkop-541/mutated-0.yaml b/test/e2e_tests/test_data/zkop-541/mutated-0.yaml similarity index 100% rename from test/test_data/zkop-541/mutated-0.yaml rename to test/e2e_tests/test_data/zkop-541/mutated-0.yaml diff --git a/test/test_data/zkop-541/mutated-1.yaml b/test/e2e_tests/test_data/zkop-541/mutated-1.yaml similarity index 100% rename from test/test_data/zkop-541/mutated-1.yaml rename to test/e2e_tests/test_data/zkop-541/mutated-1.yaml diff --git a/test/test_data/zkop-547/mutated-0.yaml b/test/e2e_tests/test_data/zkop-547/mutated-0.yaml similarity index 100% rename from test/test_data/zkop-547/mutated-0.yaml rename to test/e2e_tests/test_data/zkop-547/mutated-0.yaml diff --git a/test/test_data/zkop-547/mutated-1.yaml b/test/e2e_tests/test_data/zkop-547/mutated-1.yaml similarity index 100% rename from test/test_data/zkop-547/mutated-1.yaml rename to test/e2e_tests/test_data/zkop-547/mutated-1.yaml diff --git a/test/cassop-330/trial-00-0001/operator-4.log b/test/integration_tests/__init__.py similarity index 100% rename from test/cassop-330/trial-00-0001/operator-4.log rename to test/integration_tests/__init__.py diff --git a/test/test_cassop_bugs.py b/test/integration_tests/test_cassop_bugs.py similarity index 50% rename from test/test_cassop_bugs.py rename to test/integration_tests/test_cassop_bugs.py index cdd78fb19c..17ee199d3e 100644 --- a/test/test_cassop_bugs.py +++ b/test/integration_tests/test_cassop_bugs.py @@ -2,6 +2,7 @@ import os import pathlib import unittest +from test.utils import construct_snapshot import yaml @@ -12,9 +13,8 @@ from acto.post_process.post_diff_test import DiffTestResult, PostDiffTest from acto.post_process.post_process import construct_step -from .utils import construct_snapshot - test_dir = pathlib.Path(__file__).parent.resolve() +test_data_dir = os.path.join(test_dir, 'test_data') class TestCassOpBugs(unittest.TestCase): @@ -23,35 +23,45 @@ def __init__(self, methodName: str = "runTest") -> None: super().__init__(methodName) # prepare and load config - config_path = os.path.join(test_dir.parent, 'data', 'cass-operator', 'config.json') - with open(config_path, 'r') as config_file: + config_path = os.path.join( + test_dir.parent.parent, + "data", + "cass-operator", + "config.json") + with open(config_path, "r") as config_file: self.config = OperatorConfig(**json.load(config_file)) # prepare context - context_file = os.path.join(os.path.dirname(self.config.seed_custom_resource), - 'context.json') - with open(context_file, 'r') as context_fin: + context_file = os.path.join( + os.path.dirname( + self.config.seed_custom_resource), + "context.json") + with open(context_file, "r") as context_fin: self.context = json.load(context_fin) - self.context['preload_images'] = set(self.context['preload_images']) + self.context["preload_images"] = set(self.context["preload_images"]) # prepare feature gate - acto_config.load_config(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'cassop_bugs_config.yaml')) + acto_config.load_config( + os.path.join( + test_data_dir, + "cassop_bugs_config.yaml")) # prepare input model - with open(self.config.seed_custom_resource, 'r') as cr_file: + with open(self.config.seed_custom_resource, "r") as cr_file: self.seed = yaml.load(cr_file, Loader=yaml.FullLoader) self.input_model: InputModel = DeterministicInputModel( - self.context['crd']['body'], self.context['analysis_result']['used_fields'], + self.context["crd"]["body"], + self.context["analysis_result"]["used_fields"], self.config.example_dir, 1, 1, None) self.input_model.initialize(self.seed) def test_cassop_330(self): # https://github.com/k8ssandra/cass-operator/issues/330 - trial_dir = os.path.join(test_dir, 'cassop-330') + trial_dir = os.path.join(test_data_dir, "cassop-330") checker = CheckerSet(self.context, - trial_dir, - self.input_model, []) + trial_dir, + self.input_model, []) snapshot_0 = construct_snapshot(trial_dir, 1) snapshot_1 = construct_snapshot(trial_dir, 2) @@ -60,23 +70,28 @@ def test_cassop_330(self): self.assertTrue(runResult.is_error()) def test_cassop_330_diff(self): - diff_test_result_path = os.path.join(test_dir, 'cassop-330', 'difftest-006.json') + diff_test_result_path = os.path.join( + test_data_dir, "cassop-330", "difftest-006.json") diff_test_result = DiffTestResult.from_file(diff_test_result_path) - trial_dir = os.path.join(test_dir, 'cassop-330/trial-00-0001') + trial_dir = os.path.join(test_data_dir, "cassop-330", "trial-00-0001") step = construct_step(trial_dir, 8) - result = PostDiffTest.check_diff_test_step(diff_test_result, step, self.config) - self.assertTrue(result != None) + result = PostDiffTest.check_diff_test_step( + diff_test_result, step, self.config) + self.assertTrue(result is not None) def test_cassop_928(self): - diff_test_result_path = os.path.join(test_dir, 'cassop-315', 'difftest-002.json') + diff_test_result_path = os.path.join( + test_data_dir, "cassop-315", "difftest-002.json") diff_test_result = DiffTestResult.from_file(diff_test_result_path) - trial_dir = os.path.join(test_dir, 'cassop-315/trial-04-0000') + trial_dir = os.path.join(test_data_dir, "cassop-315", "trial-04-0000") step = construct_step(trial_dir, 2) - result = PostDiffTest.check_diff_test_step(diff_test_result, step, self.config) - self.assertTrue(result != None) + result = PostDiffTest.check_diff_test_step( + diff_test_result, step, self.config) + self.assertTrue(result is not None) + -if __name__ == '__main__': - unittest.main() \ No newline at end of file +if __name__ == "__main__": + unittest.main() diff --git a/test/test_compare.py b/test/integration_tests/test_compare.py similarity index 100% rename from test/test_compare.py rename to test/integration_tests/test_compare.py diff --git a/test/test_crdb_bugs.py b/test/integration_tests/test_crdb_bugs.py similarity index 54% rename from test/test_crdb_bugs.py rename to test/integration_tests/test_crdb_bugs.py index 071b5c9b01..1ba106e5c6 100644 --- a/test/test_crdb_bugs.py +++ b/test/integration_tests/test_crdb_bugs.py @@ -2,6 +2,7 @@ import os import pathlib import unittest +from test.utils import construct_snapshot import yaml @@ -10,9 +11,8 @@ from acto.input import DeterministicInputModel, InputModel from acto.lib.operator_config import OperatorConfig -from .utils import construct_snapshot - test_dir = pathlib.Path(__file__).parent.resolve() +test_data_dir = os.path.join(test_dir, 'test_data') class TestCRDBOpBugs(unittest.TestCase): @@ -21,35 +21,45 @@ def __init__(self, methodName: str = "runTest") -> None: super().__init__(methodName) # prepare and load config - config_path = os.path.join(test_dir.parent, 'data', 'cockroach-operator', 'config.json') - with open(config_path, 'r') as config_file: + config_path = os.path.join( + test_dir.parent.parent, + "data", + "cockroach-operator", + "config.json") + with open(config_path, "r") as config_file: self.config = OperatorConfig(**json.load(config_file)) # prepare context - context_file = os.path.join(os.path.dirname(self.config.seed_custom_resource), - 'context.json') - with open(context_file, 'r') as context_fin: + context_file = os.path.join( + os.path.dirname( + self.config.seed_custom_resource), + "context.json") + with open(context_file, "r") as context_fin: self.context = json.load(context_fin) - self.context['preload_images'] = set(self.context['preload_images']) + self.context["preload_images"] = set(self.context["preload_images"]) # prepare feature gate - acto_config.load_config(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'crdb_bugs_config.yaml')) + acto_config.load_config( + os.path.join( + test_data_dir, + "crdb_bugs_config.yaml")) # prepare input model - with open(self.config.seed_custom_resource, 'r') as cr_file: + with open(self.config.seed_custom_resource, "r") as cr_file: self.seed = yaml.load(cr_file, Loader=yaml.FullLoader) self.input_model: InputModel = DeterministicInputModel( - self.context['crd']['body'], self.context['analysis_result']['used_fields'], + self.context["crd"]["body"], + self.context["analysis_result"]["used_fields"], self.config.example_dir, 1, 1, None) self.input_model.initialize(self.seed) def test_crdbop_920(self): # https://github.com/cockroachdb/cockroach-operator/issues/920 - trial_dir = os.path.join(test_dir, 'crdbop-920') + trial_dir = os.path.join(test_data_dir, "crdbop-920") checker = CheckerSet(self.context, - trial_dir, - self.input_model, []) + trial_dir, + self.input_model, []) snapshot_0 = construct_snapshot(trial_dir, 1) snapshot_1 = construct_snapshot(trial_dir, 2) @@ -58,5 +68,5 @@ def test_crdbop_920(self): self.assertTrue(runResult.is_error()) -if __name__ == '__main__': - unittest.main() \ No newline at end of file +if __name__ == "__main__": + unittest.main() diff --git a/test/cassop-315/difftest-002.json b/test/integration_tests/test_data/cassop-315/difftest-002.json similarity index 100% rename from test/cassop-315/difftest-002.json rename to test/integration_tests/test_data/cassop-315/difftest-002.json diff --git a/test/cassop-315/trial-04-0000/cli-output--1.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/cli-output--1.log similarity index 100% rename from test/cassop-315/trial-04-0000/cli-output--1.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/cli-output--1.log diff --git a/test/cassop-315/trial-04-0000/cli-output-0.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/cli-output-0.log similarity index 100% rename from test/cassop-315/trial-04-0000/cli-output-0.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/cli-output-0.log diff --git a/test/cassop-315/trial-04-0000/cli-output-1.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/cli-output-1.log similarity index 100% rename from test/cassop-315/trial-04-0000/cli-output-1.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/cli-output-1.log diff --git a/test/cassop-315/trial-04-0000/cli-output-2.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/cli-output-2.log similarity index 100% rename from test/cassop-315/trial-04-0000/cli-output-2.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/cli-output-2.log diff --git a/test/cassop-315/trial-04-0000/cli-output-3.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/cli-output-3.log similarity index 100% rename from test/cassop-315/trial-04-0000/cli-output-3.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/cli-output-3.log diff --git a/test/cassop-315/trial-04-0000/cli-output-4.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/cli-output-4.log similarity index 100% rename from test/cassop-315/trial-04-0000/cli-output-4.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/cli-output-4.log diff --git a/test/cassop-315/trial-04-0000/cli-output-5.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/cli-output-5.log similarity index 100% rename from test/cassop-315/trial-04-0000/cli-output-5.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/cli-output-5.log diff --git a/test/cassop-315/trial-04-0000/delta-0.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/delta-0.log similarity index 100% rename from test/cassop-315/trial-04-0000/delta-0.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/delta-0.log diff --git a/test/cassop-315/trial-04-0000/delta-1.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/delta-1.log similarity index 100% rename from test/cassop-315/trial-04-0000/delta-1.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/delta-1.log diff --git a/test/cassop-315/trial-04-0000/delta-2.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/delta-2.log similarity index 100% rename from test/cassop-315/trial-04-0000/delta-2.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/delta-2.log diff --git a/test/cassop-315/trial-04-0000/delta-3.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/delta-3.log similarity index 100% rename from test/cassop-315/trial-04-0000/delta-3.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/delta-3.log diff --git a/test/cassop-315/trial-04-0000/delta-4.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/delta-4.log similarity index 100% rename from test/cassop-315/trial-04-0000/delta-4.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/delta-4.log diff --git a/test/cassop-315/trial-04-0000/delta-5.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/delta-5.log similarity index 100% rename from test/cassop-315/trial-04-0000/delta-5.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/delta-5.log diff --git a/test/cassop-330/trial-00-0001/events-0.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/events-0.json similarity index 100% rename from test/cassop-330/trial-00-0001/events-0.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/events-0.json diff --git a/test/cassop-330/trial-00-0001/events-1.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/events-1.json similarity index 100% rename from test/cassop-330/trial-00-0001/events-1.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/events-1.json diff --git a/test/cassop-330/trial-00-0001/events-2.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/events-2.json similarity index 100% rename from test/cassop-330/trial-00-0001/events-2.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/events-2.json diff --git a/test/cassop-315/trial-04-0000/events-3.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/events-3.json similarity index 100% rename from test/cassop-315/trial-04-0000/events-3.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/events-3.json diff --git a/test/cassop-315/trial-04-0000/events-4.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/events-4.json similarity index 100% rename from test/cassop-315/trial-04-0000/events-4.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/events-4.json diff --git a/test/cassop-315/trial-04-0000/events-5.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/events-5.json similarity index 100% rename from test/cassop-315/trial-04-0000/events-5.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/events-5.json diff --git a/test/cassop-330/generation-0-runtime.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/generation-0-runtime.json similarity index 100% rename from test/cassop-330/generation-0-runtime.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/generation-0-runtime.json diff --git a/test/cassop-315/trial-04-0000/generation-1-runtime.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/generation-1-runtime.json similarity index 100% rename from test/cassop-315/trial-04-0000/generation-1-runtime.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/generation-1-runtime.json diff --git a/test/cassop-315/trial-04-0000/generation-2-runtime.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/generation-2-runtime.json similarity index 100% rename from test/cassop-315/trial-04-0000/generation-2-runtime.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/generation-2-runtime.json diff --git a/test/cassop-315/trial-04-0000/generation-3-runtime.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/generation-3-runtime.json similarity index 100% rename from test/cassop-315/trial-04-0000/generation-3-runtime.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/generation-3-runtime.json diff --git a/test/cassop-315/trial-04-0000/generation-4-runtime.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/generation-4-runtime.json similarity index 100% rename from test/cassop-315/trial-04-0000/generation-4-runtime.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/generation-4-runtime.json diff --git a/test/cassop-315/trial-04-0000/generation-5-runtime.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/generation-5-runtime.json similarity index 100% rename from test/cassop-315/trial-04-0000/generation-5-runtime.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/generation-5-runtime.json diff --git a/test/cassop-315/trial-04-0000/mutated--1.yaml b/test/integration_tests/test_data/cassop-315/trial-04-0000/mutated--1.yaml similarity index 100% rename from test/cassop-315/trial-04-0000/mutated--1.yaml rename to test/integration_tests/test_data/cassop-315/trial-04-0000/mutated--1.yaml diff --git a/test/test_data/cassop-315/inputs/mutated-0.yaml b/test/integration_tests/test_data/cassop-315/trial-04-0000/mutated-0.yaml similarity index 100% rename from test/test_data/cassop-315/inputs/mutated-0.yaml rename to test/integration_tests/test_data/cassop-315/trial-04-0000/mutated-0.yaml diff --git a/test/cassop-315/trial-04-0000/mutated-1.yaml b/test/integration_tests/test_data/cassop-315/trial-04-0000/mutated-1.yaml similarity index 100% rename from test/cassop-315/trial-04-0000/mutated-1.yaml rename to test/integration_tests/test_data/cassop-315/trial-04-0000/mutated-1.yaml diff --git a/test/cassop-315/trial-04-0000/mutated-2.yaml b/test/integration_tests/test_data/cassop-315/trial-04-0000/mutated-2.yaml similarity index 100% rename from test/cassop-315/trial-04-0000/mutated-2.yaml rename to test/integration_tests/test_data/cassop-315/trial-04-0000/mutated-2.yaml diff --git a/test/cassop-315/trial-04-0000/mutated-3.yaml b/test/integration_tests/test_data/cassop-315/trial-04-0000/mutated-3.yaml similarity index 100% rename from test/cassop-315/trial-04-0000/mutated-3.yaml rename to test/integration_tests/test_data/cassop-315/trial-04-0000/mutated-3.yaml diff --git a/test/cassop-315/trial-04-0000/mutated-4.yaml b/test/integration_tests/test_data/cassop-315/trial-04-0000/mutated-4.yaml similarity index 100% rename from test/cassop-315/trial-04-0000/mutated-4.yaml rename to test/integration_tests/test_data/cassop-315/trial-04-0000/mutated-4.yaml diff --git a/test/cassop-315/trial-04-0000/mutated-5.yaml b/test/integration_tests/test_data/cassop-315/trial-04-0000/mutated-5.yaml similarity index 100% rename from test/cassop-315/trial-04-0000/mutated-5.yaml rename to test/integration_tests/test_data/cassop-315/trial-04-0000/mutated-5.yaml diff --git a/test/cassop-315/trial-04-0000/operator--1.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/operator--1.log similarity index 100% rename from test/cassop-315/trial-04-0000/operator--1.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/operator--1.log diff --git a/test/cassop-315/trial-04-0000/operator-0.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/operator-0.log similarity index 100% rename from test/cassop-315/trial-04-0000/operator-0.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/operator-0.log diff --git a/test/cassop-315/trial-04-0000/operator-1.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/operator-1.log similarity index 100% rename from test/cassop-315/trial-04-0000/operator-1.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/operator-1.log diff --git a/test/cassop-315/trial-04-0000/operator-2.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/operator-2.log similarity index 100% rename from test/cassop-315/trial-04-0000/operator-2.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/operator-2.log diff --git a/test/cassop-315/trial-04-0000/operator-3.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/operator-3.log similarity index 100% rename from test/cassop-315/trial-04-0000/operator-3.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/operator-3.log diff --git a/test/cassop-315/trial-04-0000/operator-4.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/operator-4.log similarity index 100% rename from test/cassop-315/trial-04-0000/operator-4.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/operator-4.log diff --git a/test/cassop-315/trial-04-0000/operator-5.log b/test/integration_tests/test_data/cassop-315/trial-04-0000/operator-5.log similarity index 100% rename from test/cassop-315/trial-04-0000/operator-5.log rename to test/integration_tests/test_data/cassop-315/trial-04-0000/operator-5.log diff --git a/test/cassop-315/trial-04-0000/post-result-0-baseline.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-0-baseline.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-0-baseline.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-0-baseline.json diff --git a/test/cassop-315/trial-04-0000/post-result-0-canonicalization.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-0-canonicalization.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-0-canonicalization.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-0-canonicalization.json diff --git a/test/cassop-315/trial-04-0000/post-result-0-dependency_analysis.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-0-dependency_analysis.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-0-dependency_analysis.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-0-dependency_analysis.json diff --git a/test/cassop-315/trial-04-0000/post-result-0-taint_analysis.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-0-taint_analysis.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-0-taint_analysis.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-0-taint_analysis.json diff --git a/test/cassop-315/trial-04-0000/post-result-1-baseline.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-1-baseline.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-1-baseline.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-1-baseline.json diff --git a/test/cassop-315/trial-04-0000/post-result-1-canonicalization.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-1-canonicalization.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-1-canonicalization.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-1-canonicalization.json diff --git a/test/cassop-315/trial-04-0000/post-result-1-dependency_analysis.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-1-dependency_analysis.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-1-dependency_analysis.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-1-dependency_analysis.json diff --git a/test/cassop-315/trial-04-0000/post-result-1-taint_analysis.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-1-taint_analysis.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-1-taint_analysis.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-1-taint_analysis.json diff --git a/test/cassop-315/trial-04-0000/post-result-2-baseline.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-2-baseline.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-2-baseline.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-2-baseline.json diff --git a/test/cassop-315/trial-04-0000/post-result-2-canonicalization.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-2-canonicalization.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-2-canonicalization.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-2-canonicalization.json diff --git a/test/cassop-315/trial-04-0000/post-result-2-dependency_analysis.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-2-dependency_analysis.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-2-dependency_analysis.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-2-dependency_analysis.json diff --git a/test/cassop-315/trial-04-0000/post-result-2-taint_analysis.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-2-taint_analysis.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-2-taint_analysis.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-2-taint_analysis.json diff --git a/test/cassop-315/trial-04-0000/post-result-3-baseline.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-3-baseline.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-3-baseline.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-3-baseline.json diff --git a/test/cassop-315/trial-04-0000/post-result-3-canonicalization.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-3-canonicalization.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-3-canonicalization.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-3-canonicalization.json diff --git a/test/cassop-315/trial-04-0000/post-result-3-dependency_analysis.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-3-dependency_analysis.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-3-dependency_analysis.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-3-dependency_analysis.json diff --git a/test/cassop-315/trial-04-0000/post-result-3-taint_analysis.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-3-taint_analysis.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-3-taint_analysis.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-3-taint_analysis.json diff --git a/test/cassop-315/trial-04-0000/post-result-4-baseline.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-4-baseline.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-4-baseline.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-4-baseline.json diff --git a/test/cassop-315/trial-04-0000/post-result-4-canonicalization.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-4-canonicalization.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-4-canonicalization.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-4-canonicalization.json diff --git a/test/cassop-315/trial-04-0000/post-result-4-dependency_analysis.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-4-dependency_analysis.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-4-dependency_analysis.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-4-dependency_analysis.json diff --git a/test/cassop-315/trial-04-0000/post-result-4-taint_analysis.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-4-taint_analysis.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-4-taint_analysis.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-4-taint_analysis.json diff --git a/test/cassop-315/trial-04-0000/post-result-5-baseline.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-5-baseline.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-5-baseline.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-5-baseline.json diff --git a/test/cassop-315/trial-04-0000/post-result-5-canonicalization.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-5-canonicalization.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-5-canonicalization.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-5-canonicalization.json diff --git a/test/cassop-315/trial-04-0000/post-result-5-dependency_analysis.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-5-dependency_analysis.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-5-dependency_analysis.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-5-dependency_analysis.json diff --git a/test/cassop-315/trial-04-0000/post-result-5-taint_analysis.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-5-taint_analysis.json similarity index 100% rename from test/cassop-315/trial-04-0000/post-result-5-taint_analysis.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/post-result-5-taint_analysis.json diff --git a/test/cassop-315/trial-04-0000/result.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/result.json similarity index 100% rename from test/cassop-315/trial-04-0000/result.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/result.json diff --git a/test/cassop-315/trial-04-0000/system-state--01.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/system-state--01.json similarity index 100% rename from test/cassop-315/trial-04-0000/system-state--01.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/system-state--01.json diff --git a/test/cassop-315/trial-04-0000/system-state-000.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/system-state-000.json similarity index 100% rename from test/cassop-315/trial-04-0000/system-state-000.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/system-state-000.json diff --git a/test/cassop-315/trial-04-0000/system-state-001.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/system-state-001.json similarity index 100% rename from test/cassop-315/trial-04-0000/system-state-001.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/system-state-001.json diff --git a/test/cassop-315/trial-04-0000/system-state-002.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/system-state-002.json similarity index 100% rename from test/cassop-315/trial-04-0000/system-state-002.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/system-state-002.json diff --git a/test/cassop-315/trial-04-0000/system-state-003.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/system-state-003.json similarity index 100% rename from test/cassop-315/trial-04-0000/system-state-003.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/system-state-003.json diff --git a/test/cassop-315/trial-04-0000/system-state-004.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/system-state-004.json similarity index 100% rename from test/cassop-315/trial-04-0000/system-state-004.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/system-state-004.json diff --git a/test/cassop-315/trial-04-0000/system-state-005.json b/test/integration_tests/test_data/cassop-315/trial-04-0000/system-state-005.json similarity index 100% rename from test/cassop-315/trial-04-0000/system-state-005.json rename to test/integration_tests/test_data/cassop-315/trial-04-0000/system-state-005.json diff --git a/test/cassop-330/cli-output--1.log b/test/integration_tests/test_data/cassop-330/cli-output--1.log similarity index 100% rename from test/cassop-330/cli-output--1.log rename to test/integration_tests/test_data/cassop-330/cli-output--1.log diff --git a/test/cassop-330/cli-output-0.log b/test/integration_tests/test_data/cassop-330/cli-output-0.log similarity index 100% rename from test/cassop-330/cli-output-0.log rename to test/integration_tests/test_data/cassop-330/cli-output-0.log diff --git a/test/cassop-330/cli-output-1.log b/test/integration_tests/test_data/cassop-330/cli-output-1.log similarity index 100% rename from test/cassop-330/cli-output-1.log rename to test/integration_tests/test_data/cassop-330/cli-output-1.log diff --git a/test/cassop-330/cli-output-2.log b/test/integration_tests/test_data/cassop-330/cli-output-2.log similarity index 100% rename from test/cassop-330/cli-output-2.log rename to test/integration_tests/test_data/cassop-330/cli-output-2.log diff --git a/test/cassop-330/delta-0.log b/test/integration_tests/test_data/cassop-330/delta-0.log similarity index 100% rename from test/cassop-330/delta-0.log rename to test/integration_tests/test_data/cassop-330/delta-0.log diff --git a/test/cassop-330/delta-1.log b/test/integration_tests/test_data/cassop-330/delta-1.log similarity index 100% rename from test/cassop-330/delta-1.log rename to test/integration_tests/test_data/cassop-330/delta-1.log diff --git a/test/cassop-330/delta-2.log b/test/integration_tests/test_data/cassop-330/delta-2.log similarity index 98% rename from test/cassop-330/delta-2.log rename to test/integration_tests/test_data/cassop-330/delta-2.log index e929ee5c80..4e54e1c756 100644 --- a/test/cassop-330/delta-2.log +++ b/test/integration_tests/test_data/cassop-330/delta-2.log @@ -16,6 +16,8 @@ } ---------- SYSTEM DELTA ---------- { + "daemonset_pods": {}, + "daemon_set": {}, "pod": {}, "deployment_pods": {}, "stateful_set": {}, diff --git a/test/cassop-330/difftest-006.json b/test/integration_tests/test_data/cassop-330/difftest-006.json similarity index 100% rename from test/cassop-330/difftest-006.json rename to test/integration_tests/test_data/cassop-330/difftest-006.json diff --git a/test/cassop-330/events.log b/test/integration_tests/test_data/cassop-330/events.log similarity index 100% rename from test/cassop-330/events.log rename to test/integration_tests/test_data/cassop-330/events.log diff --git a/test/cassop-330/trial-00-0001/generation-0-runtime.json b/test/integration_tests/test_data/cassop-330/generation-0-runtime.json similarity index 100% rename from test/cassop-330/trial-00-0001/generation-0-runtime.json rename to test/integration_tests/test_data/cassop-330/generation-0-runtime.json diff --git a/test/cassop-330/generation-1-runtime.json b/test/integration_tests/test_data/cassop-330/generation-1-runtime.json similarity index 100% rename from test/cassop-330/generation-1-runtime.json rename to test/integration_tests/test_data/cassop-330/generation-1-runtime.json diff --git a/test/cassop-330/generation-2-runtime.json b/test/integration_tests/test_data/cassop-330/generation-2-runtime.json similarity index 100% rename from test/cassop-330/generation-2-runtime.json rename to test/integration_tests/test_data/cassop-330/generation-2-runtime.json diff --git a/test/cassop-330/mutated--1.yaml b/test/integration_tests/test_data/cassop-330/mutated--1.yaml similarity index 100% rename from test/cassop-330/mutated--1.yaml rename to test/integration_tests/test_data/cassop-330/mutated--1.yaml diff --git a/test/test_data/cassop-330/trial-demo/mutated-0.yaml b/test/integration_tests/test_data/cassop-330/mutated-0.yaml similarity index 100% rename from test/test_data/cassop-330/trial-demo/mutated-0.yaml rename to test/integration_tests/test_data/cassop-330/mutated-0.yaml diff --git a/test/cassop-330/mutated-1.yaml b/test/integration_tests/test_data/cassop-330/mutated-1.yaml similarity index 100% rename from test/cassop-330/mutated-1.yaml rename to test/integration_tests/test_data/cassop-330/mutated-1.yaml diff --git a/test/cassop-330/mutated-2.yaml b/test/integration_tests/test_data/cassop-330/mutated-2.yaml similarity index 100% rename from test/cassop-330/mutated-2.yaml rename to test/integration_tests/test_data/cassop-330/mutated-2.yaml diff --git a/test/cassop-330/operator--1.log b/test/integration_tests/test_data/cassop-330/operator--1.log similarity index 100% rename from test/cassop-330/operator--1.log rename to test/integration_tests/test_data/cassop-330/operator--1.log diff --git a/test/cassop-330/operator-0.log b/test/integration_tests/test_data/cassop-330/operator-0.log similarity index 100% rename from test/cassop-330/operator-0.log rename to test/integration_tests/test_data/cassop-330/operator-0.log diff --git a/test/cassop-330/operator-1.log b/test/integration_tests/test_data/cassop-330/operator-1.log similarity index 100% rename from test/cassop-330/operator-1.log rename to test/integration_tests/test_data/cassop-330/operator-1.log diff --git a/test/cassop-330/operator-2.log b/test/integration_tests/test_data/cassop-330/operator-2.log similarity index 100% rename from test/cassop-330/operator-2.log rename to test/integration_tests/test_data/cassop-330/operator-2.log diff --git a/test/cassop-330/post-result-0-baseline.json b/test/integration_tests/test_data/cassop-330/post-result-0-baseline.json similarity index 100% rename from test/cassop-330/post-result-0-baseline.json rename to test/integration_tests/test_data/cassop-330/post-result-0-baseline.json diff --git a/test/cassop-330/post-result-0-canonicalization.json b/test/integration_tests/test_data/cassop-330/post-result-0-canonicalization.json similarity index 100% rename from test/cassop-330/post-result-0-canonicalization.json rename to test/integration_tests/test_data/cassop-330/post-result-0-canonicalization.json diff --git a/test/cassop-330/post-result-0-dependency_analysis.json b/test/integration_tests/test_data/cassop-330/post-result-0-dependency_analysis.json similarity index 100% rename from test/cassop-330/post-result-0-dependency_analysis.json rename to test/integration_tests/test_data/cassop-330/post-result-0-dependency_analysis.json diff --git a/test/cassop-330/post-result-0-taint_analysis.json b/test/integration_tests/test_data/cassop-330/post-result-0-taint_analysis.json similarity index 100% rename from test/cassop-330/post-result-0-taint_analysis.json rename to test/integration_tests/test_data/cassop-330/post-result-0-taint_analysis.json diff --git a/test/cassop-330/post-result-1-baseline.json b/test/integration_tests/test_data/cassop-330/post-result-1-baseline.json similarity index 100% rename from test/cassop-330/post-result-1-baseline.json rename to test/integration_tests/test_data/cassop-330/post-result-1-baseline.json diff --git a/test/cassop-330/post-result-1-canonicalization.json b/test/integration_tests/test_data/cassop-330/post-result-1-canonicalization.json similarity index 100% rename from test/cassop-330/post-result-1-canonicalization.json rename to test/integration_tests/test_data/cassop-330/post-result-1-canonicalization.json diff --git a/test/cassop-330/post-result-1-dependency_analysis.json b/test/integration_tests/test_data/cassop-330/post-result-1-dependency_analysis.json similarity index 100% rename from test/cassop-330/post-result-1-dependency_analysis.json rename to test/integration_tests/test_data/cassop-330/post-result-1-dependency_analysis.json diff --git a/test/cassop-330/post-result-1-taint_analysis.json b/test/integration_tests/test_data/cassop-330/post-result-1-taint_analysis.json similarity index 100% rename from test/cassop-330/post-result-1-taint_analysis.json rename to test/integration_tests/test_data/cassop-330/post-result-1-taint_analysis.json diff --git a/test/cassop-330/post-result-2-baseline.json b/test/integration_tests/test_data/cassop-330/post-result-2-baseline.json similarity index 100% rename from test/cassop-330/post-result-2-baseline.json rename to test/integration_tests/test_data/cassop-330/post-result-2-baseline.json diff --git a/test/cassop-330/post-result-2-canonicalization.json b/test/integration_tests/test_data/cassop-330/post-result-2-canonicalization.json similarity index 100% rename from test/cassop-330/post-result-2-canonicalization.json rename to test/integration_tests/test_data/cassop-330/post-result-2-canonicalization.json diff --git a/test/cassop-330/post-result-2-dependency_analysis.json b/test/integration_tests/test_data/cassop-330/post-result-2-dependency_analysis.json similarity index 100% rename from test/cassop-330/post-result-2-dependency_analysis.json rename to test/integration_tests/test_data/cassop-330/post-result-2-dependency_analysis.json diff --git a/test/cassop-330/post-result-2-taint_analysis.json b/test/integration_tests/test_data/cassop-330/post-result-2-taint_analysis.json similarity index 100% rename from test/cassop-330/post-result-2-taint_analysis.json rename to test/integration_tests/test_data/cassop-330/post-result-2-taint_analysis.json diff --git a/test/cassop-330/result.json b/test/integration_tests/test_data/cassop-330/result.json similarity index 100% rename from test/cassop-330/result.json rename to test/integration_tests/test_data/cassop-330/result.json diff --git a/test/cassop-330/system-state--01.json b/test/integration_tests/test_data/cassop-330/system-state--01.json similarity index 100% rename from test/cassop-330/system-state--01.json rename to test/integration_tests/test_data/cassop-330/system-state--01.json diff --git a/test/cassop-330/system-state-000.json b/test/integration_tests/test_data/cassop-330/system-state-000.json similarity index 100% rename from test/cassop-330/system-state-000.json rename to test/integration_tests/test_data/cassop-330/system-state-000.json diff --git a/test/cassop-330/system-state-001.json b/test/integration_tests/test_data/cassop-330/system-state-001.json similarity index 100% rename from test/cassop-330/system-state-001.json rename to test/integration_tests/test_data/cassop-330/system-state-001.json diff --git a/test/cassop-330/system-state-002.json b/test/integration_tests/test_data/cassop-330/system-state-002.json similarity index 100% rename from test/cassop-330/system-state-002.json rename to test/integration_tests/test_data/cassop-330/system-state-002.json diff --git a/test/cassop-330/trial-00-0001/cli-output--1.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output--1.log similarity index 100% rename from test/cassop-330/trial-00-0001/cli-output--1.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output--1.log diff --git a/test/cassop-330/trial-00-0001/cli-output-0.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output-0.log similarity index 100% rename from test/cassop-330/trial-00-0001/cli-output-0.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output-0.log diff --git a/test/cassop-330/trial-00-0001/cli-output-1.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output-1.log similarity index 100% rename from test/cassop-330/trial-00-0001/cli-output-1.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output-1.log diff --git a/test/cassop-330/trial-00-0001/cli-output-2.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output-2.log similarity index 100% rename from test/cassop-330/trial-00-0001/cli-output-2.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output-2.log diff --git a/test/cassop-330/trial-00-0001/cli-output-3.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output-3.log similarity index 100% rename from test/cassop-330/trial-00-0001/cli-output-3.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output-3.log diff --git a/test/cassop-330/trial-00-0001/cli-output-4.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output-4.log similarity index 100% rename from test/cassop-330/trial-00-0001/cli-output-4.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output-4.log diff --git a/test/cassop-330/trial-00-0001/cli-output-5.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output-5.log similarity index 100% rename from test/cassop-330/trial-00-0001/cli-output-5.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output-5.log diff --git a/test/cassop-330/trial-00-0001/cli-output-6.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output-6.log similarity index 100% rename from test/cassop-330/trial-00-0001/cli-output-6.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output-6.log diff --git a/test/cassop-330/trial-00-0001/cli-output-7.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output-7.log similarity index 100% rename from test/cassop-330/trial-00-0001/cli-output-7.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output-7.log diff --git a/test/cassop-330/trial-00-0001/cli-output-8.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output-8.log similarity index 100% rename from test/cassop-330/trial-00-0001/cli-output-8.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/cli-output-8.log diff --git a/test/cassop-330/trial-00-0001/delta-0.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/delta-0.log similarity index 100% rename from test/cassop-330/trial-00-0001/delta-0.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/delta-0.log diff --git a/test/cassop-330/trial-00-0001/delta-1.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/delta-1.log similarity index 100% rename from test/cassop-330/trial-00-0001/delta-1.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/delta-1.log diff --git a/test/cassop-330/trial-00-0001/delta-2.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/delta-2.log similarity index 100% rename from test/cassop-330/trial-00-0001/delta-2.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/delta-2.log diff --git a/test/cassop-330/trial-00-0001/delta-3.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/delta-3.log similarity index 100% rename from test/cassop-330/trial-00-0001/delta-3.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/delta-3.log diff --git a/test/cassop-330/trial-00-0001/delta-4.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/delta-4.log similarity index 100% rename from test/cassop-330/trial-00-0001/delta-4.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/delta-4.log diff --git a/test/cassop-330/trial-00-0001/delta-5.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/delta-5.log similarity index 100% rename from test/cassop-330/trial-00-0001/delta-5.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/delta-5.log diff --git a/test/cassop-330/trial-00-0001/delta-6.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/delta-6.log similarity index 100% rename from test/cassop-330/trial-00-0001/delta-6.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/delta-6.log diff --git a/test/cassop-330/trial-00-0001/delta-7.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/delta-7.log similarity index 100% rename from test/cassop-330/trial-00-0001/delta-7.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/delta-7.log diff --git a/test/cassop-330/trial-00-0001/delta-8.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/delta-8.log similarity index 100% rename from test/cassop-330/trial-00-0001/delta-8.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/delta-8.log diff --git a/test/crdbop-919/events-0.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/events-0.json similarity index 100% rename from test/crdbop-919/events-0.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/events-0.json diff --git a/test/crdbop-919/events-1.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/events-1.json similarity index 100% rename from test/crdbop-919/events-1.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/events-1.json diff --git a/test/crdbop-919/events-2.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/events-2.json similarity index 100% rename from test/crdbop-919/events-2.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/events-2.json diff --git a/test/cassop-330/trial-00-0001/events-3.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/events-3.json similarity index 100% rename from test/cassop-330/trial-00-0001/events-3.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/events-3.json diff --git a/test/cassop-330/trial-00-0001/events-4.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/events-4.json similarity index 100% rename from test/cassop-330/trial-00-0001/events-4.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/events-4.json diff --git a/test/cassop-330/trial-00-0001/events-5.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/events-5.json similarity index 100% rename from test/cassop-330/trial-00-0001/events-5.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/events-5.json diff --git a/test/cassop-330/trial-00-0001/events-6.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/events-6.json similarity index 100% rename from test/cassop-330/trial-00-0001/events-6.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/events-6.json diff --git a/test/cassop-330/trial-00-0001/events-7.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/events-7.json similarity index 100% rename from test/cassop-330/trial-00-0001/events-7.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/events-7.json diff --git a/test/cassop-330/trial-00-0001/events-8.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/events-8.json similarity index 100% rename from test/cassop-330/trial-00-0001/events-8.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/events-8.json diff --git a/test/crdbop-919/generation-0-runtime.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/generation-0-runtime.json similarity index 100% rename from test/crdbop-919/generation-0-runtime.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/generation-0-runtime.json diff --git a/test/cassop-330/trial-00-0001/generation-1-runtime.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/generation-1-runtime.json similarity index 100% rename from test/cassop-330/trial-00-0001/generation-1-runtime.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/generation-1-runtime.json diff --git a/test/cassop-330/trial-00-0001/generation-2-runtime.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/generation-2-runtime.json similarity index 100% rename from test/cassop-330/trial-00-0001/generation-2-runtime.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/generation-2-runtime.json diff --git a/test/cassop-330/trial-00-0001/generation-3-runtime.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/generation-3-runtime.json similarity index 100% rename from test/cassop-330/trial-00-0001/generation-3-runtime.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/generation-3-runtime.json diff --git a/test/cassop-330/trial-00-0001/generation-4-runtime.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/generation-4-runtime.json similarity index 100% rename from test/cassop-330/trial-00-0001/generation-4-runtime.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/generation-4-runtime.json diff --git a/test/cassop-330/trial-00-0001/generation-5-runtime.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/generation-5-runtime.json similarity index 100% rename from test/cassop-330/trial-00-0001/generation-5-runtime.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/generation-5-runtime.json diff --git a/test/cassop-330/trial-00-0001/generation-6-runtime.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/generation-6-runtime.json similarity index 100% rename from test/cassop-330/trial-00-0001/generation-6-runtime.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/generation-6-runtime.json diff --git a/test/cassop-330/trial-00-0001/generation-7-runtime.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/generation-7-runtime.json similarity index 100% rename from test/cassop-330/trial-00-0001/generation-7-runtime.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/generation-7-runtime.json diff --git a/test/cassop-330/trial-00-0001/generation-8-runtime.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/generation-8-runtime.json similarity index 100% rename from test/cassop-330/trial-00-0001/generation-8-runtime.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/generation-8-runtime.json diff --git a/test/cassop-330/trial-00-0001/mutated--1.yaml b/test/integration_tests/test_data/cassop-330/trial-00-0001/mutated--1.yaml similarity index 100% rename from test/cassop-330/trial-00-0001/mutated--1.yaml rename to test/integration_tests/test_data/cassop-330/trial-00-0001/mutated--1.yaml diff --git a/test/test_data/cassop-334/mutated-0.yaml b/test/integration_tests/test_data/cassop-330/trial-00-0001/mutated-0.yaml similarity index 100% rename from test/test_data/cassop-334/mutated-0.yaml rename to test/integration_tests/test_data/cassop-330/trial-00-0001/mutated-0.yaml diff --git a/test/cassop-330/trial-00-0001/mutated-1.yaml b/test/integration_tests/test_data/cassop-330/trial-00-0001/mutated-1.yaml similarity index 100% rename from test/cassop-330/trial-00-0001/mutated-1.yaml rename to test/integration_tests/test_data/cassop-330/trial-00-0001/mutated-1.yaml diff --git a/test/cassop-330/trial-00-0001/mutated-2.yaml b/test/integration_tests/test_data/cassop-330/trial-00-0001/mutated-2.yaml similarity index 100% rename from test/cassop-330/trial-00-0001/mutated-2.yaml rename to test/integration_tests/test_data/cassop-330/trial-00-0001/mutated-2.yaml diff --git a/test/cassop-330/trial-00-0001/mutated-3.yaml b/test/integration_tests/test_data/cassop-330/trial-00-0001/mutated-3.yaml similarity index 100% rename from test/cassop-330/trial-00-0001/mutated-3.yaml rename to test/integration_tests/test_data/cassop-330/trial-00-0001/mutated-3.yaml diff --git a/test/cassop-330/trial-00-0001/mutated-4.yaml b/test/integration_tests/test_data/cassop-330/trial-00-0001/mutated-4.yaml similarity index 100% rename from test/cassop-330/trial-00-0001/mutated-4.yaml rename to test/integration_tests/test_data/cassop-330/trial-00-0001/mutated-4.yaml diff --git a/test/cassop-330/trial-00-0001/mutated-5.yaml b/test/integration_tests/test_data/cassop-330/trial-00-0001/mutated-5.yaml similarity index 100% rename from test/cassop-330/trial-00-0001/mutated-5.yaml rename to test/integration_tests/test_data/cassop-330/trial-00-0001/mutated-5.yaml diff --git a/test/cassop-330/trial-00-0001/mutated-6.yaml b/test/integration_tests/test_data/cassop-330/trial-00-0001/mutated-6.yaml similarity index 100% rename from test/cassop-330/trial-00-0001/mutated-6.yaml rename to test/integration_tests/test_data/cassop-330/trial-00-0001/mutated-6.yaml diff --git a/test/cassop-330/trial-00-0001/mutated-7.yaml b/test/integration_tests/test_data/cassop-330/trial-00-0001/mutated-7.yaml similarity index 100% rename from test/cassop-330/trial-00-0001/mutated-7.yaml rename to test/integration_tests/test_data/cassop-330/trial-00-0001/mutated-7.yaml diff --git a/test/cassop-330/trial-00-0001/mutated-8.yaml b/test/integration_tests/test_data/cassop-330/trial-00-0001/mutated-8.yaml similarity index 100% rename from test/cassop-330/trial-00-0001/mutated-8.yaml rename to test/integration_tests/test_data/cassop-330/trial-00-0001/mutated-8.yaml diff --git a/test/cassop-330/trial-00-0001/operator--1.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/operator--1.log similarity index 100% rename from test/cassop-330/trial-00-0001/operator--1.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/operator--1.log diff --git a/test/cassop-330/trial-00-0001/operator-0.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/operator-0.log similarity index 100% rename from test/cassop-330/trial-00-0001/operator-0.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/operator-0.log diff --git a/test/cassop-330/trial-00-0001/operator-1.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/operator-1.log similarity index 100% rename from test/cassop-330/trial-00-0001/operator-1.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/operator-1.log diff --git a/test/cassop-330/trial-00-0001/operator-6.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/operator-2.log similarity index 100% rename from test/cassop-330/trial-00-0001/operator-6.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/operator-2.log diff --git a/test/cassop-330/trial-00-0001/operator-3.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/operator-3.log similarity index 100% rename from test/cassop-330/trial-00-0001/operator-3.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/operator-3.log diff --git a/test/integration_tests/test_data/cassop-330/trial-00-0001/operator-4.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/operator-4.log new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/cassop-330/trial-00-0001/operator-5.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/operator-5.log similarity index 100% rename from test/cassop-330/trial-00-0001/operator-5.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/operator-5.log diff --git a/test/integration_tests/test_data/cassop-330/trial-00-0001/operator-6.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/operator-6.log new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/cassop-330/trial-00-0001/operator-7.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/operator-7.log similarity index 100% rename from test/cassop-330/trial-00-0001/operator-7.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/operator-7.log diff --git a/test/cassop-330/trial-00-0001/operator-8.log b/test/integration_tests/test_data/cassop-330/trial-00-0001/operator-8.log similarity index 100% rename from test/cassop-330/trial-00-0001/operator-8.log rename to test/integration_tests/test_data/cassop-330/trial-00-0001/operator-8.log diff --git a/test/cassop-330/trial-00-0001/post-result-0-baseline.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-0-baseline.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-0-baseline.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-0-baseline.json diff --git a/test/cassop-330/trial-00-0001/post-result-0-canonicalization.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-0-canonicalization.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-0-canonicalization.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-0-canonicalization.json diff --git a/test/cassop-330/trial-00-0001/post-result-0-dependency_analysis.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-0-dependency_analysis.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-0-dependency_analysis.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-0-dependency_analysis.json diff --git a/test/cassop-330/trial-00-0001/post-result-0-taint_analysis.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-0-taint_analysis.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-0-taint_analysis.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-0-taint_analysis.json diff --git a/test/cassop-330/trial-00-0001/post-result-1-baseline.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-1-baseline.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-1-baseline.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-1-baseline.json diff --git a/test/cassop-330/trial-00-0001/post-result-1-canonicalization.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-1-canonicalization.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-1-canonicalization.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-1-canonicalization.json diff --git a/test/cassop-330/trial-00-0001/post-result-1-dependency_analysis.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-1-dependency_analysis.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-1-dependency_analysis.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-1-dependency_analysis.json diff --git a/test/cassop-330/trial-00-0001/post-result-1-taint_analysis.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-1-taint_analysis.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-1-taint_analysis.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-1-taint_analysis.json diff --git a/test/cassop-330/trial-00-0001/post-result-2-baseline.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-2-baseline.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-2-baseline.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-2-baseline.json diff --git a/test/cassop-330/trial-00-0001/post-result-2-canonicalization.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-2-canonicalization.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-2-canonicalization.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-2-canonicalization.json diff --git a/test/cassop-330/trial-00-0001/post-result-2-dependency_analysis.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-2-dependency_analysis.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-2-dependency_analysis.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-2-dependency_analysis.json diff --git a/test/cassop-330/trial-00-0001/post-result-2-taint_analysis.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-2-taint_analysis.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-2-taint_analysis.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-2-taint_analysis.json diff --git a/test/cassop-330/trial-00-0001/post-result-3-baseline.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-3-baseline.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-3-baseline.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-3-baseline.json diff --git a/test/cassop-330/trial-00-0001/post-result-3-canonicalization.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-3-canonicalization.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-3-canonicalization.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-3-canonicalization.json diff --git a/test/cassop-330/trial-00-0001/post-result-3-dependency_analysis.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-3-dependency_analysis.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-3-dependency_analysis.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-3-dependency_analysis.json diff --git a/test/cassop-330/trial-00-0001/post-result-3-taint_analysis.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-3-taint_analysis.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-3-taint_analysis.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-3-taint_analysis.json diff --git a/test/cassop-330/trial-00-0001/post-result-4-baseline.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-4-baseline.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-4-baseline.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-4-baseline.json diff --git a/test/cassop-330/trial-00-0001/post-result-4-canonicalization.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-4-canonicalization.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-4-canonicalization.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-4-canonicalization.json diff --git a/test/cassop-330/trial-00-0001/post-result-4-dependency_analysis.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-4-dependency_analysis.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-4-dependency_analysis.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-4-dependency_analysis.json diff --git a/test/cassop-330/trial-00-0001/post-result-4-taint_analysis.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-4-taint_analysis.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-4-taint_analysis.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-4-taint_analysis.json diff --git a/test/cassop-330/trial-00-0001/post-result-5-baseline.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-5-baseline.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-5-baseline.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-5-baseline.json diff --git a/test/cassop-330/trial-00-0001/post-result-5-canonicalization.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-5-canonicalization.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-5-canonicalization.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-5-canonicalization.json diff --git a/test/cassop-330/trial-00-0001/post-result-5-dependency_analysis.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-5-dependency_analysis.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-5-dependency_analysis.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-5-dependency_analysis.json diff --git a/test/cassop-330/trial-00-0001/post-result-5-taint_analysis.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-5-taint_analysis.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-5-taint_analysis.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-5-taint_analysis.json diff --git a/test/cassop-330/trial-00-0001/post-result-6-baseline.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-6-baseline.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-6-baseline.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-6-baseline.json diff --git a/test/cassop-330/trial-00-0001/post-result-6-canonicalization.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-6-canonicalization.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-6-canonicalization.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-6-canonicalization.json diff --git a/test/cassop-330/trial-00-0001/post-result-6-dependency_analysis.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-6-dependency_analysis.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-6-dependency_analysis.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-6-dependency_analysis.json diff --git a/test/cassop-330/trial-00-0001/post-result-6-taint_analysis.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-6-taint_analysis.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-6-taint_analysis.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-6-taint_analysis.json diff --git a/test/cassop-330/trial-00-0001/post-result-7-baseline.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-7-baseline.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-7-baseline.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-7-baseline.json diff --git a/test/cassop-330/trial-00-0001/post-result-7-canonicalization.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-7-canonicalization.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-7-canonicalization.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-7-canonicalization.json diff --git a/test/cassop-330/trial-00-0001/post-result-7-dependency_analysis.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-7-dependency_analysis.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-7-dependency_analysis.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-7-dependency_analysis.json diff --git a/test/cassop-330/trial-00-0001/post-result-7-taint_analysis.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-7-taint_analysis.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-7-taint_analysis.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-7-taint_analysis.json diff --git a/test/cassop-330/trial-00-0001/post-result-8-baseline.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-8-baseline.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-8-baseline.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-8-baseline.json diff --git a/test/cassop-330/trial-00-0001/post-result-8-canonicalization.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-8-canonicalization.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-8-canonicalization.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-8-canonicalization.json diff --git a/test/cassop-330/trial-00-0001/post-result-8-dependency_analysis.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-8-dependency_analysis.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-8-dependency_analysis.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-8-dependency_analysis.json diff --git a/test/cassop-330/trial-00-0001/post-result-8-taint_analysis.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-8-taint_analysis.json similarity index 100% rename from test/cassop-330/trial-00-0001/post-result-8-taint_analysis.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/post-result-8-taint_analysis.json diff --git a/test/cassop-330/trial-00-0001/result.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/result.json similarity index 100% rename from test/cassop-330/trial-00-0001/result.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/result.json diff --git a/test/cassop-330/trial-00-0001/system-state--01.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/system-state--01.json similarity index 100% rename from test/cassop-330/trial-00-0001/system-state--01.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/system-state--01.json diff --git a/test/cassop-330/trial-00-0001/system-state-000.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/system-state-000.json similarity index 100% rename from test/cassop-330/trial-00-0001/system-state-000.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/system-state-000.json diff --git a/test/cassop-330/trial-00-0001/system-state-001.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/system-state-001.json similarity index 100% rename from test/cassop-330/trial-00-0001/system-state-001.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/system-state-001.json diff --git a/test/cassop-330/trial-00-0001/system-state-002.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/system-state-002.json similarity index 100% rename from test/cassop-330/trial-00-0001/system-state-002.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/system-state-002.json diff --git a/test/cassop-330/trial-00-0001/system-state-003.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/system-state-003.json similarity index 100% rename from test/cassop-330/trial-00-0001/system-state-003.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/system-state-003.json diff --git a/test/cassop-330/trial-00-0001/system-state-004.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/system-state-004.json similarity index 100% rename from test/cassop-330/trial-00-0001/system-state-004.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/system-state-004.json diff --git a/test/cassop-330/trial-00-0001/system-state-005.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/system-state-005.json similarity index 100% rename from test/cassop-330/trial-00-0001/system-state-005.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/system-state-005.json diff --git a/test/cassop-330/trial-00-0001/system-state-006.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/system-state-006.json similarity index 100% rename from test/cassop-330/trial-00-0001/system-state-006.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/system-state-006.json diff --git a/test/cassop-330/trial-00-0001/system-state-007.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/system-state-007.json similarity index 100% rename from test/cassop-330/trial-00-0001/system-state-007.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/system-state-007.json diff --git a/test/cassop-330/trial-00-0001/system-state-008.json b/test/integration_tests/test_data/cassop-330/trial-00-0001/system-state-008.json similarity index 100% rename from test/cassop-330/trial-00-0001/system-state-008.json rename to test/integration_tests/test_data/cassop-330/trial-00-0001/system-state-008.json diff --git a/test/test_data/cassop-471/mutated-0.yaml b/test/integration_tests/test_data/cassop-330/trial-demo/mutated-0.yaml similarity index 100% rename from test/test_data/cassop-471/mutated-0.yaml rename to test/integration_tests/test_data/cassop-330/trial-demo/mutated-0.yaml diff --git a/test/test_data/cassop-330/trial-demo/mutated-1.yaml b/test/integration_tests/test_data/cassop-330/trial-demo/mutated-1.yaml similarity index 100% rename from test/test_data/cassop-330/trial-demo/mutated-1.yaml rename to test/integration_tests/test_data/cassop-330/trial-demo/mutated-1.yaml diff --git a/test/test_data/cassop-330/trial-demo/mutated-2.yaml b/test/integration_tests/test_data/cassop-330/trial-demo/mutated-2.yaml similarity index 100% rename from test/test_data/cassop-330/trial-demo/mutated-2.yaml rename to test/integration_tests/test_data/cassop-330/trial-demo/mutated-2.yaml diff --git a/test/cassop_bugs_config.yaml b/test/integration_tests/test_data/cassop_bugs_config.yaml similarity index 100% rename from test/cassop_bugs_config.yaml rename to test/integration_tests/test_data/cassop_bugs_config.yaml diff --git a/test/cassop_crd.yaml b/test/integration_tests/test_data/cassop_crd.yaml similarity index 100% rename from test/cassop_crd.yaml rename to test/integration_tests/test_data/cassop_crd.yaml diff --git a/test/crdb_bugs_config.yaml b/test/integration_tests/test_data/crdb_bugs_config.yaml similarity index 100% rename from test/crdb_bugs_config.yaml rename to test/integration_tests/test_data/crdb_bugs_config.yaml diff --git a/test/crdb_crd.yaml b/test/integration_tests/test_data/crdb_crd.yaml similarity index 100% rename from test/crdb_crd.yaml rename to test/integration_tests/test_data/crdb_crd.yaml diff --git a/test/crdbop-920/cli-output-0.log b/test/integration_tests/test_data/crdbop-919/cli-output-0.log similarity index 100% rename from test/crdbop-920/cli-output-0.log rename to test/integration_tests/test_data/crdbop-919/cli-output-0.log diff --git a/test/crdbop-920/cli-output-1.log b/test/integration_tests/test_data/crdbop-919/cli-output-1.log similarity index 100% rename from test/crdbop-920/cli-output-1.log rename to test/integration_tests/test_data/crdbop-919/cli-output-1.log diff --git a/test/crdbop-920/cli-output-2.log b/test/integration_tests/test_data/crdbop-919/cli-output-2.log similarity index 100% rename from test/crdbop-920/cli-output-2.log rename to test/integration_tests/test_data/crdbop-919/cli-output-2.log diff --git a/test/crdbop-919/delta-0.log b/test/integration_tests/test_data/crdbop-919/delta-0.log similarity index 100% rename from test/crdbop-919/delta-0.log rename to test/integration_tests/test_data/crdbop-919/delta-0.log diff --git a/test/crdbop-919/delta-1.log b/test/integration_tests/test_data/crdbop-919/delta-1.log similarity index 100% rename from test/crdbop-919/delta-1.log rename to test/integration_tests/test_data/crdbop-919/delta-1.log diff --git a/test/crdbop-919/delta-2.log b/test/integration_tests/test_data/crdbop-919/delta-2.log similarity index 100% rename from test/crdbop-919/delta-2.log rename to test/integration_tests/test_data/crdbop-919/delta-2.log diff --git a/test/crdbop-920/events-0.json b/test/integration_tests/test_data/crdbop-919/events-0.json similarity index 100% rename from test/crdbop-920/events-0.json rename to test/integration_tests/test_data/crdbop-919/events-0.json diff --git a/test/crdbop-920/events-1.json b/test/integration_tests/test_data/crdbop-919/events-1.json similarity index 100% rename from test/crdbop-920/events-1.json rename to test/integration_tests/test_data/crdbop-919/events-1.json diff --git a/test/crdbop-920/events-2.json b/test/integration_tests/test_data/crdbop-919/events-2.json similarity index 100% rename from test/crdbop-920/events-2.json rename to test/integration_tests/test_data/crdbop-919/events-2.json diff --git a/test/crdbop-920/generation-0-runtime.json b/test/integration_tests/test_data/crdbop-919/generation-0-runtime.json similarity index 100% rename from test/crdbop-920/generation-0-runtime.json rename to test/integration_tests/test_data/crdbop-919/generation-0-runtime.json diff --git a/test/crdbop-919/generation-1-runtime.json b/test/integration_tests/test_data/crdbop-919/generation-1-runtime.json similarity index 100% rename from test/crdbop-919/generation-1-runtime.json rename to test/integration_tests/test_data/crdbop-919/generation-1-runtime.json diff --git a/test/crdbop-919/generation-2-runtime.json b/test/integration_tests/test_data/crdbop-919/generation-2-runtime.json similarity index 100% rename from test/crdbop-919/generation-2-runtime.json rename to test/integration_tests/test_data/crdbop-919/generation-2-runtime.json diff --git a/test/test_data/crdbop-920/mutated-0.yaml b/test/integration_tests/test_data/crdbop-919/mutated-0.yaml similarity index 100% rename from test/test_data/crdbop-920/mutated-0.yaml rename to test/integration_tests/test_data/crdbop-919/mutated-0.yaml diff --git a/test/test_data/crdbop-919/mutated-1.yaml b/test/integration_tests/test_data/crdbop-919/mutated-1.yaml similarity index 100% rename from test/test_data/crdbop-919/mutated-1.yaml rename to test/integration_tests/test_data/crdbop-919/mutated-1.yaml diff --git a/test/test_data/crdbop-919/mutated-2.yaml b/test/integration_tests/test_data/crdbop-919/mutated-2.yaml similarity index 100% rename from test/test_data/crdbop-919/mutated-2.yaml rename to test/integration_tests/test_data/crdbop-919/mutated-2.yaml diff --git a/test/crdbop-919/operator-0.log b/test/integration_tests/test_data/crdbop-919/operator-0.log similarity index 100% rename from test/crdbop-919/operator-0.log rename to test/integration_tests/test_data/crdbop-919/operator-0.log diff --git a/test/crdbop-919/operator-1.log b/test/integration_tests/test_data/crdbop-919/operator-1.log similarity index 100% rename from test/crdbop-919/operator-1.log rename to test/integration_tests/test_data/crdbop-919/operator-1.log diff --git a/test/crdbop-919/operator-2.log b/test/integration_tests/test_data/crdbop-919/operator-2.log similarity index 100% rename from test/crdbop-919/operator-2.log rename to test/integration_tests/test_data/crdbop-919/operator-2.log diff --git a/test/crdbop-919/result.json b/test/integration_tests/test_data/crdbop-919/result.json similarity index 100% rename from test/crdbop-919/result.json rename to test/integration_tests/test_data/crdbop-919/result.json diff --git a/test/crdbop-919/system-state-000.json b/test/integration_tests/test_data/crdbop-919/system-state-000.json similarity index 100% rename from test/crdbop-919/system-state-000.json rename to test/integration_tests/test_data/crdbop-919/system-state-000.json diff --git a/test/crdbop-919/system-state-001.json b/test/integration_tests/test_data/crdbop-919/system-state-001.json similarity index 100% rename from test/crdbop-919/system-state-001.json rename to test/integration_tests/test_data/crdbop-919/system-state-001.json diff --git a/test/crdbop-919/system-state-002.json b/test/integration_tests/test_data/crdbop-919/system-state-002.json similarity index 100% rename from test/crdbop-919/system-state-002.json rename to test/integration_tests/test_data/crdbop-919/system-state-002.json diff --git a/test/test_data/crdbop-920/cli-output--1.log b/test/integration_tests/test_data/crdbop-920/cli-output--1.log similarity index 100% rename from test/test_data/crdbop-920/cli-output--1.log rename to test/integration_tests/test_data/crdbop-920/cli-output--1.log diff --git a/test/test_data/crdbop-920/cli-output-0.log b/test/integration_tests/test_data/crdbop-920/cli-output-0.log similarity index 100% rename from test/test_data/crdbop-920/cli-output-0.log rename to test/integration_tests/test_data/crdbop-920/cli-output-0.log diff --git a/test/test_data/crdbop-920/cli-output-1.log b/test/integration_tests/test_data/crdbop-920/cli-output-1.log similarity index 100% rename from test/test_data/crdbop-920/cli-output-1.log rename to test/integration_tests/test_data/crdbop-920/cli-output-1.log diff --git a/test/test_data/crdbop-920/cli-output-2.log b/test/integration_tests/test_data/crdbop-920/cli-output-2.log similarity index 100% rename from test/test_data/crdbop-920/cli-output-2.log rename to test/integration_tests/test_data/crdbop-920/cli-output-2.log diff --git a/test/test_data/crdbop-920/delta-0.log b/test/integration_tests/test_data/crdbop-920/delta-0.log similarity index 100% rename from test/test_data/crdbop-920/delta-0.log rename to test/integration_tests/test_data/crdbop-920/delta-0.log diff --git a/test/test_data/crdbop-920/delta-1.log b/test/integration_tests/test_data/crdbop-920/delta-1.log similarity index 100% rename from test/test_data/crdbop-920/delta-1.log rename to test/integration_tests/test_data/crdbop-920/delta-1.log diff --git a/test/test_data/crdbop-920/delta-2.log b/test/integration_tests/test_data/crdbop-920/delta-2.log similarity index 96% rename from test/test_data/crdbop-920/delta-2.log rename to test/integration_tests/test_data/crdbop-920/delta-2.log index 1f4bdd5522..6485999739 100644 --- a/test/test_data/crdbop-920/delta-2.log +++ b/test/integration_tests/test_data/crdbop-920/delta-2.log @@ -17,6 +17,8 @@ } ---------- SYSTEM DELTA ---------- { + "daemonset_pods": {}, + "daemon_set": {}, "pod": {}, "deployment_pods": {}, "stateful_set": {}, diff --git a/test/rbop-928/events-0.json b/test/integration_tests/test_data/crdbop-920/events-0.json similarity index 100% rename from test/rbop-928/events-0.json rename to test/integration_tests/test_data/crdbop-920/events-0.json diff --git a/test/rbop-928/events-1.json b/test/integration_tests/test_data/crdbop-920/events-1.json similarity index 100% rename from test/rbop-928/events-1.json rename to test/integration_tests/test_data/crdbop-920/events-1.json diff --git a/test/rbop-928/events-2.json b/test/integration_tests/test_data/crdbop-920/events-2.json similarity index 100% rename from test/rbop-928/events-2.json rename to test/integration_tests/test_data/crdbop-920/events-2.json diff --git a/test/rbop-928/generation-0-runtime.json b/test/integration_tests/test_data/crdbop-920/generation-0-runtime.json similarity index 100% rename from test/rbop-928/generation-0-runtime.json rename to test/integration_tests/test_data/crdbop-920/generation-0-runtime.json diff --git a/test/test_data/crdbop-920/generation-1-runtime.json b/test/integration_tests/test_data/crdbop-920/generation-1-runtime.json similarity index 100% rename from test/test_data/crdbop-920/generation-1-runtime.json rename to test/integration_tests/test_data/crdbop-920/generation-1-runtime.json diff --git a/test/test_data/crdbop-920/generation-2-runtime.json b/test/integration_tests/test_data/crdbop-920/generation-2-runtime.json similarity index 100% rename from test/test_data/crdbop-920/generation-2-runtime.json rename to test/integration_tests/test_data/crdbop-920/generation-2-runtime.json diff --git a/test/test_data/crdbop-920/mutated--1.yaml b/test/integration_tests/test_data/crdbop-920/mutated--1.yaml similarity index 100% rename from test/test_data/crdbop-920/mutated--1.yaml rename to test/integration_tests/test_data/crdbop-920/mutated--1.yaml diff --git a/test/test_data/crdbop-927/mutated-0.yaml b/test/integration_tests/test_data/crdbop-920/mutated-0.yaml similarity index 100% rename from test/test_data/crdbop-927/mutated-0.yaml rename to test/integration_tests/test_data/crdbop-920/mutated-0.yaml diff --git a/test/test_data/crdbop-920/mutated-1.yaml b/test/integration_tests/test_data/crdbop-920/mutated-1.yaml similarity index 100% rename from test/test_data/crdbop-920/mutated-1.yaml rename to test/integration_tests/test_data/crdbop-920/mutated-1.yaml diff --git a/test/test_data/crdbop-920/mutated-2.yaml b/test/integration_tests/test_data/crdbop-920/mutated-2.yaml similarity index 100% rename from test/test_data/crdbop-920/mutated-2.yaml rename to test/integration_tests/test_data/crdbop-920/mutated-2.yaml diff --git a/test/test_data/crdbop-920/operator--1.log b/test/integration_tests/test_data/crdbop-920/operator--1.log similarity index 100% rename from test/test_data/crdbop-920/operator--1.log rename to test/integration_tests/test_data/crdbop-920/operator--1.log diff --git a/test/test_data/crdbop-920/operator-0.log b/test/integration_tests/test_data/crdbop-920/operator-0.log similarity index 100% rename from test/test_data/crdbop-920/operator-0.log rename to test/integration_tests/test_data/crdbop-920/operator-0.log diff --git a/test/test_data/crdbop-920/operator-1.log b/test/integration_tests/test_data/crdbop-920/operator-1.log similarity index 100% rename from test/test_data/crdbop-920/operator-1.log rename to test/integration_tests/test_data/crdbop-920/operator-1.log diff --git a/test/test_data/crdbop-920/operator-2.log b/test/integration_tests/test_data/crdbop-920/operator-2.log similarity index 100% rename from test/test_data/crdbop-920/operator-2.log rename to test/integration_tests/test_data/crdbop-920/operator-2.log diff --git a/test/test_data/crdbop-920/result.json b/test/integration_tests/test_data/crdbop-920/result.json similarity index 100% rename from test/test_data/crdbop-920/result.json rename to test/integration_tests/test_data/crdbop-920/result.json diff --git a/test/crdbop-920/system-state--01.json b/test/integration_tests/test_data/crdbop-920/system-state--01.json similarity index 100% rename from test/crdbop-920/system-state--01.json rename to test/integration_tests/test_data/crdbop-920/system-state--01.json diff --git a/test/crdbop-920/system-state-000.json b/test/integration_tests/test_data/crdbop-920/system-state-000.json similarity index 100% rename from test/crdbop-920/system-state-000.json rename to test/integration_tests/test_data/crdbop-920/system-state-000.json diff --git a/test/crdbop-920/system-state-001.json b/test/integration_tests/test_data/crdbop-920/system-state-001.json similarity index 100% rename from test/crdbop-920/system-state-001.json rename to test/integration_tests/test_data/crdbop-920/system-state-001.json diff --git a/test/crdbop-920/system-state-002.json b/test/integration_tests/test_data/crdbop-920/system-state-002.json similarity index 100% rename from test/crdbop-920/system-state-002.json rename to test/integration_tests/test_data/crdbop-920/system-state-002.json diff --git a/test/databases.spotahome.com_redisfailovers.yaml b/test/integration_tests/test_data/databases.spotahome.com_redisfailovers.yaml similarity index 100% rename from test/databases.spotahome.com_redisfailovers.yaml rename to test/integration_tests/test_data/databases.spotahome.com_redisfailovers.yaml diff --git a/test/psmdb.percona.com_perconaservermongodbs.yaml b/test/integration_tests/test_data/psmdb.percona.com_perconaservermongodbs.yaml similarity index 100% rename from test/psmdb.percona.com_perconaservermongodbs.yaml rename to test/integration_tests/test_data/psmdb.percona.com_perconaservermongodbs.yaml diff --git a/test/rabbitmq_crd.yaml b/test/integration_tests/test_data/rabbitmq_crd.yaml similarity index 100% rename from test/rabbitmq_crd.yaml rename to test/integration_tests/test_data/rabbitmq_crd.yaml diff --git a/test/rbop-928/cli-output--1.log b/test/integration_tests/test_data/rbop-928/cli-output--1.log similarity index 100% rename from test/rbop-928/cli-output--1.log rename to test/integration_tests/test_data/rbop-928/cli-output--1.log diff --git a/test/rbop-928/cli-output-0.log b/test/integration_tests/test_data/rbop-928/cli-output-0.log similarity index 100% rename from test/rbop-928/cli-output-0.log rename to test/integration_tests/test_data/rbop-928/cli-output-0.log diff --git a/test/rbop-928/cli-output-1.log b/test/integration_tests/test_data/rbop-928/cli-output-1.log similarity index 100% rename from test/rbop-928/cli-output-1.log rename to test/integration_tests/test_data/rbop-928/cli-output-1.log diff --git a/test/rbop-928/cli-output-2.log b/test/integration_tests/test_data/rbop-928/cli-output-2.log similarity index 100% rename from test/rbop-928/cli-output-2.log rename to test/integration_tests/test_data/rbop-928/cli-output-2.log diff --git a/test/rbop-928/delta-0.log b/test/integration_tests/test_data/rbop-928/delta-0.log similarity index 100% rename from test/rbop-928/delta-0.log rename to test/integration_tests/test_data/rbop-928/delta-0.log diff --git a/test/rbop-928/delta-1.log b/test/integration_tests/test_data/rbop-928/delta-1.log similarity index 100% rename from test/rbop-928/delta-1.log rename to test/integration_tests/test_data/rbop-928/delta-1.log diff --git a/test/rbop-928/delta-2.log b/test/integration_tests/test_data/rbop-928/delta-2.log similarity index 99% rename from test/rbop-928/delta-2.log rename to test/integration_tests/test_data/rbop-928/delta-2.log index 56df9bf56f..122b136c2f 100644 --- a/test/rbop-928/delta-2.log +++ b/test/integration_tests/test_data/rbop-928/delta-2.log @@ -83,6 +83,8 @@ } ---------- SYSTEM DELTA ---------- { + "daemonset_pods": {}, + "daemon_set": {}, "pod": {}, "deployment_pods": {}, "stateful_set": {}, diff --git a/test/test_data/crdbop-920/events-0.json b/test/integration_tests/test_data/rbop-928/events-0.json similarity index 100% rename from test/test_data/crdbop-920/events-0.json rename to test/integration_tests/test_data/rbop-928/events-0.json diff --git a/test/test_data/crdbop-920/events-1.json b/test/integration_tests/test_data/rbop-928/events-1.json similarity index 100% rename from test/test_data/crdbop-920/events-1.json rename to test/integration_tests/test_data/rbop-928/events-1.json diff --git a/test/test_data/crdbop-920/events-2.json b/test/integration_tests/test_data/rbop-928/events-2.json similarity index 100% rename from test/test_data/crdbop-920/events-2.json rename to test/integration_tests/test_data/rbop-928/events-2.json diff --git a/test/test_data/crdbop-920/generation-0-runtime.json b/test/integration_tests/test_data/rbop-928/generation-0-runtime.json similarity index 100% rename from test/test_data/crdbop-920/generation-0-runtime.json rename to test/integration_tests/test_data/rbop-928/generation-0-runtime.json diff --git a/test/rbop-928/generation-1-runtime.json b/test/integration_tests/test_data/rbop-928/generation-1-runtime.json similarity index 100% rename from test/rbop-928/generation-1-runtime.json rename to test/integration_tests/test_data/rbop-928/generation-1-runtime.json diff --git a/test/rbop-928/generation-2-runtime.json b/test/integration_tests/test_data/rbop-928/generation-2-runtime.json similarity index 100% rename from test/rbop-928/generation-2-runtime.json rename to test/integration_tests/test_data/rbop-928/generation-2-runtime.json diff --git a/test/rbop-928/mutated--1.yaml b/test/integration_tests/test_data/rbop-928/mutated--1.yaml similarity index 100% rename from test/rbop-928/mutated--1.yaml rename to test/integration_tests/test_data/rbop-928/mutated--1.yaml diff --git a/test/test_data/rbop-928/mutated-0.yaml b/test/integration_tests/test_data/rbop-928/mutated-0.yaml similarity index 100% rename from test/test_data/rbop-928/mutated-0.yaml rename to test/integration_tests/test_data/rbop-928/mutated-0.yaml diff --git a/test/test_data/rbop-928/mutated-1.yaml b/test/integration_tests/test_data/rbop-928/mutated-1.yaml similarity index 100% rename from test/test_data/rbop-928/mutated-1.yaml rename to test/integration_tests/test_data/rbop-928/mutated-1.yaml diff --git a/test/test_data/rbop-928/mutated-2.yaml b/test/integration_tests/test_data/rbop-928/mutated-2.yaml similarity index 100% rename from test/test_data/rbop-928/mutated-2.yaml rename to test/integration_tests/test_data/rbop-928/mutated-2.yaml diff --git a/test/rbop-928/operator--1.log b/test/integration_tests/test_data/rbop-928/operator--1.log similarity index 100% rename from test/rbop-928/operator--1.log rename to test/integration_tests/test_data/rbop-928/operator--1.log diff --git a/test/rbop-928/operator-0.log b/test/integration_tests/test_data/rbop-928/operator-0.log similarity index 100% rename from test/rbop-928/operator-0.log rename to test/integration_tests/test_data/rbop-928/operator-0.log diff --git a/test/rbop-928/operator-1.log b/test/integration_tests/test_data/rbop-928/operator-1.log similarity index 100% rename from test/rbop-928/operator-1.log rename to test/integration_tests/test_data/rbop-928/operator-1.log diff --git a/test/rbop-928/operator-2.log b/test/integration_tests/test_data/rbop-928/operator-2.log similarity index 100% rename from test/rbop-928/operator-2.log rename to test/integration_tests/test_data/rbop-928/operator-2.log diff --git a/test/rbop-928/result.json b/test/integration_tests/test_data/rbop-928/result.json similarity index 100% rename from test/rbop-928/result.json rename to test/integration_tests/test_data/rbop-928/result.json diff --git a/test/rbop-928/system-state--01.json b/test/integration_tests/test_data/rbop-928/system-state--01.json similarity index 100% rename from test/rbop-928/system-state--01.json rename to test/integration_tests/test_data/rbop-928/system-state--01.json diff --git a/test/rbop-928/system-state-000.json b/test/integration_tests/test_data/rbop-928/system-state-000.json similarity index 100% rename from test/rbop-928/system-state-000.json rename to test/integration_tests/test_data/rbop-928/system-state-000.json diff --git a/test/rbop-928/system-state-001.json b/test/integration_tests/test_data/rbop-928/system-state-001.json similarity index 100% rename from test/rbop-928/system-state-001.json rename to test/integration_tests/test_data/rbop-928/system-state-001.json diff --git a/test/rbop-928/system-state-002.json b/test/integration_tests/test_data/rbop-928/system-state-002.json similarity index 100% rename from test/rbop-928/system-state-002.json rename to test/integration_tests/test_data/rbop-928/system-state-002.json diff --git a/test/rbop_bugs_config.yaml b/test/integration_tests/test_data/rbop_bugs_config.yaml similarity index 100% rename from test/rbop_bugs_config.yaml rename to test/integration_tests/test_data/rbop_bugs_config.yaml diff --git a/test/integration_tests/test_known_schemas.py b/test/integration_tests/test_known_schemas.py new file mode 100644 index 0000000000..7ec3ab0ad2 --- /dev/null +++ b/test/integration_tests/test_known_schemas.py @@ -0,0 +1,156 @@ +import os +import pathlib +import unittest + +import yaml + +from acto.input.get_matched_schemas import field_matched +from acto.input.known_schemas import * +from acto.input.valuegenerator import extract_schema_with_value_generator +from acto.schema import extract_schema + +test_dir = pathlib.Path(__file__).parent.resolve() +test_data_dir = os.path.join(test_dir, 'test_data') + + +class TestSchema(unittest.TestCase): + + def test_statefulset_match(self): + with open(os.path.join(test_data_dir, "rabbitmq_crd.yaml"), "r") as operator_yaml: + crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) + spec_schema = ObjectSchema( + ["root"], + crd["spec"]["versions"][0]["schema"]["openAPIV3Schema"] + ["properties"]["spec"]["properties"]["override"] + ["properties"]["statefulSet"]) + + self.assertTrue(StatefulSetSchema.Match(spec_schema)) + + def test_service_match(self): + with open(os.path.join(test_data_dir, "rabbitmq_crd.yaml"), "r") as operator_yaml: + crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) + spec_schema = ObjectSchema( + ["root"], + crd["spec"]["versions"][0]["schema"]["openAPIV3Schema"] + ["properties"]["spec"]["properties"]["override"] + ["properties"]["service"]) + + self.assertTrue(ServiceSchema.Match(spec_schema)) + + def test_affinity_match(self): + with open(os.path.join(test_data_dir, "rabbitmq_crd.yaml"), "r") as operator_yaml: + crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) + spec_schema = ObjectSchema( + ["root"], + crd["spec"]["versions"][0]["schema"]["openAPIV3Schema"] + ["properties"]["spec"]["properties"]["affinity"]) + + self.assertTrue(AffinitySchema.Match(spec_schema)) + + def test_tolerations_match(self): + with open(os.path.join(test_data_dir, "rabbitmq_crd.yaml"), "r") as operator_yaml: + crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) + spec_schema = ArraySchema( + ["root"], + crd["spec"]["versions"][0]["schema"]["openAPIV3Schema"] + ["properties"]["spec"]["properties"]["tolerations"]) + + self.assertTrue(TolerationsSchema.Match(spec_schema)) + + def test_tolerations_not_match(self): + with open(os.path.join(test_data_dir, "rabbitmq_crd.yaml"), "r") as operator_yaml: + crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) + spec_schema = ObjectSchema( + ["root"], + crd["spec"]["versions"][0]["schema"]["openAPIV3Schema"] + ["properties"]["spec"]["properties"]["tolerations"] + ["items"]) + + self.assertFalse(TolerationsSchema.Match(spec_schema)) + + def test_resources_match(self): + with open(os.path.join(test_data_dir, "rabbitmq_crd.yaml"), "r") as operator_yaml: + crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) + spec_schema = ObjectSchema( + ["root"], + crd["spec"]["versions"][0]["schema"]["openAPIV3Schema"] + ["properties"]["spec"]["properties"]["resources"]) + + self.assertTrue(ResourceRequirementsSchema.Match(spec_schema)) + + def test_container_match(self): + with open(os.path.join(test_data_dir, "rabbitmq_crd.yaml"), "r") as operator_yaml: + crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) + spec_schema = ObjectSchema( + ["root"], + crd["spec"]["versions"][0]["schema"]["openAPIV3Schema"] + ["properties"]["spec"]["properties"]["override"] + ["properties"]["statefulSet"]["properties"]["spec"] + ["properties"]["template"]["properties"]["spec"] + ["properties"]["containers"]["items"]) + + self.assertTrue(ContainerSchema.Match(spec_schema)) + + with open(os.path.join(test_data_dir, "psmdb.percona.com_perconaservermongodbs.yaml"), + "r") as operator_yaml: + crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) + spec_schema = ObjectSchema(["root"], + crd["spec"]["versions"][-1] + ["schema"]["openAPIV3Schema"] + ["properties"]["spec"]["properties"] + ["replsets"]["items"]["properties"] + ["sidecars"]["items"]) + + self.assertTrue(ContainerSchema.Match(spec_schema)) + + def test_resources_match(self): + with open(os.path.join(test_data_dir, "crdb_crd.yaml"), "r") as operator_yaml: + crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) + tls_schema = ObjectSchema( + ["root"], + crd["spec"]["versions"][0]["schema"]["openAPIV3Schema"] + ["properties"]["spec"]["properties"]["ingress"] + ["properties"]["sql"]["properties"]["tls"]["items"]) + + self.assertTrue(IngressTLSSchema.Match(tls_schema)) + + self.assertTrue(field_matched(tls_schema, IngressTLSSchema)) + + def test_pod_spec_match(self): + with open(os.path.join(test_data_dir, "cassop_crd.yaml"), "r") as operator_yaml: + crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) + + spec_schema = extract_schema_with_value_generator( + [], + crd["spec"]["versions"][0]["schema"]["openAPIV3Schema"] + ["properties"]["spec"]["properties"]["podTemplateSpec"] + ["properties"]["spec"]["properties"]["containers"] + ["items"]["properties"]["livenessProbe"]) + # tuples = find_all_matched_schemas_type(spec_schema) + # for tuple in tuples: + # print(f"Found matched schema: {tuple[0].path} -> {tuple[1]}") + # k8s_schema = K8sField(tuple[0].path, tuple[1]) + print(LivenessProbeSchema.Match(spec_schema)) + + def test_find_matches(self): + with open(os.path.join(test_data_dir, "rabbitmq_crd.yaml"), "r") as operator_yaml: + crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) + spec_schema = extract_schema( + [], crd["spec"]["versions"][0]["schema"]["openAPIV3Schema"]) + print(find_all_matched_schemas(spec_schema)) + + def test_pvc_match(self): + with open(os.path.join(test_data_dir, "databases.spotahome.com_redisfailovers.yaml"), "r") as operator_yaml: + crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) + spec_schema = ObjectSchema( + ["root"], + crd["spec"]["versions"][0]["schema"]["openAPIV3Schema"] + ["properties"]["spec"]["properties"]["redis"] + ["properties"]["storage"]["properties"] + ["persistentVolumeClaim"]) + + self.assertTrue(PersistentVolumeClaimSchema.Match(spec_schema)) + + +if __name__ == "__main__": + unittest.main() diff --git a/acto/kubernetes_engine/test_kubernetes_engines.py b/test/integration_tests/test_kubernetes_engines.py similarity index 87% rename from acto/kubernetes_engine/test_kubernetes_engines.py rename to test/integration_tests/test_kubernetes_engines.py index 77d8c7ac83..cd29448660 100644 --- a/acto/kubernetes_engine/test_kubernetes_engines.py +++ b/test/integration_tests/test_kubernetes_engines.py @@ -2,22 +2,25 @@ import pytest +from acto.kubernetes_engine import minikube as minikube from acto.kubernetes_engine.base import KubernetesEngine from acto.kubernetes_engine.kind import Kind -from . import minikube as minikube - # class TestKubernetesEngines(): # kind_cluster = kind.Kind(acto_namespace=0) kind_cluster = Kind(acto_namespace=0) # minikube_cluster = minikube.Minikube(acto_namespace=0) -testcases = [(kind_cluster,3, "v1.27.3")] +testcases = [(kind_cluster, 3, "v1.27.3")] + @pytest.mark.kubernetes_engine @pytest.mark.parametrize('cluster_instance,num_nodes,version', testcases) -def test_kubernetes_engines(cluster_instance: KubernetesEngine, num_nodes, version): +def test_kubernetes_engines( + cluster_instance: KubernetesEngine, + num_nodes, + version): configPath = os.path.join(os.path.expanduser('~'), '.kube/test-config') name = "test-cluster" # num_nodes = 3 @@ -37,11 +40,10 @@ def test_kubernetes_engines(cluster_instance: KubernetesEngine, num_nodes, versi # get_node_list should raise RuntimeError when cluster is not found cluster_instance.get_node_list(name) - # def test_minikube_load_image(): # num_nodes = 3 # name = "hz" # version = "v1.27.4" # cluster = minikube.Minikube(acto_namespace = 0, num_nodes=num_nodes, version=version) # # cluster.create_cluster(name, "/users/hzeng21/.kube/config2") - # cluster.load_images("/users/hzeng21/.kube/sleepy.tar", name=name) \ No newline at end of file + # cluster.load_images("/users/hzeng21/.kube/sleepy.tar", name=name) diff --git a/test/test_rbop_bugs.py b/test/integration_tests/test_rbop_bugs.py similarity index 59% rename from test/test_rbop_bugs.py rename to test/integration_tests/test_rbop_bugs.py index f824535d32..3c8a977046 100644 --- a/test/test_rbop_bugs.py +++ b/test/integration_tests/test_rbop_bugs.py @@ -3,6 +3,7 @@ import os import pathlib import unittest +from test.utils import construct_snapshot import yaml @@ -11,9 +12,8 @@ from acto.input import DeterministicInputModel, InputModel from acto.lib.operator_config import OperatorConfig -from .utils import construct_snapshot - test_dir = pathlib.Path(__file__).parent.resolve() +test_data_dir = os.path.join(test_dir, 'test_data') class TestRabbitMQOpBugs(unittest.TestCase): @@ -22,25 +22,35 @@ def __init__(self, methodName: str = "runTest") -> None: super().__init__(methodName) # prepare and load config - config_path = os.path.join(test_dir.parent, 'data', 'rabbitmq-operator', 'config.json') - with open(config_path, 'r') as config_file: + config_path = os.path.join( + test_dir.parent.parent, + "data", + "rabbitmq-operator", + "config.json") + with open(config_path, "r") as config_file: self.config = OperatorConfig(**json.load(config_file)) # prepare context - context_file = os.path.join(os.path.dirname(self.config.seed_custom_resource), - 'context.json') - with open(context_file, 'r') as context_fin: + context_file = os.path.join( + os.path.dirname( + self.config.seed_custom_resource), + "context.json") + with open(context_file, "r") as context_fin: self.context = json.load(context_fin) - self.context['preload_images'] = set(self.context['preload_images']) + self.context["preload_images"] = set(self.context["preload_images"]) # prepare feature gate - acto_config.load_config(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'rbop_bugs_config.yaml')) + acto_config.load_config( + os.path.join( + test_data_dir, + "rbop_bugs_config.yaml")) # prepare input model - with open(self.config.seed_custom_resource, 'r') as cr_file: + with open(self.config.seed_custom_resource, "r") as cr_file: self.seed = yaml.load(cr_file, Loader=yaml.FullLoader) self.input_model: InputModel = DeterministicInputModel( - self.context['crd']['body'], self.context['analysis_result']['used_fields'], + self.context["crd"]["body"], + self.context["analysis_result"]["used_fields"], self.config.example_dir, 1, 1, None) self.input_model.initialize(self.seed) @@ -52,10 +62,10 @@ def __init__(self, methodName: str = "runTest") -> None: def test_rbop_928(self): # https://github.com/rabbitmq/cluster-operator/issues/928 - trial_dir = os.path.join(test_dir, 'rbop-928') + trial_dir = os.path.join(test_data_dir, "rbop-928") checker = CheckerSet(self.context, - trial_dir, - self.input_model, []) + trial_dir, + self.input_model, []) snapshot_0 = construct_snapshot(trial_dir, 1) snapshot_1 = construct_snapshot(trial_dir, 2) @@ -65,5 +75,5 @@ def test_rbop_928(self): self.assertTrue(runResult.is_error()) -if __name__ == '__main__': - unittest.main() \ No newline at end of file +if __name__ == "__main__": + unittest.main() diff --git a/test/mutated-0.yaml b/test/mutated-0.yaml deleted file mode 100644 index 52bcb28451..0000000000 --- a/test/mutated-0.yaml +++ /dev/null @@ -1,39 +0,0 @@ -apiVersion: pingcap.com/v1alpha1 -kind: TidbCluster -metadata: - name: test-cluster -spec: - configUpdateStrategy: RollingUpdate - enableDynamicConfiguration: true - helper: - image: busybox:1.34.1 - pd: - baseImage: pingcap/pd - config: "[dashboard]\n internal-proxy = true\n" - maxFailoverCount: 0 - mountClusterClientSecret: true - replicas: 3 - requests: - storage: 10Gi - pvReclaimPolicy: Retain - tidb: - baseImage: pingcap/tidb - config: "[performance]\n tcp-keep-alive = true\n" - maxFailoverCount: 0 - plugins: null - replicas: 3 - service: - externalTrafficPolicy: Local - type: NodePort - tikv: - baseImage: pingcap/tikv - config: 'log-level = "info" - - ' - maxFailoverCount: 0 - mountClusterClientSecret: true - replicas: 3 - requests: - storage: 100Gi - timezone: UTC - version: v5.4.0 diff --git a/test/mutated-1.yaml b/test/mutated-1.yaml deleted file mode 100644 index 9a461d7e71..0000000000 --- a/test/mutated-1.yaml +++ /dev/null @@ -1,40 +0,0 @@ -apiVersion: pingcap.com/v1alpha1 -kind: TidbCluster -metadata: - name: test-cluster -spec: - configUpdateStrategy: RollingUpdate - enableDynamicConfiguration: true - helper: - image: busybox:1.34.1 - pd: - baseImage: pingcap/pd - config: "[dashboard]\n internal-proxy = true\n" - maxFailoverCount: 0 - mountClusterClientSecret: true - replicas: 3 - requests: - storage: 10Gi - pvReclaimPolicy: Retain - tidb: - baseImage: pingcap/tidb - config: "[performance]\n tcp-keep-alive = true\n" - maxFailoverCount: 0 - plugins: null - replicas: 3 - service: - externalTrafficPolicy: Local - type: NodePort - slowLogVolumeName: lsgqejeydt - tikv: - baseImage: pingcap/tikv - config: 'log-level = "info" - - ' - maxFailoverCount: 0 - mountClusterClientSecret: true - replicas: 3 - requests: - storage: 100Gi - timezone: UTC - version: v5.4.0 diff --git a/test/operator-0.log b/test/operator-0.log deleted file mode 100644 index 20902c9fa5..0000000000 --- a/test/operator-0.log +++ /dev/null @@ -1,211 +0,0 @@ -I0716 04:04:34.216984 1 version.go:38] Welcome to TiDB Operator. -I0716 04:04:34.216998 1 version.go:39] TiDB Operator Version: version.Info{GitVersion:"v1.3.2", GitCommit:"019c90c96c748ed6e5bdee2c3b7594a6c211f32a", GitTreeState:"clean", BuildDate:"2022-03-17T16:23:53Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"} -I0716 04:04:34.217015 1 main.go:75] FLAG: --V="false" -I0716 04:04:34.217019 1 main.go:75] FLAG: --add_dir_header="false" -I0716 04:04:34.217021 1 main.go:75] FLAG: --alsologtostderr="false" -I0716 04:04:34.217023 1 main.go:75] FLAG: --auto-failover="true" -I0716 04:04:34.217025 1 main.go:75] FLAG: --cluster-permission-node="true" -I0716 04:04:34.217026 1 main.go:75] FLAG: --cluster-permission-pv="true" -I0716 04:04:34.217028 1 main.go:75] FLAG: --cluster-permission-sc="true" -I0716 04:04:34.217030 1 main.go:75] FLAG: --cluster-scoped="true" -I0716 04:04:34.217032 1 main.go:75] FLAG: --dm-master-failover-period="5m0s" -I0716 04:04:34.217034 1 main.go:75] FLAG: --dm-worker-failover-period="5m0s" -I0716 04:04:34.217036 1 main.go:75] FLAG: --features="AdvancedStatefulSet=false,AutoScaling=false,StableScheduling=true" -I0716 04:04:34.217042 1 main.go:75] FLAG: --leader-lease-duration="15s" -I0716 04:04:34.217044 1 main.go:75] FLAG: --leader-renew-deadline="10s" -I0716 04:04:34.217046 1 main.go:75] FLAG: --leader-retry-period="2s" -I0716 04:04:34.217048 1 main.go:75] FLAG: --log_backtrace_at=":0" -I0716 04:04:34.217052 1 main.go:75] FLAG: --log_dir="" -I0716 04:04:34.217054 1 main.go:75] FLAG: --log_file="" -I0716 04:04:34.217056 1 main.go:75] FLAG: --log_file_max_size="1800" -I0716 04:04:34.217058 1 main.go:75] FLAG: --logtostderr="true" -I0716 04:04:34.217060 1 main.go:75] FLAG: --pd-failover-period="5m0s" -I0716 04:04:34.217062 1 main.go:75] FLAG: --resync-duration="30s" -I0716 04:04:34.217064 1 main.go:75] FLAG: --selector="" -I0716 04:04:34.217065 1 main.go:75] FLAG: --skip_headers="false" -I0716 04:04:34.217067 1 main.go:75] FLAG: --skip_log_headers="false" -I0716 04:04:34.217069 1 main.go:75] FLAG: --stderrthreshold="2" -I0716 04:04:34.217072 1 main.go:75] FLAG: --test-mode="false" -I0716 04:04:34.217073 1 main.go:75] FLAG: --tidb-backup-manager-image="pingcap/tidb-backup-manager:v1.3.2" -I0716 04:04:34.217076 1 main.go:75] FLAG: --tidb-discovery-image="pingcap/tidb-operator:v1.3.2" -I0716 04:04:34.217078 1 main.go:75] FLAG: --tidb-failover-period="5m0s" -I0716 04:04:34.217079 1 main.go:75] FLAG: --tiflash-failover-period="5m0s" -I0716 04:04:34.217081 1 main.go:75] FLAG: --tikv-failover-period="5m0s" -I0716 04:04:34.217083 1 main.go:75] FLAG: --v="2" -I0716 04:04:34.217085 1 main.go:75] FLAG: --version="false" -I0716 04:04:34.217087 1 main.go:75] FLAG: --vmodule="" -I0716 04:04:34.217090 1 main.go:75] FLAG: --workers="5" -I0716 04:04:34.217102 1 main.go:92] HELM_RELEASE environment variable not set -I0716 04:04:34.231206 1 leaderelection.go:243] attempting to acquire leader lease acto-namespace/tidb-controller-manager... -I0716 04:04:51.657646 1 leaderelection.go:253] successfully acquired lease acto-namespace/tidb-controller-manager -I0716 04:04:51.661992 1 upgrader.go:109] Upgrader: APIGroup apps.pingcap.com is not registered, skip checking Advanced Statfulset -I0716 04:04:51.662698 1 reflector.go:207] Starting reflector *v1alpha1.BackupSchedule (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.662721 1 reflector.go:207] Starting reflector *v1alpha1.Backup (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.662719 1 reflector.go:207] Starting reflector *v1alpha1.TidbCluster (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.662793 1 reflector.go:207] Starting reflector *v1alpha1.TidbMonitor (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.662847 1 reflector.go:207] Starting reflector *v1alpha1.TidbInitializer (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.662901 1 reflector.go:207] Starting reflector *v1alpha1.Restore (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.662702 1 reflector.go:207] Starting reflector *v1alpha1.DMCluster (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.662723 1 reflector.go:207] Starting reflector *v1alpha1.TidbNGMonitoring (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.663025 1 reflector.go:207] Starting reflector *v1alpha1.TidbClusterAutoScaler (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763027 1 reflector.go:207] Starting reflector *v1.PersistentVolumeClaim (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763107 1 reflector.go:207] Starting reflector *v1.Pod (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763123 1 reflector.go:207] Starting reflector *v1.PersistentVolume (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763176 1 reflector.go:207] Starting reflector *v1.Endpoints (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763231 1 reflector.go:207] Starting reflector *v1.Service (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763522 1 reflector.go:207] Starting reflector *v1.Ingress (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763110 1 reflector.go:207] Starting reflector *v1.StatefulSet (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763576 1 reflector.go:207] Starting reflector *v1.Deployment (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763612 1 reflector.go:207] Starting reflector *v1.Job (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763618 1 reflector.go:207] Starting reflector *v1.Node (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763622 1 reflector.go:207] Starting reflector *v1.Secret (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763691 1 reflector.go:207] Starting reflector *v1.StorageClass (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.963487 1 reflector.go:207] Starting reflector *v1.ConfigMap (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:52.063642 1 main.go:189] cache of informer factories sync successfully -I0716 04:04:52.063727 1 tidb_ng_monitoring_controller.go:78] Starting tidbngmonitor controller -I0716 04:04:52.063756 1 backup_controller.go:78] Starting backup controller -I0716 04:04:52.063830 1 tidb_cluster_controller.go:98] Starting tidbcluster controller -I0716 04:04:52.063837 1 tidb_initializer_controller.go:69] Starting tidbinitializer controller -I0716 04:04:52.063855 1 tidb_monitor_controller.go:65] Starting tidbmonitor controller -I0716 04:04:52.063904 1 backup_schedule_controller.go:70] Starting backup schedule controller -I0716 04:04:52.063767 1 restore_controller.go:71] Starting restore controller -I0716 04:04:52.063981 1 pod_control.go:113] Starting tidbcluster pod controller -I0716 04:04:52.064031 1 dm_cluster_controller.go:91] Starting dmcluster controller -I0716 04:04:52.270021 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"930", FieldPath:""}): type: 'Normal' reason: 'SuccessfulPatch' patch PV pvc-7b6511c6-cffc-4090-997f-c4a0bb16e61d in TidbCluster test-cluster successful -I0716 04:04:52.450540 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"930", FieldPath:""}): type: 'Normal' reason: 'SuccessfulPatch' patch PV pvc-c79c0c4e-cabc-486a-adf0-b2bbdb39bab1 in TidbCluster test-cluster successful -I0716 04:04:52.849653 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"930", FieldPath:""}): type: 'Normal' reason: 'SuccessfulPatch' patch PV pvc-fd9f4138-610b-438b-ac40-fe4c8689b62c in TidbCluster test-cluster successful -E0716 04:04:52.952820 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:04:52.972460 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:04:52.972509 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for PD cluster running, requeuing -E0716 04:04:53.023450 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:04:53.032869 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:04:53.032895 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for PD cluster running, requeuing -E0716 04:04:53.079047 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:04:53.089352 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:04:53.089385 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for PD cluster running, requeuing -E0716 04:04:54.075278 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:04:54.096625 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:04:54.096678 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for PD cluster running, requeuing -E0716 04:04:54.196601 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:04:54.218838 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:04:54.218879 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for PD cluster running, requeuing -E0716 04:05:02.211617 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:02.221301 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1119", FieldPath:""}): type: 'Normal' reason: 'SuccessfulCreate' create Service test-cluster-tikv-peer in test-cluster successful -I0716 04:05:02.228539 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1119", FieldPath:""}): type: 'Normal' reason: 'Successfully Create' create ConfigMap/test-cluster-tikv-3831336 for controller TidbCluster/test-cluster successfully -I0716 04:05:02.244946 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1119", FieldPath:""}): type: 'Normal' reason: 'SuccessfulCreate' create StatefulSet test-cluster-tikv in test-cluster successful -I0716 04:05:02.254225 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:02.254251 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:02.298973 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:02.299471 1 tikv_member_manager.go:787] TiKV of Cluster acto-namespace/test-cluster not bootstrapped yet -I0716 04:05:02.301942 1 tikv_member_manager.go:885] TiKV of Cluster acto-namespace/test-cluster is not bootstrapped yet, no need to set store labels -I0716 04:05:02.307188 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:02.307203 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:02.333847 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:02.334356 1 tikv_member_manager.go:787] TiKV of Cluster acto-namespace/test-cluster not bootstrapped yet -I0716 04:05:02.405777 1 tikv_member_manager.go:885] TiKV of Cluster acto-namespace/test-cluster is not bootstrapped yet, no need to set store labels -I0716 04:05:02.458545 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:02.458598 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:02.806311 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:02.808380 1 tikv_member_manager.go:787] TiKV of Cluster acto-namespace/test-cluster not bootstrapped yet -I0716 04:05:03.207609 1 tikv_member_manager.go:885] TiKV of Cluster acto-namespace/test-cluster is not bootstrapped yet, no need to set store labels -I0716 04:05:03.233934 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:03.233990 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:03.771018 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:03.771532 1 tikv_member_manager.go:787] TiKV of Cluster acto-namespace/test-cluster not bootstrapped yet -I0716 04:05:04.006367 1 tikv_member_manager.go:885] TiKV of Cluster acto-namespace/test-cluster is not bootstrapped yet, no need to set store labels -I0716 04:05:04.030225 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:04.030277 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:04.405988 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:04.408042 1 tikv_member_manager.go:787] TiKV of Cluster acto-namespace/test-cluster not bootstrapped yet -I0716 04:05:04.802218 1 tikv_member_manager.go:885] TiKV of Cluster acto-namespace/test-cluster is not bootstrapped yet, no need to set store labels -I0716 04:05:04.807873 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:04.807888 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:05.206445 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:05.208607 1 tikv_member_manager.go:787] TiKV of Cluster acto-namespace/test-cluster not bootstrapped yet -I0716 04:05:05.605939 1 tikv_member_manager.go:885] TiKV of Cluster acto-namespace/test-cluster is not bootstrapped yet, no need to set store labels -I0716 04:05:05.659318 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:05.659372 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:06.005955 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:06.008092 1 tikv_member_manager.go:787] TiKV of Cluster acto-namespace/test-cluster not bootstrapped yet -I0716 04:05:06.405890 1 tikv_member_manager.go:885] TiKV of Cluster acto-namespace/test-cluster is not bootstrapped yet, no need to set store labels -I0716 04:05:06.458962 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:06.459020 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -I0716 04:05:06.468087 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1247", FieldPath:""}): type: 'Normal' reason: 'SuccessfulPatch' patch PV pvc-5ae98b49-58e3-4013-892e-62c1fb952cfe in TidbCluster test-cluster successful -E0716 04:05:06.802419 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:06.803072 1 tikv_member_manager.go:787] TiKV of Cluster acto-namespace/test-cluster not bootstrapped yet -I0716 04:05:07.202570 1 tikv_member_manager.go:885] TiKV of Cluster acto-namespace/test-cluster is not bootstrapped yet, no need to set store labels -I0716 04:05:07.225028 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:07.225044 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -I0716 04:05:07.227334 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1282", FieldPath:""}): type: 'Normal' reason: 'SuccessfulPatch' patch PV pvc-ff33fd13-d1db-4a79-a1ea-addae5689248 in TidbCluster test-cluster successful -E0716 04:05:07.602304 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:08.009772 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:08.009788 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -I0716 04:05:08.012058 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1282", FieldPath:""}): type: 'Normal' reason: 'SuccessfulPatch' patch PV pvc-470c768a-e5fa-4cda-a98c-7254bba5a7aa in TidbCluster test-cluster successful -E0716 04:05:08.402504 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:08.823643 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:08.823658 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:09.202480 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:09.624270 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:09.624286 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:10.002285 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:10.459814 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:10.459865 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:10.805959 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:11.258179 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:11.258204 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:11.606694 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:12.032700 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:12.032728 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -I0716 04:05:12.868919 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:12.868974 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -I0716 04:05:13.651775 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:13.651847 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -I0716 04:05:14.411703 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -I0716 04:05:15.213414 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -I0716 04:05:21.848400 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1362", FieldPath:""}): type: 'Normal' reason: 'SuccessfulCreate' create Service test-cluster-tidb-peer in test-cluster successful -I0716 04:05:21.863752 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1362", FieldPath:""}): type: 'Normal' reason: 'SuccessfulCreate' create Service test-cluster-tidb in test-cluster successful -I0716 04:05:21.870293 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1362", FieldPath:""}): type: 'Normal' reason: 'Successfully Create' create ConfigMap/test-cluster-tidb-6662316 for controller TidbCluster/test-cluster successfully -I0716 04:05:21.876553 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1362", FieldPath:""}): type: 'Normal' reason: 'SuccessfulCreate' create StatefulSet test-cluster-tidb in test-cluster successful -I0716 04:05:22.041540 1 pv_control.go:192] PV: [pvc-470c768a-e5fa-4cda-a98c-7254bba5a7aa] updated successfully, : acto-namespace/test-cluster -I0716 04:05:22.635935 1 pv_control.go:192] PV: [pvc-fd9f4138-610b-438b-ac40-fe4c8689b62c] updated successfully, : acto-namespace/test-cluster -I0716 04:05:23.241401 1 pv_control.go:192] PV: [pvc-7b6511c6-cffc-4090-997f-c4a0bb16e61d] updated successfully, : acto-namespace/test-cluster -I0716 04:05:23.842071 1 pv_control.go:192] PV: [pvc-c79c0c4e-cabc-486a-adf0-b2bbdb39bab1] updated successfully, : acto-namespace/test-cluster -I0716 04:05:24.841078 1 pv_control.go:192] PV: [pvc-ff33fd13-d1db-4a79-a1ea-addae5689248] updated successfully, : acto-namespace/test-cluster -I0716 04:05:25.443551 1 pv_control.go:192] PV: [pvc-5ae98b49-58e3-4013-892e-62c1fb952cfe] updated successfully, : acto-namespace/test-cluster -I0716 04:05:25.682387 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:25.846792 1 equality.go:87] Service spec diff for acto-namespace/test-cluster-tidb: v1.ServiceSpec{ - Ports: []v1.ServicePort{ - { - ... // 3 identical fields - Port: 4000, - TargetPort: {IntVal: 4000}, -- NodePort: 0, -+ NodePort: 30071, - }, - { - ... // 3 identical fields - Port: 10080, - TargetPort: {IntVal: 10080}, -- NodePort: 0, -+ NodePort: 32223, - }, - }, - Selector: {"app.kubernetes.io/component": "tidb", "app.kubernetes.io/instance": "test-cluster", "app.kubernetes.io/managed-by": "tidb-operator", "app.kubernetes.io/name": "tidb-cluster"}, - ClusterIP: "", - ... // 12 identical fields - } -I0716 04:05:25.846862 1 tidb_member_manager.go:442] Sync TiDB service acto-namespace/test-cluster-tidb, spec equal: false, annotations equal: true, label equal: true -I0716 04:05:25.858158 1 service_control.go:88] update Service: [acto-namespace/test-cluster-tidb] successfully, kind: , name: test-cluster -I0716 04:05:25.883255 1 tidb_failover.go:53] tidb failover is disabled for acto-namespace/test-cluster, skipped -I0716 04:05:26.499663 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:26.707075 1 tidb_failover.go:53] tidb failover is disabled for acto-namespace/test-cluster, skipped -I0716 04:05:26.742073 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:27.416765 1 tidb_failover.go:53] tidb failover is disabled for acto-namespace/test-cluster, skipped -I0716 04:05:27.431219 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:28.620714 1 tidb_failover.go:53] tidb failover is disabled for acto-namespace/test-cluster, skipped -I0716 04:05:28.648643 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:29.851489 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:34.437386 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:42.012353 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:42.461912 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully - diff --git a/test/operator-1.log b/test/operator-1.log deleted file mode 100644 index 5872db3221..0000000000 --- a/test/operator-1.log +++ /dev/null @@ -1,253 +0,0 @@ -I0716 04:04:34.216984 1 version.go:38] Welcome to TiDB Operator. -I0716 04:04:34.216998 1 version.go:39] TiDB Operator Version: version.Info{GitVersion:"v1.3.2", GitCommit:"019c90c96c748ed6e5bdee2c3b7594a6c211f32a", GitTreeState:"clean", BuildDate:"2022-03-17T16:23:53Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"} -I0716 04:04:34.217015 1 main.go:75] FLAG: --V="false" -I0716 04:04:34.217019 1 main.go:75] FLAG: --add_dir_header="false" -I0716 04:04:34.217021 1 main.go:75] FLAG: --alsologtostderr="false" -I0716 04:04:34.217023 1 main.go:75] FLAG: --auto-failover="true" -I0716 04:04:34.217025 1 main.go:75] FLAG: --cluster-permission-node="true" -I0716 04:04:34.217026 1 main.go:75] FLAG: --cluster-permission-pv="true" -I0716 04:04:34.217028 1 main.go:75] FLAG: --cluster-permission-sc="true" -I0716 04:04:34.217030 1 main.go:75] FLAG: --cluster-scoped="true" -I0716 04:04:34.217032 1 main.go:75] FLAG: --dm-master-failover-period="5m0s" -I0716 04:04:34.217034 1 main.go:75] FLAG: --dm-worker-failover-period="5m0s" -I0716 04:04:34.217036 1 main.go:75] FLAG: --features="AdvancedStatefulSet=false,AutoScaling=false,StableScheduling=true" -I0716 04:04:34.217042 1 main.go:75] FLAG: --leader-lease-duration="15s" -I0716 04:04:34.217044 1 main.go:75] FLAG: --leader-renew-deadline="10s" -I0716 04:04:34.217046 1 main.go:75] FLAG: --leader-retry-period="2s" -I0716 04:04:34.217048 1 main.go:75] FLAG: --log_backtrace_at=":0" -I0716 04:04:34.217052 1 main.go:75] FLAG: --log_dir="" -I0716 04:04:34.217054 1 main.go:75] FLAG: --log_file="" -I0716 04:04:34.217056 1 main.go:75] FLAG: --log_file_max_size="1800" -I0716 04:04:34.217058 1 main.go:75] FLAG: --logtostderr="true" -I0716 04:04:34.217060 1 main.go:75] FLAG: --pd-failover-period="5m0s" -I0716 04:04:34.217062 1 main.go:75] FLAG: --resync-duration="30s" -I0716 04:04:34.217064 1 main.go:75] FLAG: --selector="" -I0716 04:04:34.217065 1 main.go:75] FLAG: --skip_headers="false" -I0716 04:04:34.217067 1 main.go:75] FLAG: --skip_log_headers="false" -I0716 04:04:34.217069 1 main.go:75] FLAG: --stderrthreshold="2" -I0716 04:04:34.217072 1 main.go:75] FLAG: --test-mode="false" -I0716 04:04:34.217073 1 main.go:75] FLAG: --tidb-backup-manager-image="pingcap/tidb-backup-manager:v1.3.2" -I0716 04:04:34.217076 1 main.go:75] FLAG: --tidb-discovery-image="pingcap/tidb-operator:v1.3.2" -I0716 04:04:34.217078 1 main.go:75] FLAG: --tidb-failover-period="5m0s" -I0716 04:04:34.217079 1 main.go:75] FLAG: --tiflash-failover-period="5m0s" -I0716 04:04:34.217081 1 main.go:75] FLAG: --tikv-failover-period="5m0s" -I0716 04:04:34.217083 1 main.go:75] FLAG: --v="2" -I0716 04:04:34.217085 1 main.go:75] FLAG: --version="false" -I0716 04:04:34.217087 1 main.go:75] FLAG: --vmodule="" -I0716 04:04:34.217090 1 main.go:75] FLAG: --workers="5" -I0716 04:04:34.217102 1 main.go:92] HELM_RELEASE environment variable not set -I0716 04:04:34.231206 1 leaderelection.go:243] attempting to acquire leader lease acto-namespace/tidb-controller-manager... -I0716 04:04:51.657646 1 leaderelection.go:253] successfully acquired lease acto-namespace/tidb-controller-manager -I0716 04:04:51.661992 1 upgrader.go:109] Upgrader: APIGroup apps.pingcap.com is not registered, skip checking Advanced Statfulset -I0716 04:04:51.662698 1 reflector.go:207] Starting reflector *v1alpha1.BackupSchedule (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.662721 1 reflector.go:207] Starting reflector *v1alpha1.Backup (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.662719 1 reflector.go:207] Starting reflector *v1alpha1.TidbCluster (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.662793 1 reflector.go:207] Starting reflector *v1alpha1.TidbMonitor (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.662847 1 reflector.go:207] Starting reflector *v1alpha1.TidbInitializer (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.662901 1 reflector.go:207] Starting reflector *v1alpha1.Restore (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.662702 1 reflector.go:207] Starting reflector *v1alpha1.DMCluster (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.662723 1 reflector.go:207] Starting reflector *v1alpha1.TidbNGMonitoring (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.663025 1 reflector.go:207] Starting reflector *v1alpha1.TidbClusterAutoScaler (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763027 1 reflector.go:207] Starting reflector *v1.PersistentVolumeClaim (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763107 1 reflector.go:207] Starting reflector *v1.Pod (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763123 1 reflector.go:207] Starting reflector *v1.PersistentVolume (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763176 1 reflector.go:207] Starting reflector *v1.Endpoints (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763231 1 reflector.go:207] Starting reflector *v1.Service (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763522 1 reflector.go:207] Starting reflector *v1.Ingress (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763110 1 reflector.go:207] Starting reflector *v1.StatefulSet (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763576 1 reflector.go:207] Starting reflector *v1.Deployment (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763612 1 reflector.go:207] Starting reflector *v1.Job (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763618 1 reflector.go:207] Starting reflector *v1.Node (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763622 1 reflector.go:207] Starting reflector *v1.Secret (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.763691 1 reflector.go:207] Starting reflector *v1.StorageClass (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:51.963487 1 reflector.go:207] Starting reflector *v1.ConfigMap (30s) from k8s.io/client-go@v0.19.16/tools/cache/reflector.go:156 -I0716 04:04:52.063642 1 main.go:189] cache of informer factories sync successfully -I0716 04:04:52.063727 1 tidb_ng_monitoring_controller.go:78] Starting tidbngmonitor controller -I0716 04:04:52.063756 1 backup_controller.go:78] Starting backup controller -I0716 04:04:52.063830 1 tidb_cluster_controller.go:98] Starting tidbcluster controller -I0716 04:04:52.063837 1 tidb_initializer_controller.go:69] Starting tidbinitializer controller -I0716 04:04:52.063855 1 tidb_monitor_controller.go:65] Starting tidbmonitor controller -I0716 04:04:52.063904 1 backup_schedule_controller.go:70] Starting backup schedule controller -I0716 04:04:52.063767 1 restore_controller.go:71] Starting restore controller -I0716 04:04:52.063981 1 pod_control.go:113] Starting tidbcluster pod controller -I0716 04:04:52.064031 1 dm_cluster_controller.go:91] Starting dmcluster controller -I0716 04:04:52.270021 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"930", FieldPath:""}): type: 'Normal' reason: 'SuccessfulPatch' patch PV pvc-7b6511c6-cffc-4090-997f-c4a0bb16e61d in TidbCluster test-cluster successful -I0716 04:04:52.450540 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"930", FieldPath:""}): type: 'Normal' reason: 'SuccessfulPatch' patch PV pvc-c79c0c4e-cabc-486a-adf0-b2bbdb39bab1 in TidbCluster test-cluster successful -I0716 04:04:52.849653 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"930", FieldPath:""}): type: 'Normal' reason: 'SuccessfulPatch' patch PV pvc-fd9f4138-610b-438b-ac40-fe4c8689b62c in TidbCluster test-cluster successful -E0716 04:04:52.952820 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:04:52.972460 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:04:52.972509 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for PD cluster running, requeuing -E0716 04:04:53.023450 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:04:53.032869 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:04:53.032895 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for PD cluster running, requeuing -E0716 04:04:53.079047 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:04:53.089352 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:04:53.089385 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for PD cluster running, requeuing -E0716 04:04:54.075278 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:04:54.096625 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:04:54.096678 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for PD cluster running, requeuing -E0716 04:04:54.196601 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:04:54.218838 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:04:54.218879 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for PD cluster running, requeuing -E0716 04:05:02.211617 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:02.221301 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1119", FieldPath:""}): type: 'Normal' reason: 'SuccessfulCreate' create Service test-cluster-tikv-peer in test-cluster successful -I0716 04:05:02.228539 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1119", FieldPath:""}): type: 'Normal' reason: 'Successfully Create' create ConfigMap/test-cluster-tikv-3831336 for controller TidbCluster/test-cluster successfully -I0716 04:05:02.244946 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1119", FieldPath:""}): type: 'Normal' reason: 'SuccessfulCreate' create StatefulSet test-cluster-tikv in test-cluster successful -I0716 04:05:02.254225 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:02.254251 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:02.298973 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:02.299471 1 tikv_member_manager.go:787] TiKV of Cluster acto-namespace/test-cluster not bootstrapped yet -I0716 04:05:02.301942 1 tikv_member_manager.go:885] TiKV of Cluster acto-namespace/test-cluster is not bootstrapped yet, no need to set store labels -I0716 04:05:02.307188 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:02.307203 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:02.333847 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:02.334356 1 tikv_member_manager.go:787] TiKV of Cluster acto-namespace/test-cluster not bootstrapped yet -I0716 04:05:02.405777 1 tikv_member_manager.go:885] TiKV of Cluster acto-namespace/test-cluster is not bootstrapped yet, no need to set store labels -I0716 04:05:02.458545 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:02.458598 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:02.806311 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:02.808380 1 tikv_member_manager.go:787] TiKV of Cluster acto-namespace/test-cluster not bootstrapped yet -I0716 04:05:03.207609 1 tikv_member_manager.go:885] TiKV of Cluster acto-namespace/test-cluster is not bootstrapped yet, no need to set store labels -I0716 04:05:03.233934 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:03.233990 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:03.771018 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:03.771532 1 tikv_member_manager.go:787] TiKV of Cluster acto-namespace/test-cluster not bootstrapped yet -I0716 04:05:04.006367 1 tikv_member_manager.go:885] TiKV of Cluster acto-namespace/test-cluster is not bootstrapped yet, no need to set store labels -I0716 04:05:04.030225 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:04.030277 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:04.405988 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:04.408042 1 tikv_member_manager.go:787] TiKV of Cluster acto-namespace/test-cluster not bootstrapped yet -I0716 04:05:04.802218 1 tikv_member_manager.go:885] TiKV of Cluster acto-namespace/test-cluster is not bootstrapped yet, no need to set store labels -I0716 04:05:04.807873 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:04.807888 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:05.206445 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:05.208607 1 tikv_member_manager.go:787] TiKV of Cluster acto-namespace/test-cluster not bootstrapped yet -I0716 04:05:05.605939 1 tikv_member_manager.go:885] TiKV of Cluster acto-namespace/test-cluster is not bootstrapped yet, no need to set store labels -I0716 04:05:05.659318 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:05.659372 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:06.005955 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:06.008092 1 tikv_member_manager.go:787] TiKV of Cluster acto-namespace/test-cluster not bootstrapped yet -I0716 04:05:06.405890 1 tikv_member_manager.go:885] TiKV of Cluster acto-namespace/test-cluster is not bootstrapped yet, no need to set store labels -I0716 04:05:06.458962 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:06.459020 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -I0716 04:05:06.468087 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1247", FieldPath:""}): type: 'Normal' reason: 'SuccessfulPatch' patch PV pvc-5ae98b49-58e3-4013-892e-62c1fb952cfe in TidbCluster test-cluster successful -E0716 04:05:06.802419 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:06.803072 1 tikv_member_manager.go:787] TiKV of Cluster acto-namespace/test-cluster not bootstrapped yet -I0716 04:05:07.202570 1 tikv_member_manager.go:885] TiKV of Cluster acto-namespace/test-cluster is not bootstrapped yet, no need to set store labels -I0716 04:05:07.225028 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:07.225044 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -I0716 04:05:07.227334 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1282", FieldPath:""}): type: 'Normal' reason: 'SuccessfulPatch' patch PV pvc-ff33fd13-d1db-4a79-a1ea-addae5689248 in TidbCluster test-cluster successful -E0716 04:05:07.602304 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:08.009772 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:08.009788 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -I0716 04:05:08.012058 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1282", FieldPath:""}): type: 'Normal' reason: 'SuccessfulPatch' patch PV pvc-470c768a-e5fa-4cda-a98c-7254bba5a7aa in TidbCluster test-cluster successful -E0716 04:05:08.402504 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:08.823643 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:08.823658 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:09.202480 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:09.624270 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:09.624286 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:10.002285 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:10.459814 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:10.459865 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:10.805959 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:11.258179 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:11.258204 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -E0716 04:05:11.606694 1 pd_failover.go:70] PD failover replicas (0) reaches the limit (0), skip failover -I0716 04:05:12.032700 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:12.032728 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -I0716 04:05:12.868919 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:12.868974 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -I0716 04:05:13.651775 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:13.651847 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -I0716 04:05:14.411703 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -I0716 04:05:15.213414 1 tidb_cluster_controller.go:124] TidbCluster: acto-namespace/test-cluster, still need sync: TidbCluster: [acto-namespace/test-cluster], waiting for TiKV cluster running, requeuing -I0716 04:05:21.848400 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1362", FieldPath:""}): type: 'Normal' reason: 'SuccessfulCreate' create Service test-cluster-tidb-peer in test-cluster successful -I0716 04:05:21.863752 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1362", FieldPath:""}): type: 'Normal' reason: 'SuccessfulCreate' create Service test-cluster-tidb in test-cluster successful -I0716 04:05:21.870293 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1362", FieldPath:""}): type: 'Normal' reason: 'Successfully Create' create ConfigMap/test-cluster-tidb-6662316 for controller TidbCluster/test-cluster successfully -I0716 04:05:21.876553 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1362", FieldPath:""}): type: 'Normal' reason: 'SuccessfulCreate' create StatefulSet test-cluster-tidb in test-cluster successful -I0716 04:05:22.041540 1 pv_control.go:192] PV: [pvc-470c768a-e5fa-4cda-a98c-7254bba5a7aa] updated successfully, : acto-namespace/test-cluster -I0716 04:05:22.635935 1 pv_control.go:192] PV: [pvc-fd9f4138-610b-438b-ac40-fe4c8689b62c] updated successfully, : acto-namespace/test-cluster -I0716 04:05:23.241401 1 pv_control.go:192] PV: [pvc-7b6511c6-cffc-4090-997f-c4a0bb16e61d] updated successfully, : acto-namespace/test-cluster -I0716 04:05:23.842071 1 pv_control.go:192] PV: [pvc-c79c0c4e-cabc-486a-adf0-b2bbdb39bab1] updated successfully, : acto-namespace/test-cluster -I0716 04:05:24.841078 1 pv_control.go:192] PV: [pvc-ff33fd13-d1db-4a79-a1ea-addae5689248] updated successfully, : acto-namespace/test-cluster -I0716 04:05:25.443551 1 pv_control.go:192] PV: [pvc-5ae98b49-58e3-4013-892e-62c1fb952cfe] updated successfully, : acto-namespace/test-cluster -I0716 04:05:25.682387 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:25.846792 1 equality.go:87] Service spec diff for acto-namespace/test-cluster-tidb: v1.ServiceSpec{ - Ports: []v1.ServicePort{ - { - ... // 3 identical fields - Port: 4000, - TargetPort: {IntVal: 4000}, -- NodePort: 0, -+ NodePort: 30071, - }, - { - ... // 3 identical fields - Port: 10080, - TargetPort: {IntVal: 10080}, -- NodePort: 0, -+ NodePort: 32223, - }, - }, - Selector: {"app.kubernetes.io/component": "tidb", "app.kubernetes.io/instance": "test-cluster", "app.kubernetes.io/managed-by": "tidb-operator", "app.kubernetes.io/name": "tidb-cluster"}, - ClusterIP: "", - ... // 12 identical fields - } -I0716 04:05:25.846862 1 tidb_member_manager.go:442] Sync TiDB service acto-namespace/test-cluster-tidb, spec equal: false, annotations equal: true, label equal: true -I0716 04:05:25.858158 1 service_control.go:88] update Service: [acto-namespace/test-cluster-tidb] successfully, kind: , name: test-cluster -I0716 04:05:25.883255 1 tidb_failover.go:53] tidb failover is disabled for acto-namespace/test-cluster, skipped -I0716 04:05:26.499663 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:26.707075 1 tidb_failover.go:53] tidb failover is disabled for acto-namespace/test-cluster, skipped -I0716 04:05:26.742073 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:27.416765 1 tidb_failover.go:53] tidb failover is disabled for acto-namespace/test-cluster, skipped -I0716 04:05:27.431219 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:28.620714 1 tidb_failover.go:53] tidb failover is disabled for acto-namespace/test-cluster, skipped -I0716 04:05:28.648643 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:29.851489 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:34.437386 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:42.012353 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -I0716 04:05:42.461912 1 tidbcluster_control.go:69] TidbCluster: [acto-namespace/test-cluster] updated successfully -E0716 04:06:24.911615 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:06:24.911750 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:06:51.701465 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:06:51.701577 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:07:21.701676 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:07:21.701785 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:07:51.701887 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:07:51.702167 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:08:21.702092 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:08:21.702262 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:08:51.702369 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:08:51.702513 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:09:21.702671 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:09:21.702823 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:09:51.702820 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:09:51.702934 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:10:21.702854 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:10:21.702938 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:10:51.703214 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:10:51.703390 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:11:21.703555 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:11:21.703841 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:11:51.703739 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:11:51.703914 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:12:21.703939 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:12:21.704120 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:12:51.704117 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:12:51.704339 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:13:21.704321 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:13:21.704531 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:13:51.704697 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:13:51.704871 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:14:21.704870 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:14:21.705046 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:14:51.705086 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:14:51.705281 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:15:21.705241 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:15:21.705346 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:15:51.705469 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:15:51.705809 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -E0716 04:16:21.705721 1 tidb_cluster_control.go:129] tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts -I0716 04:16:21.705834 1 event.go:282] Event(v1.ObjectReference{Kind:"TidbCluster", Namespace:"acto-namespace", Name:"test-cluster", UID:"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81", APIVersion:"pingcap.com/v1alpha1", ResourceVersion:"1720", FieldPath:""}): type: 'Warning' reason: 'FailedValidation' spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts - diff --git a/test/system-state-000.json b/test/system-state-000.json deleted file mode 100644 index 6dba574199..0000000000 --- a/test/system-state-000.json +++ /dev/null @@ -1,14279 +0,0 @@ -{ - "pod": { - "test-cluster-discovery-779bb58fc7-k5dnp": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-discovery-779bb58fc7-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "discovery", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "pod-template-hash": "779bb58fc7", - "tidb.pingcap.com/cluster-id": "7120816513896392341" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:pod-template-hash": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"5f8869fb-0d78-4630-92ec-cb3b05552a1c\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"discovery\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"MY_POD_NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"TC_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":10261,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":10262,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {} - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:serviceAccount": {}, - "f:serviceAccountName": {}, - "f:terminationGracePeriodSeconds": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:containerStatuses": {}, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.1.3\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:04:35+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:25+00:00" - } - ], - "name": "test-cluster-discovery-779bb58fc7-k5dnp", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "ReplicaSet", - "name": "test-cluster-discovery-779bb58fc7", - "uid": "5f8869fb-0d78-4630-92ec-cb3b05552a1c" - } - ], - "resource_version": "1491", - "self_link": null, - "uid": "1fe51012-1b59-4ba3-835a-76cf5e7708cc" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/usr/local/bin/tidb-discovery" - ], - "env": [ - { - "name": "MY_POD_NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - }, - { - "name": "TC_NAME", - "value": "test-cluster", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tidb-operator:v1.3.2", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "discovery", - "ports": [ - { - "container_port": 10261, - "host_ip": null, - "host_port": null, - "name": "discovery", - "protocol": "TCP" - }, - { - "container_port": 10262, - "host_ip": null, - "host_port": null, - "name": "proxy", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-mtzfq", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": null, - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker2", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "test-cluster-discovery", - "service_account_name": "test-cluster-discovery", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": null, - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-mtzfq", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:34+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:35+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:35+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:34+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://34c594b9ab575c44e26cdffc0489317f869d0f35371fe3066b5a49652d8e3dcc", - "image": "docker.io/pingcap/tidb-operator:v1.3.2", - "image_id": "sha256:a1a60c89f7458d2890ab3e988afe9b27dda812dd2af9269a68261988c9eb7022", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "discovery", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:04:35+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.6", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.1.3", - "pod_i_ps": [ - { - "ip": "10.244.1.3" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:04:34+00:00" - } - }, - "test-cluster-pd-0": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "2379", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-pd-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "controller-revision-hash": "test-cluster-pd-859db88ddf", - "statefulset.kubernetes.io/pod-name": "test-cluster-pd-0", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/member-id": "5292350542734693704" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:controller-revision-hash": {}, - "f:statefulset.kubernetes.io/pod-name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a6ecbf04-44e0-4821-a24b-8482e3454218\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"pd\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"PEER_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"SET_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":2379,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":2380,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/pd\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/lib/pd\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:hostname": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:subdomain": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"pd\"}": { - ".": {}, - "f:name": {}, - "f:persistentVolumeClaim": { - ".": {}, - "f:claimName": {} - } - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:containerStatuses": {}, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.3.4\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:04:41+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/member-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:23+00:00" - } - ], - "name": "test-cluster-pd-0", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "StatefulSet", - "name": "test-cluster-pd", - "uid": "a6ecbf04-44e0-4821-a24b-8482e3454218" - } - ], - "resource_version": "1465", - "self_link": null, - "uid": "c199a583-b38b-407c-a88f-6a3c2e26f40e" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/pd_start_script.sh" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "PEER_SERVICE_NAME", - "value": "test-cluster-pd-peer", - "value_from": null - }, - { - "name": "SERVICE_NAME", - "value": "test-cluster-pd", - "value_from": null - }, - { - "name": "SET_NAME", - "value": "test-cluster-pd", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/pd:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "pd", - "ports": [ - { - "container_port": 2380, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - }, - { - "container_port": 2379, - "host_ip": null, - "host_port": null, - "name": "client", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/pd", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/lib/pd", - "mount_propagation": null, - "name": "pd", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-sxf27", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": "test-cluster-pd-0", - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker3", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "default", - "service_account_name": "default", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": "test-cluster-pd-peer", - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "pd", - "nfs": null, - "persistent_volume_claim": { - "claim_name": "pd-test-cluster-pd-0", - "read_only": null - }, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "pd.toml" - } - ], - "name": "test-cluster-pd-3731616", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "pd_start_script.sh" - } - ], - "name": "test-cluster-pd-3731616", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-sxf27", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:40+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:40+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://a3fd26f2f84c1dcded2cdc0bcf01c957a3ab244492e9d6b71fc157562bd4c48a", - "image": "docker.io/pingcap/pd:v5.4.0", - "image_id": "sha256:3a909fabddbbbebe215660bf612581dd4d7fef2f6213a0297be6a8ae602f35dd", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "pd", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:04:41+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.4", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.3.4", - "pod_i_ps": [ - { - "ip": "10.244.3.4" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:04:40+00:00" - } - }, - "test-cluster-pd-1": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "2379", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-pd-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "controller-revision-hash": "test-cluster-pd-859db88ddf", - "statefulset.kubernetes.io/pod-name": "test-cluster-pd-1", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/member-id": "10253759161720476298" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:controller-revision-hash": {}, - "f:statefulset.kubernetes.io/pod-name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a6ecbf04-44e0-4821-a24b-8482e3454218\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"pd\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"PEER_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"SET_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":2379,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":2380,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/pd\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/lib/pd\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:hostname": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:subdomain": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"pd\"}": { - ".": {}, - "f:name": {}, - "f:persistentVolumeClaim": { - ".": {}, - "f:claimName": {} - } - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:containerStatuses": {}, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.1.5\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:04+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/member-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:22+00:00" - } - ], - "name": "test-cluster-pd-1", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "StatefulSet", - "name": "test-cluster-pd", - "uid": "a6ecbf04-44e0-4821-a24b-8482e3454218" - } - ], - "resource_version": "1433", - "self_link": null, - "uid": "508f0567-d24f-4ea9-9dc9-99c674595a5c" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/pd_start_script.sh" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "PEER_SERVICE_NAME", - "value": "test-cluster-pd-peer", - "value_from": null - }, - { - "name": "SERVICE_NAME", - "value": "test-cluster-pd", - "value_from": null - }, - { - "name": "SET_NAME", - "value": "test-cluster-pd", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/pd:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "pd", - "ports": [ - { - "container_port": 2380, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - }, - { - "container_port": 2379, - "host_ip": null, - "host_port": null, - "name": "client", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/pd", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/lib/pd", - "mount_propagation": null, - "name": "pd", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-lr2bg", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": "test-cluster-pd-1", - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker2", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "default", - "service_account_name": "default", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": "test-cluster-pd-peer", - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "pd", - "nfs": null, - "persistent_volume_claim": { - "claim_name": "pd-test-cluster-pd-1", - "read_only": null - }, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "pd.toml" - } - ], - "name": "test-cluster-pd-3731616", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "pd_start_script.sh" - } - ], - "name": "test-cluster-pd-3731616", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-lr2bg", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:39+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:04+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:04+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:39+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://0b79c316c8bae507fe82a5beac4ce4559732c490ebb942dba5f30d0e17497d15", - "image": "docker.io/pingcap/pd:v5.4.0", - "image_id": "sha256:3a909fabddbbbebe215660bf612581dd4d7fef2f6213a0297be6a8ae602f35dd", - "last_state": { - "running": null, - "terminated": { - "container_id": "containerd://2390f544ccc7987f5aab212937a486f9bacfa3eeef1fbe7782508d746637af73", - "exit_code": 1, - "finished_at": "2022-07-16T04:05:03+00:00", - "message": null, - "reason": "Error", - "signal": null, - "started_at": "2022-07-16T04:04:40+00:00" - }, - "waiting": null - }, - "name": "pd", - "ready": true, - "restart_count": 1, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:03+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.6", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.1.5", - "pod_i_ps": [ - { - "ip": "10.244.1.5" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:04:39+00:00" - } - }, - "test-cluster-pd-2": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "2379", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-pd-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "controller-revision-hash": "test-cluster-pd-859db88ddf", - "statefulset.kubernetes.io/pod-name": "test-cluster-pd-2", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/member-id": "5110389971597451409" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:controller-revision-hash": {}, - "f:statefulset.kubernetes.io/pod-name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a6ecbf04-44e0-4821-a24b-8482e3454218\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"pd\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"PEER_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"SET_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":2379,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":2380,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/pd\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/lib/pd\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:hostname": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:subdomain": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"pd\"}": { - ".": {}, - "f:name": {}, - "f:persistentVolumeClaim": { - ".": {}, - "f:claimName": {} - } - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:containerStatuses": {}, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.2.5\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:04:42+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/member-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:22+00:00" - } - ], - "name": "test-cluster-pd-2", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "StatefulSet", - "name": "test-cluster-pd", - "uid": "a6ecbf04-44e0-4821-a24b-8482e3454218" - } - ], - "resource_version": "1456", - "self_link": null, - "uid": "60fc72c8-b1a1-43e8-8e13-f07350cda459" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/pd_start_script.sh" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "PEER_SERVICE_NAME", - "value": "test-cluster-pd-peer", - "value_from": null - }, - { - "name": "SERVICE_NAME", - "value": "test-cluster-pd", - "value_from": null - }, - { - "name": "SET_NAME", - "value": "test-cluster-pd", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/pd:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "pd", - "ports": [ - { - "container_port": 2380, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - }, - { - "container_port": 2379, - "host_ip": null, - "host_port": null, - "name": "client", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/pd", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/lib/pd", - "mount_propagation": null, - "name": "pd", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-rkzlr", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": "test-cluster-pd-2", - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "default", - "service_account_name": "default", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": "test-cluster-pd-peer", - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "pd", - "nfs": null, - "persistent_volume_claim": { - "claim_name": "pd-test-cluster-pd-2", - "read_only": null - }, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "pd.toml" - } - ], - "name": "test-cluster-pd-3731616", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "pd_start_script.sh" - } - ], - "name": "test-cluster-pd-3731616", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-rkzlr", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:42+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:42+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://6898fb57162bf338fb5ac6ead26e105c27b98fb1a03a03dd88bf1b674711e7ba", - "image": "docker.io/pingcap/pd:v5.4.0", - "image_id": "sha256:3a909fabddbbbebe215660bf612581dd4d7fef2f6213a0297be6a8ae602f35dd", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "pd", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:04:42+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.2", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.2.5", - "pod_i_ps": [ - { - "ip": "10.244.2.5" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:04:41+00:00" - } - }, - "test-cluster-tidb-0": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "10080", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:21+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-tidb-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "controller-revision-hash": "test-cluster-tidb-788bdc6cfc", - "statefulset.kubernetes.io/pod-name": "test-cluster-tidb-0", - "tidb.pingcap.com/cluster-id": "7120816513896392341" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:controller-revision-hash": {}, - "f:statefulset.kubernetes.io/pod-name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"5b9246b6-88b9-4933-a01e-e2f3fcfdde96\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"slowlog\"}": { - ".": {}, - "f:command": {}, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/var/log/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - }, - "k:{\"name\":\"tidb\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"BINLOG_ENABLED\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"CLUSTER_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"HEADLESS_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"POD_NAME\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"SLOW_LOG_FILE\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":4000,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":10080,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:readinessProbe": { - ".": {}, - "f:failureThreshold": {}, - "f:initialDelaySeconds": {}, - "f:periodSeconds": {}, - "f:successThreshold": {}, - "f:tcpSocket": { - ".": {}, - "f:port": {} - }, - "f:timeoutSeconds": {} - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/log/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:hostname": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:subdomain": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"slowlog\"}": { - ".": {}, - "f:emptyDir": {}, - "f:name": {} - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:21+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:type": {} - } - }, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.3.7\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:22+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:26+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - "f:lastTransitionTime": {}, - "f:status": {} - }, - "k:{\"type\":\"Ready\"}": { - "f:lastTransitionTime": {}, - "f:status": {} - } - }, - "f:containerStatuses": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:41+00:00" - } - ], - "name": "test-cluster-tidb-0", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "StatefulSet", - "name": "test-cluster-tidb", - "uid": "5b9246b6-88b9-4933-a01e-e2f3fcfdde96" - } - ], - "resource_version": "1569", - "self_link": null, - "uid": "126a1c2a-10fb-4af0-844d-bce2ca1a43d0" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "sh", - "-c", - "touch /var/log/tidb/slowlog; tail -n0 -F /var/log/tidb/slowlog;" - ], - "env": null, - "env_from": null, - "image": "busybox:1.34.1", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "slowlog", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/var/log/tidb", - "mount_propagation": null, - "name": "slowlog", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-9bht7", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - }, - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/tidb_start_script.sh" - ], - "env": [ - { - "name": "CLUSTER_NAME", - "value": "test-cluster", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - }, - { - "name": "BINLOG_ENABLED", - "value": "false", - "value_from": null - }, - { - "name": "SLOW_LOG_FILE", - "value": "/var/log/tidb/slowlog", - "value_from": null - }, - { - "name": "POD_NAME", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.name" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "HEADLESS_SERVICE_NAME", - "value": "test-cluster-tidb-peer", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tidb:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tidb", - "ports": [ - { - "container_port": 4000, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - }, - { - "container_port": 10080, - "host_ip": null, - "host_port": null, - "name": "status", - "protocol": "TCP" - } - ], - "readiness_probe": { - "_exec": null, - "failure_threshold": 3, - "http_get": null, - "initial_delay_seconds": 10, - "period_seconds": 10, - "success_threshold": 1, - "tcp_socket": { - "host": null, - "port": 4000 - }, - "termination_grace_period_seconds": null, - "timeout_seconds": 1 - }, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/tidb", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/log/tidb", - "mount_propagation": null, - "name": "slowlog", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-9bht7", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": "test-cluster-tidb-0", - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker3", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "default", - "service_account_name": "default", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": "test-cluster-tidb-peer", - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "tidb.toml" - } - ], - "name": "test-cluster-tidb-6662316", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "tidb_start_script.sh" - } - ], - "name": "test-cluster-tidb-6662316", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": { - "medium": null, - "size_limit": null - }, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "slowlog", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-9bht7", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:21+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:21+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://f6b99a71d2407202be55038a6ff8a92080b5e75984ef214da8db58ac68abc517", - "image": "docker.io/library/busybox:1.34.1", - "image_id": "sha256:62aedd01bd8520c43d06b09f7a0f67ba9720bdc04631a8242c65ea995f3ecac8", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "slowlog", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:22+00:00" - }, - "terminated": null, - "waiting": null - } - }, - { - "container_id": "containerd://c2f41e19ecf6c54c7618673b86c3522550b06b7adb6dde6717d16b5b933b164a", - "image": "docker.io/pingcap/tidb:v5.4.0", - "image_id": "sha256:f8f39dfba1157d651a48b1cd606533831001d4ba6ba4a31d55cad8045e5637d0", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "tidb", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:22+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.4", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.3.7", - "pod_i_ps": [ - { - "ip": "10.244.3.7" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:05:21+00:00" - } - }, - "test-cluster-tidb-1": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "10080", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:21+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-tidb-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "controller-revision-hash": "test-cluster-tidb-788bdc6cfc", - "statefulset.kubernetes.io/pod-name": "test-cluster-tidb-1", - "tidb.pingcap.com/cluster-id": "7120816513896392341" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:controller-revision-hash": {}, - "f:statefulset.kubernetes.io/pod-name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"5b9246b6-88b9-4933-a01e-e2f3fcfdde96\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"slowlog\"}": { - ".": {}, - "f:command": {}, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/var/log/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - }, - "k:{\"name\":\"tidb\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"BINLOG_ENABLED\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"CLUSTER_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"HEADLESS_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"POD_NAME\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"SLOW_LOG_FILE\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":4000,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":10080,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:readinessProbe": { - ".": {}, - "f:failureThreshold": {}, - "f:initialDelaySeconds": {}, - "f:periodSeconds": {}, - "f:successThreshold": {}, - "f:tcpSocket": { - ".": {}, - "f:port": {} - }, - "f:timeoutSeconds": {} - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/log/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:hostname": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:subdomain": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"slowlog\"}": { - ".": {}, - "f:emptyDir": {}, - "f:name": {} - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:21+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:type": {} - } - }, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.1.8\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:24+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:26+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - "f:lastTransitionTime": {}, - "f:status": {} - }, - "k:{\"type\":\"Ready\"}": { - "f:lastTransitionTime": {}, - "f:status": {} - } - }, - "f:containerStatuses": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:41+00:00" - } - ], - "name": "test-cluster-tidb-1", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "StatefulSet", - "name": "test-cluster-tidb", - "uid": "5b9246b6-88b9-4933-a01e-e2f3fcfdde96" - } - ], - "resource_version": "1568", - "self_link": null, - "uid": "d1aab93a-4dca-4572-bec6-d4a0daed2411" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "sh", - "-c", - "touch /var/log/tidb/slowlog; tail -n0 -F /var/log/tidb/slowlog;" - ], - "env": null, - "env_from": null, - "image": "busybox:1.34.1", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "slowlog", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/var/log/tidb", - "mount_propagation": null, - "name": "slowlog", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-k7q9b", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - }, - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/tidb_start_script.sh" - ], - "env": [ - { - "name": "CLUSTER_NAME", - "value": "test-cluster", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - }, - { - "name": "BINLOG_ENABLED", - "value": "false", - "value_from": null - }, - { - "name": "SLOW_LOG_FILE", - "value": "/var/log/tidb/slowlog", - "value_from": null - }, - { - "name": "POD_NAME", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.name" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "HEADLESS_SERVICE_NAME", - "value": "test-cluster-tidb-peer", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tidb:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tidb", - "ports": [ - { - "container_port": 4000, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - }, - { - "container_port": 10080, - "host_ip": null, - "host_port": null, - "name": "status", - "protocol": "TCP" - } - ], - "readiness_probe": { - "_exec": null, - "failure_threshold": 3, - "http_get": null, - "initial_delay_seconds": 10, - "period_seconds": 10, - "success_threshold": 1, - "tcp_socket": { - "host": null, - "port": 4000 - }, - "termination_grace_period_seconds": null, - "timeout_seconds": 1 - }, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/tidb", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/log/tidb", - "mount_propagation": null, - "name": "slowlog", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-k7q9b", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": "test-cluster-tidb-1", - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker2", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "default", - "service_account_name": "default", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": "test-cluster-tidb-peer", - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "tidb.toml" - } - ], - "name": "test-cluster-tidb-6662316", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "tidb_start_script.sh" - } - ], - "name": "test-cluster-tidb-6662316", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": { - "medium": null, - "size_limit": null - }, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "slowlog", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-k7q9b", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:21+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:21+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://bbd5db3559e65aeae16cb4b1ad9f18a88f1764de24dbecfdeb106e704644cf5b", - "image": "docker.io/library/busybox:1.34.1", - "image_id": "sha256:62aedd01bd8520c43d06b09f7a0f67ba9720bdc04631a8242c65ea995f3ecac8", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "slowlog", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:24+00:00" - }, - "terminated": null, - "waiting": null - } - }, - { - "container_id": "containerd://68c55820252c2f30a368c9ef34c81b3fd143dd2d198e3b30866e3dc13a2a16ee", - "image": "docker.io/pingcap/tidb:v5.4.0", - "image_id": "sha256:f8f39dfba1157d651a48b1cd606533831001d4ba6ba4a31d55cad8045e5637d0", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "tidb", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:24+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.6", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.1.8", - "pod_i_ps": [ - { - "ip": "10.244.1.8" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:05:21+00:00" - } - }, - "test-cluster-tidb-2": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "10080", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:21+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-tidb-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "controller-revision-hash": "test-cluster-tidb-788bdc6cfc", - "statefulset.kubernetes.io/pod-name": "test-cluster-tidb-2", - "tidb.pingcap.com/cluster-id": "7120816513896392341" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:controller-revision-hash": {}, - "f:statefulset.kubernetes.io/pod-name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"5b9246b6-88b9-4933-a01e-e2f3fcfdde96\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"slowlog\"}": { - ".": {}, - "f:command": {}, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/var/log/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - }, - "k:{\"name\":\"tidb\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"BINLOG_ENABLED\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"CLUSTER_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"HEADLESS_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"POD_NAME\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"SLOW_LOG_FILE\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":4000,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":10080,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:readinessProbe": { - ".": {}, - "f:failureThreshold": {}, - "f:initialDelaySeconds": {}, - "f:periodSeconds": {}, - "f:successThreshold": {}, - "f:tcpSocket": { - ".": {}, - "f:port": {} - }, - "f:timeoutSeconds": {} - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/log/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:hostname": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:subdomain": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"slowlog\"}": { - ".": {}, - "f:emptyDir": {}, - "f:name": {} - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:21+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:type": {} - } - }, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.2.8\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:22+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:26+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - "f:lastTransitionTime": {}, - "f:status": {} - }, - "k:{\"type\":\"Ready\"}": { - "f:lastTransitionTime": {}, - "f:status": {} - } - }, - "f:containerStatuses": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:41+00:00" - } - ], - "name": "test-cluster-tidb-2", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "StatefulSet", - "name": "test-cluster-tidb", - "uid": "5b9246b6-88b9-4933-a01e-e2f3fcfdde96" - } - ], - "resource_version": "1570", - "self_link": null, - "uid": "97f10d89-7b4e-49fd-8699-d04681357705" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "sh", - "-c", - "touch /var/log/tidb/slowlog; tail -n0 -F /var/log/tidb/slowlog;" - ], - "env": null, - "env_from": null, - "image": "busybox:1.34.1", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "slowlog", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/var/log/tidb", - "mount_propagation": null, - "name": "slowlog", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-krbbn", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - }, - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/tidb_start_script.sh" - ], - "env": [ - { - "name": "CLUSTER_NAME", - "value": "test-cluster", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - }, - { - "name": "BINLOG_ENABLED", - "value": "false", - "value_from": null - }, - { - "name": "SLOW_LOG_FILE", - "value": "/var/log/tidb/slowlog", - "value_from": null - }, - { - "name": "POD_NAME", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.name" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "HEADLESS_SERVICE_NAME", - "value": "test-cluster-tidb-peer", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tidb:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tidb", - "ports": [ - { - "container_port": 4000, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - }, - { - "container_port": 10080, - "host_ip": null, - "host_port": null, - "name": "status", - "protocol": "TCP" - } - ], - "readiness_probe": { - "_exec": null, - "failure_threshold": 3, - "http_get": null, - "initial_delay_seconds": 10, - "period_seconds": 10, - "success_threshold": 1, - "tcp_socket": { - "host": null, - "port": 4000 - }, - "termination_grace_period_seconds": null, - "timeout_seconds": 1 - }, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/tidb", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/log/tidb", - "mount_propagation": null, - "name": "slowlog", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-krbbn", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": "test-cluster-tidb-2", - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "default", - "service_account_name": "default", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": "test-cluster-tidb-peer", - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "tidb.toml" - } - ], - "name": "test-cluster-tidb-6662316", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "tidb_start_script.sh" - } - ], - "name": "test-cluster-tidb-6662316", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": { - "medium": null, - "size_limit": null - }, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "slowlog", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-krbbn", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:21+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:21+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://6a6af3ba6835d726a8b5732725b3ab5e7d0a081dd745521655b54205b809c15c", - "image": "docker.io/library/busybox:1.34.1", - "image_id": "sha256:62aedd01bd8520c43d06b09f7a0f67ba9720bdc04631a8242c65ea995f3ecac8", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "slowlog", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:22+00:00" - }, - "terminated": null, - "waiting": null - } - }, - { - "container_id": "containerd://3a6c458061cf02fe6aa6b1926c7edea77fce227dc287317f9353c15c26620cbf", - "image": "docker.io/pingcap/tidb:v5.4.0", - "image_id": "sha256:f8f39dfba1157d651a48b1cd606533831001d4ba6ba4a31d55cad8045e5637d0", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "tidb", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:22+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.2", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.2.8", - "pod_i_ps": [ - { - "ip": "10.244.2.8" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:05:21+00:00" - } - }, - "test-cluster-tikv-0": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "20180", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:02+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-tikv-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "controller-revision-hash": "test-cluster-tikv-5bcd5ddcc", - "statefulset.kubernetes.io/pod-name": "test-cluster-tikv-0", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/store-id": "4" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:controller-revision-hash": {}, - "f:statefulset.kubernetes.io/pod-name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"c9579c3a-651a-47b6-ac1c-6b378836fc61\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"tikv\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"CAPACITY\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"CLUSTER_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"HEADLESS_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":20160,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:securityContext": { - ".": {}, - "f:privileged": {} - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/tikv\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/lib/tikv\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:hostname": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:subdomain": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"tikv\"}": { - ".": {}, - "f:name": {}, - "f:persistentVolumeClaim": { - ".": {}, - "f:claimName": {} - } - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:02+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:containerStatuses": {}, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.3.6\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:07+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/store-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:24+00:00" - } - ], - "name": "test-cluster-tikv-0", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "StatefulSet", - "name": "test-cluster-tikv", - "uid": "c9579c3a-651a-47b6-ac1c-6b378836fc61" - } - ], - "resource_version": "1472", - "self_link": null, - "uid": "d6c26a4c-5b70-4cda-9d69-45215307afe0" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/tikv_start_script.sh" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "CLUSTER_NAME", - "value": "test-cluster", - "value_from": null - }, - { - "name": "HEADLESS_SERVICE_NAME", - "value": "test-cluster-tikv-peer", - "value_from": null - }, - { - "name": "CAPACITY", - "value": "0", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tikv:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tikv", - "ports": [ - { - "container_port": 20160, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": { - "allow_privilege_escalation": null, - "capabilities": null, - "privileged": false, - "proc_mount": null, - "read_only_root_filesystem": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "windows_options": null - }, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/lib/tikv", - "mount_propagation": null, - "name": "tikv", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/tikv", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-z46b7", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": "test-cluster-tikv-0", - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker3", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "default", - "service_account_name": "default", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": "test-cluster-tikv-peer", - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "tikv", - "nfs": null, - "persistent_volume_claim": { - "claim_name": "tikv-test-cluster-tikv-0", - "read_only": null - }, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "tikv.toml" - } - ], - "name": "test-cluster-tikv-3831336", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "tikv_start_script.sh" - } - ], - "name": "test-cluster-tikv-3831336", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-z46b7", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:07+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:07+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:07+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:07+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://46385fd7dcd336ccbc94477af2c5965683a7688458afaebb64b2ef28f37f1826", - "image": "docker.io/pingcap/tikv:v5.4.0", - "image_id": "sha256:3f22685fea0b53699fede8ab3c14733402e20c0e12ce54e7b6c68195b1b9245f", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "tikv", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:07+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.4", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.3.6", - "pod_i_ps": [ - { - "ip": "10.244.3.6" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:05:07+00:00" - } - }, - "test-cluster-tikv-1": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "20180", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:02+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-tikv-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "controller-revision-hash": "test-cluster-tikv-5bcd5ddcc", - "statefulset.kubernetes.io/pod-name": "test-cluster-tikv-1", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/store-id": "1" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:controller-revision-hash": {}, - "f:statefulset.kubernetes.io/pod-name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"c9579c3a-651a-47b6-ac1c-6b378836fc61\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"tikv\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"CAPACITY\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"CLUSTER_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"HEADLESS_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":20160,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:securityContext": { - ".": {}, - "f:privileged": {} - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/tikv\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/lib/tikv\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:hostname": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:subdomain": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"tikv\"}": { - ".": {}, - "f:name": {}, - "f:persistentVolumeClaim": { - ".": {}, - "f:claimName": {} - } - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:02+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:containerStatuses": {}, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.1.7\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:07+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/store-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:25+00:00" - } - ], - "name": "test-cluster-tikv-1", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "StatefulSet", - "name": "test-cluster-tikv", - "uid": "c9579c3a-651a-47b6-ac1c-6b378836fc61" - } - ], - "resource_version": "1487", - "self_link": null, - "uid": "4e6064e7-7100-4c9c-bfdc-699eabb04fef" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/tikv_start_script.sh" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "CLUSTER_NAME", - "value": "test-cluster", - "value_from": null - }, - { - "name": "HEADLESS_SERVICE_NAME", - "value": "test-cluster-tikv-peer", - "value_from": null - }, - { - "name": "CAPACITY", - "value": "0", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tikv:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tikv", - "ports": [ - { - "container_port": 20160, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": { - "allow_privilege_escalation": null, - "capabilities": null, - "privileged": false, - "proc_mount": null, - "read_only_root_filesystem": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "windows_options": null - }, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/lib/tikv", - "mount_propagation": null, - "name": "tikv", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/tikv", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-zsv7f", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": "test-cluster-tikv-1", - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker2", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "default", - "service_account_name": "default", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": "test-cluster-tikv-peer", - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "tikv", - "nfs": null, - "persistent_volume_claim": { - "claim_name": "tikv-test-cluster-tikv-1", - "read_only": null - }, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "tikv.toml" - } - ], - "name": "test-cluster-tikv-3831336", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "tikv_start_script.sh" - } - ], - "name": "test-cluster-tikv-3831336", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-zsv7f", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:06+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:07+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:07+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:06+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://3e378a0720ea1c940cb68e41e50b4f7ec93dc25e174563b2231418e00f1a54d3", - "image": "docker.io/pingcap/tikv:v5.4.0", - "image_id": "sha256:3f22685fea0b53699fede8ab3c14733402e20c0e12ce54e7b6c68195b1b9245f", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "tikv", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:06+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.6", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.1.7", - "pod_i_ps": [ - { - "ip": "10.244.1.7" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:05:06+00:00" - } - }, - "test-cluster-tikv-2": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "20180", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:02+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-tikv-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "controller-revision-hash": "test-cluster-tikv-5bcd5ddcc", - "statefulset.kubernetes.io/pod-name": "test-cluster-tikv-2", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/store-id": "5" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:controller-revision-hash": {}, - "f:statefulset.kubernetes.io/pod-name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"c9579c3a-651a-47b6-ac1c-6b378836fc61\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"tikv\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"CAPACITY\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"CLUSTER_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"HEADLESS_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":20160,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:securityContext": { - ".": {}, - "f:privileged": {} - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/tikv\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/lib/tikv\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:hostname": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:subdomain": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"tikv\"}": { - ".": {}, - "f:name": {}, - "f:persistentVolumeClaim": { - ".": {}, - "f:claimName": {} - } - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:02+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:containerStatuses": {}, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.2.7\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:09+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/store-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:21+00:00" - } - ], - "name": "test-cluster-tikv-2", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "StatefulSet", - "name": "test-cluster-tikv", - "uid": "c9579c3a-651a-47b6-ac1c-6b378836fc61" - } - ], - "resource_version": "1411", - "self_link": null, - "uid": "41f7aeaa-df3e-4722-b694-222cac95f007" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/tikv_start_script.sh" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "CLUSTER_NAME", - "value": "test-cluster", - "value_from": null - }, - { - "name": "HEADLESS_SERVICE_NAME", - "value": "test-cluster-tikv-peer", - "value_from": null - }, - { - "name": "CAPACITY", - "value": "0", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tikv:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tikv", - "ports": [ - { - "container_port": 20160, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": { - "allow_privilege_escalation": null, - "capabilities": null, - "privileged": false, - "proc_mount": null, - "read_only_root_filesystem": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "windows_options": null - }, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/lib/tikv", - "mount_propagation": null, - "name": "tikv", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/tikv", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-bv8tc", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": "test-cluster-tikv-2", - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "default", - "service_account_name": "default", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": "test-cluster-tikv-peer", - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "tikv", - "nfs": null, - "persistent_volume_claim": { - "claim_name": "tikv-test-cluster-tikv-2", - "read_only": null - }, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "tikv.toml" - } - ], - "name": "test-cluster-tikv-3831336", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "tikv_start_script.sh" - } - ], - "name": "test-cluster-tikv-3831336", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-bv8tc", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:08+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:09+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:09+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:08+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://f035178e24a5f91839dc4380a00f0ff6a83866f33b942ae8199efffca3a5a1f7", - "image": "docker.io/pingcap/tikv:v5.4.0", - "image_id": "sha256:3f22685fea0b53699fede8ab3c14733402e20c0e12ce54e7b6c68195b1b9245f", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "tikv", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:08+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.2", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.2.7", - "pod_i_ps": [ - { - "ip": "10.244.2.7" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:05:08+00:00" - } - }, - "tidb-controller-manager-75dd8c56c9-9689s": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:33+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "tidb-controller-manager-75dd8c56c9-", - "generation": null, - "labels": { - "acto/tag": "operator-pod", - "app.kubernetes.io/component": "controller-manager", - "app.kubernetes.io/instance": "acto-test-operator", - "app.kubernetes.io/name": "tidb-operator", - "pod-template-hash": "75dd8c56c9" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:acto/tag": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/name": {}, - "f:pod-template-hash": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"b1d23e26-eb2a-4877-a52c-242618c4c89d\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"tidb-operator\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:livenessProbe": { - ".": {}, - "f:failureThreshold": {}, - "f:initialDelaySeconds": {}, - "f:periodSeconds": {}, - "f:successThreshold": {}, - "f:tcpSocket": { - ".": {}, - "f:port": {} - }, - "f:timeoutSeconds": {} - }, - "f:name": {}, - "f:resources": { - ".": {}, - "f:requests": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - } - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {} - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:serviceAccount": {}, - "f:serviceAccountName": {}, - "f:terminationGracePeriodSeconds": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:33+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:containerStatuses": {}, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.2.3\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - } - ], - "name": "tidb-controller-manager-75dd8c56c9-9689s", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "ReplicaSet", - "name": "tidb-controller-manager-75dd8c56c9", - "uid": "b1d23e26-eb2a-4877-a52c-242618c4c89d" - } - ], - "resource_version": "934", - "self_link": null, - "uid": "844081f7-59df-41e3-9c0b-eb2dfca6a654" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/usr/local/bin/tidb-controller-manager", - "-tidb-backup-manager-image=pingcap/tidb-backup-manager:v1.3.2", - "-tidb-discovery-image=pingcap/tidb-operator:v1.3.2", - "-cluster-scoped=true", - "-cluster-permission-node=true", - "-cluster-permission-pv=true", - "-cluster-permission-sc=true", - "-auto-failover=true", - "-pd-failover-period=5m", - "-tikv-failover-period=5m", - "-tiflash-failover-period=5m", - "-tidb-failover-period=5m", - "-dm-master-failover-period=5m", - "-dm-worker-failover-period=5m", - "-v=2" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tidb-operator:v1.3.2", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": { - "_exec": null, - "failure_threshold": 10, - "http_get": null, - "initial_delay_seconds": 30, - "period_seconds": 10, - "success_threshold": 1, - "tcp_socket": { - "host": null, - "port": 6060 - }, - "termination_grace_period_seconds": null, - "timeout_seconds": 1 - }, - "name": "tidb-operator", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": null, - "requests": { - "cpu": "80m", - "memory": "50Mi" - } - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-6txmk", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": null, - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "tidb-controller-manager", - "service_account_name": "tidb-controller-manager", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": null, - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-6txmk", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:33+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:34+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:34+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:33+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://b6dd47ec6632776b55432affee84d46efe69bb42ee0b0d673aa95679b0511f93", - "image": "docker.io/pingcap/tidb-operator:v1.3.2", - "image_id": "sha256:a1a60c89f7458d2890ab3e988afe9b27dda812dd2af9269a68261988c9eb7022", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "tidb-operator", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:04:34+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.2", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.2.3", - "pod_i_ps": [ - { - "ip": "10.244.2.3" - } - ], - "qos_class": "Burstable", - "reason": null, - "start_time": "2022-07-16T04:04:33+00:00" - } - }, - "tidb-scheduler-77fb4766d8-lcw7g": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:33+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "tidb-scheduler-77fb4766d8-", - "generation": null, - "labels": { - "acto/tag": "operator-pod", - "app.kubernetes.io/component": "scheduler", - "app.kubernetes.io/instance": "acto-test-operator", - "app.kubernetes.io/name": "tidb-operator", - "pod-template-hash": "77fb4766d8" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:acto/tag": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/name": {}, - "f:pod-template-hash": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"90746e7e-d96e-498d-a7f5-7778bed5296e\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"kube-scheduler\"}": { - ".": {}, - "f:command": {}, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:resources": { - ".": {}, - "f:limits": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - }, - "f:requests": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - } - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/kubernetes\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - }, - "k:{\"name\":\"tidb-scheduler\"}": { - ".": {}, - "f:command": {}, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:resources": { - ".": {}, - "f:limits": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - }, - "f:requests": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - } - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {} - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:serviceAccount": {}, - "f:serviceAccountName": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"scheduler-config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:33+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:containerStatuses": {}, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.2.2\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - } - ], - "name": "tidb-scheduler-77fb4766d8-lcw7g", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "ReplicaSet", - "name": "tidb-scheduler-77fb4766d8", - "uid": "90746e7e-d96e-498d-a7f5-7778bed5296e" - } - ], - "resource_version": "938", - "self_link": null, - "uid": "44e620b2-26bd-45a4-a2e5-279b240871f2" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/usr/local/bin/tidb-scheduler", - "-v=2", - "-port=10262" - ], - "env": null, - "env_from": null, - "image": "pingcap/tidb-operator:v1.3.2", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tidb-scheduler", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": { - "cpu": "250m", - "memory": "150Mi" - }, - "requests": { - "cpu": "80m", - "memory": "50Mi" - } - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-twjwt", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - }, - { - "args": null, - "command": [ - "kube-scheduler", - "--v=2", - "--config=/etc/kubernetes/scheduler-config.yaml" - ], - "env": null, - "env_from": null, - "image": "k8s.gcr.io/kube-scheduler:v1.22.9", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "kube-scheduler", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": { - "cpu": "250m", - "memory": "150Mi" - }, - "requests": { - "cpu": "80m", - "memory": "50Mi" - } - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/kubernetes", - "mount_propagation": null, - "name": "scheduler-config", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-twjwt", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": null, - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "tidb-scheduler", - "service_account_name": "tidb-scheduler", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": null, - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": null, - "name": "tidb-scheduler-config", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "scheduler-config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-twjwt", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:33+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:34+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:34+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:33+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://256e219373b7a0a57ee3bfc9779900a7f6c99e16708e9669491ebb1785d5f7a1", - "image": "k8s.gcr.io/kube-scheduler:v1.22.9", - "image_id": "sha256:a709e983ff7ee7e9a8ef5fd1a0c4b89c9dd4b4e9baf36fb778e290b76175166b", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "kube-scheduler", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:04:34+00:00" - }, - "terminated": null, - "waiting": null - } - }, - { - "container_id": "containerd://32e5ebf3a37b1618b2a51a059150318164f67b3a460cdb7c32f3aba0f50e1ff7", - "image": "docker.io/pingcap/tidb-operator:v1.3.2", - "image_id": "sha256:a1a60c89f7458d2890ab3e988afe9b27dda812dd2af9269a68261988c9eb7022", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "tidb-scheduler", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:04:34+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.2", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.2.2", - "pod_i_ps": [ - { - "ip": "10.244.2.2" - } - ], - "qos_class": "Burstable", - "reason": null, - "start_time": "2022-07-16T04:04:33+00:00" - } - } - }, - "stateful_set": { - "test-cluster-pd": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pingcap.com/last-applied-configuration": "{\"replicas\":3,\"selector\":{\"matchLabels\":{\"app.kubernetes.io/component\":\"pd\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"}},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"app.kubernetes.io/component\":\"pd\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"},\"annotations\":{\"prometheus.io/path\":\"/metrics\",\"prometheus.io/port\":\"2379\",\"prometheus.io/scrape\":\"true\"}},\"spec\":{\"volumes\":[{\"name\":\"annotations\",\"downwardAPI\":{\"items\":[{\"path\":\"annotations\",\"fieldRef\":{\"fieldPath\":\"metadata.annotations\"}}]}},{\"name\":\"config\",\"configMap\":{\"name\":\"test-cluster-pd-3731616\",\"items\":[{\"key\":\"config-file\",\"path\":\"pd.toml\"}]}},{\"name\":\"startup-script\",\"configMap\":{\"name\":\"test-cluster-pd-3731616\",\"items\":[{\"key\":\"startup-script\",\"path\":\"pd_start_script.sh\"}]}}],\"containers\":[{\"name\":\"pd\",\"image\":\"pingcap/pd:v5.4.0\",\"command\":[\"/bin/sh\",\"/usr/local/bin/pd_start_script.sh\"],\"ports\":[{\"name\":\"server\",\"containerPort\":2380,\"protocol\":\"TCP\"},{\"name\":\"client\",\"containerPort\":2379,\"protocol\":\"TCP\"}],\"env\":[{\"name\":\"NAMESPACE\",\"valueFrom\":{\"fieldRef\":{\"fieldPath\":\"metadata.namespace\"}}},{\"name\":\"PEER_SERVICE_NAME\",\"value\":\"test-cluster-pd-peer\"},{\"name\":\"SERVICE_NAME\",\"value\":\"test-cluster-pd\"},{\"name\":\"SET_NAME\",\"value\":\"test-cluster-pd\"},{\"name\":\"TZ\",\"value\":\"UTC\"}],\"resources\":{},\"volumeMounts\":[{\"name\":\"annotations\",\"readOnly\":true,\"mountPath\":\"/etc/podinfo\"},{\"name\":\"config\",\"readOnly\":true,\"mountPath\":\"/etc/pd\"},{\"name\":\"startup-script\",\"readOnly\":true,\"mountPath\":\"/usr/local/bin\"},{\"name\":\"pd\",\"mountPath\":\"/var/lib/pd\"}],\"imagePullPolicy\":\"IfNotPresent\"}],\"restartPolicy\":\"Always\",\"dnsPolicy\":\"ClusterFirst\"}},\"volumeClaimTemplates\":[{\"metadata\":{\"name\":\"pd\",\"creationTimestamp\":null},\"spec\":{\"accessModes\":[\"ReadWriteOnce\"],\"resources\":{\"requests\":{\"storage\":\"10Gi\"}}},\"status\":{}}],\"serviceName\":\"test-cluster-pd-peer\",\"podManagementPolicy\":\"Parallel\",\"updateStrategy\":{\"type\":\"RollingUpdate\",\"rollingUpdate\":{\"partition\":3}}}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": 1, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": [ - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:podManagementPolicy": {}, - "f:replicas": {}, - "f:revisionHistoryLimit": {}, - "f:selector": {}, - "f:serviceName": {}, - "f:template": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"pd\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"PEER_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"SET_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":2379,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":2380,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/pd\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/lib/pd\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "f:updateStrategy": { - "f:rollingUpdate": { - ".": {}, - "f:partition": {} - }, - "f:type": {} - }, - "f:volumeClaimTemplates": {} - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - }, - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:availableReplicas": {}, - "f:collisionCount": {}, - "f:currentReplicas": {}, - "f:currentRevision": {}, - "f:observedGeneration": {}, - "f:readyReplicas": {}, - "f:replicas": {}, - "f:updateRevision": {}, - "f:updatedReplicas": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:40+00:00" - } - ], - "name": "test-cluster-pd", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "1242", - "self_link": null, - "uid": "a6ecbf04-44e0-4821-a24b-8482e3454218" - }, - "spec": { - "pod_management_policy": "Parallel", - "replicas": 3, - "revision_history_limit": 10, - "selector": { - "match_expressions": null, - "match_labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - } - }, - "service_name": "test-cluster-pd-peer", - "template": { - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "2379", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": null, - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": null, - "name": null, - "namespace": null, - "owner_references": null, - "resource_version": null, - "self_link": null, - "uid": null - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/pd_start_script.sh" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "PEER_SERVICE_NAME", - "value": "test-cluster-pd-peer", - "value_from": null - }, - { - "name": "SERVICE_NAME", - "value": "test-cluster-pd", - "value_from": null - }, - { - "name": "SET_NAME", - "value": "test-cluster-pd", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/pd:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "pd", - "ports": [ - { - "container_port": 2380, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - }, - { - "container_port": 2379, - "host_ip": null, - "host_port": null, - "name": "client", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/pd", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/lib/pd", - "mount_propagation": null, - "name": "pd", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": null, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": null, - "image_pull_secrets": null, - "init_containers": null, - "node_name": null, - "node_selector": null, - "overhead": null, - "preemption_policy": null, - "priority": null, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": null, - "service_account_name": null, - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": null, - "termination_grace_period_seconds": 30, - "tolerations": null, - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "pd.toml" - } - ], - "name": "test-cluster-pd-3731616", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "pd_start_script.sh" - } - ], - "name": "test-cluster-pd-3731616", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - } - }, - "update_strategy": { - "rolling_update": { - "partition": 3 - }, - "type": "RollingUpdate" - }, - "volume_claim_templates": [ - { - "api_version": "v1", - "kind": "PersistentVolumeClaim", - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": null, - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": null, - "managed_fields": null, - "name": "pd", - "namespace": null, - "owner_references": null, - "resource_version": null, - "self_link": null, - "uid": null - }, - "spec": { - "access_modes": [ - "ReadWriteOnce" - ], - "data_source": null, - "resources": { - "limits": null, - "requests": { - "storage": "10Gi" - } - }, - "selector": null, - "storage_class_name": null, - "volume_mode": "Filesystem", - "volume_name": null - }, - "status": { - "access_modes": null, - "capacity": null, - "conditions": null, - "phase": "Pending" - } - } - ] - }, - "status": { - "collision_count": 0, - "conditions": null, - "current_replicas": 3, - "current_revision": "test-cluster-pd-859db88ddf", - "observed_generation": 1, - "ready_replicas": 3, - "replicas": 3, - "update_revision": "test-cluster-pd-859db88ddf", - "updated_replicas": 3 - } - }, - "test-cluster-tidb": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pingcap.com/last-applied-configuration": "{\"replicas\":3,\"selector\":{\"matchLabels\":{\"app.kubernetes.io/component\":\"tidb\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"}},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"app.kubernetes.io/component\":\"tidb\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"},\"annotations\":{\"prometheus.io/path\":\"/metrics\",\"prometheus.io/port\":\"10080\",\"prometheus.io/scrape\":\"true\"}},\"spec\":{\"volumes\":[{\"name\":\"annotations\",\"downwardAPI\":{\"items\":[{\"path\":\"annotations\",\"fieldRef\":{\"fieldPath\":\"metadata.annotations\"}}]}},{\"name\":\"config\",\"configMap\":{\"name\":\"test-cluster-tidb-6662316\",\"items\":[{\"key\":\"config-file\",\"path\":\"tidb.toml\"}]}},{\"name\":\"startup-script\",\"configMap\":{\"name\":\"test-cluster-tidb-6662316\",\"items\":[{\"key\":\"startup-script\",\"path\":\"tidb_start_script.sh\"}]}},{\"name\":\"slowlog\",\"emptyDir\":{}}],\"containers\":[{\"name\":\"slowlog\",\"image\":\"busybox:1.34.1\",\"command\":[\"sh\",\"-c\",\"touch /var/log/tidb/slowlog; tail -n0 -F /var/log/tidb/slowlog;\"],\"resources\":{},\"volumeMounts\":[{\"name\":\"slowlog\",\"mountPath\":\"/var/log/tidb\"}],\"imagePullPolicy\":\"IfNotPresent\"},{\"name\":\"tidb\",\"image\":\"pingcap/tidb:v5.4.0\",\"command\":[\"/bin/sh\",\"/usr/local/bin/tidb_start_script.sh\"],\"ports\":[{\"name\":\"server\",\"containerPort\":4000,\"protocol\":\"TCP\"},{\"name\":\"status\",\"containerPort\":10080,\"protocol\":\"TCP\"}],\"env\":[{\"name\":\"CLUSTER_NAME\",\"value\":\"test-cluster\"},{\"name\":\"TZ\",\"value\":\"UTC\"},{\"name\":\"BINLOG_ENABLED\",\"value\":\"false\"},{\"name\":\"SLOW_LOG_FILE\",\"value\":\"/var/log/tidb/slowlog\"},{\"name\":\"POD_NAME\",\"valueFrom\":{\"fieldRef\":{\"fieldPath\":\"metadata.name\"}}},{\"name\":\"NAMESPACE\",\"valueFrom\":{\"fieldRef\":{\"fieldPath\":\"metadata.namespace\"}}},{\"name\":\"HEADLESS_SERVICE_NAME\",\"value\":\"test-cluster-tidb-peer\"}],\"resources\":{},\"volumeMounts\":[{\"name\":\"annotations\",\"readOnly\":true,\"mountPath\":\"/etc/podinfo\"},{\"name\":\"config\",\"readOnly\":true,\"mountPath\":\"/etc/tidb\"},{\"name\":\"startup-script\",\"readOnly\":true,\"mountPath\":\"/usr/local/bin\"},{\"name\":\"slowlog\",\"mountPath\":\"/var/log/tidb\"}],\"readinessProbe\":{\"tcpSocket\":{\"port\":4000},\"initialDelaySeconds\":10},\"imagePullPolicy\":\"IfNotPresent\"}],\"restartPolicy\":\"Always\",\"dnsPolicy\":\"ClusterFirst\"}},\"serviceName\":\"test-cluster-tidb-peer\",\"podManagementPolicy\":\"Parallel\",\"updateStrategy\":{\"type\":\"RollingUpdate\",\"rollingUpdate\":{\"partition\":3}}}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:21+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": 1, - "labels": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": [ - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:podManagementPolicy": {}, - "f:replicas": {}, - "f:revisionHistoryLimit": {}, - "f:selector": {}, - "f:serviceName": {}, - "f:template": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"slowlog\"}": { - ".": {}, - "f:command": {}, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/var/log/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - }, - "k:{\"name\":\"tidb\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"BINLOG_ENABLED\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"CLUSTER_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"HEADLESS_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"POD_NAME\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"SLOW_LOG_FILE\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":4000,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":10080,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:readinessProbe": { - ".": {}, - "f:failureThreshold": {}, - "f:initialDelaySeconds": {}, - "f:periodSeconds": {}, - "f:successThreshold": {}, - "f:tcpSocket": { - ".": {}, - "f:port": {} - }, - "f:timeoutSeconds": {} - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/log/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"slowlog\"}": { - ".": {}, - "f:emptyDir": {}, - "f:name": {} - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "f:updateStrategy": { - "f:rollingUpdate": { - ".": {}, - "f:partition": {} - }, - "f:type": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:21+00:00" - }, - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:availableReplicas": {}, - "f:collisionCount": {}, - "f:currentReplicas": {}, - "f:currentRevision": {}, - "f:observedGeneration": {}, - "f:readyReplicas": {}, - "f:replicas": {}, - "f:updateRevision": {}, - "f:updatedReplicas": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:41+00:00" - } - ], - "name": "test-cluster-tidb", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "1578", - "self_link": null, - "uid": "5b9246b6-88b9-4933-a01e-e2f3fcfdde96" - }, - "spec": { - "pod_management_policy": "Parallel", - "replicas": 3, - "revision_history_limit": 10, - "selector": { - "match_expressions": null, - "match_labels": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - } - }, - "service_name": "test-cluster-tidb-peer", - "template": { - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "10080", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": null, - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": null, - "name": null, - "namespace": null, - "owner_references": null, - "resource_version": null, - "self_link": null, - "uid": null - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "sh", - "-c", - "touch /var/log/tidb/slowlog; tail -n0 -F /var/log/tidb/slowlog;" - ], - "env": null, - "env_from": null, - "image": "busybox:1.34.1", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "slowlog", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/var/log/tidb", - "mount_propagation": null, - "name": "slowlog", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - }, - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/tidb_start_script.sh" - ], - "env": [ - { - "name": "CLUSTER_NAME", - "value": "test-cluster", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - }, - { - "name": "BINLOG_ENABLED", - "value": "false", - "value_from": null - }, - { - "name": "SLOW_LOG_FILE", - "value": "/var/log/tidb/slowlog", - "value_from": null - }, - { - "name": "POD_NAME", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.name" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "HEADLESS_SERVICE_NAME", - "value": "test-cluster-tidb-peer", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tidb:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tidb", - "ports": [ - { - "container_port": 4000, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - }, - { - "container_port": 10080, - "host_ip": null, - "host_port": null, - "name": "status", - "protocol": "TCP" - } - ], - "readiness_probe": { - "_exec": null, - "failure_threshold": 3, - "http_get": null, - "initial_delay_seconds": 10, - "period_seconds": 10, - "success_threshold": 1, - "tcp_socket": { - "host": null, - "port": 4000 - }, - "termination_grace_period_seconds": null, - "timeout_seconds": 1 - }, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/tidb", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/log/tidb", - "mount_propagation": null, - "name": "slowlog", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": null, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": null, - "image_pull_secrets": null, - "init_containers": null, - "node_name": null, - "node_selector": null, - "overhead": null, - "preemption_policy": null, - "priority": null, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": null, - "service_account_name": null, - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": null, - "termination_grace_period_seconds": 30, - "tolerations": null, - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "tidb.toml" - } - ], - "name": "test-cluster-tidb-6662316", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "tidb_start_script.sh" - } - ], - "name": "test-cluster-tidb-6662316", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": { - "medium": null, - "size_limit": null - }, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "slowlog", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - } - }, - "update_strategy": { - "rolling_update": { - "partition": 3 - }, - "type": "RollingUpdate" - }, - "volume_claim_templates": null - }, - "status": { - "collision_count": 0, - "conditions": null, - "current_replicas": 3, - "current_revision": "test-cluster-tidb-788bdc6cfc", - "observed_generation": 1, - "ready_replicas": 3, - "replicas": 3, - "update_revision": "test-cluster-tidb-788bdc6cfc", - "updated_replicas": 3 - } - }, - "test-cluster-tikv": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pingcap.com/last-applied-configuration": "{\"replicas\":3,\"selector\":{\"matchLabels\":{\"app.kubernetes.io/component\":\"tikv\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"}},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"app.kubernetes.io/component\":\"tikv\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"},\"annotations\":{\"prometheus.io/path\":\"/metrics\",\"prometheus.io/port\":\"20180\",\"prometheus.io/scrape\":\"true\"}},\"spec\":{\"volumes\":[{\"name\":\"annotations\",\"downwardAPI\":{\"items\":[{\"path\":\"annotations\",\"fieldRef\":{\"fieldPath\":\"metadata.annotations\"}}]}},{\"name\":\"config\",\"configMap\":{\"name\":\"test-cluster-tikv-3831336\",\"items\":[{\"key\":\"config-file\",\"path\":\"tikv.toml\"}]}},{\"name\":\"startup-script\",\"configMap\":{\"name\":\"test-cluster-tikv-3831336\",\"items\":[{\"key\":\"startup-script\",\"path\":\"tikv_start_script.sh\"}]}}],\"containers\":[{\"name\":\"tikv\",\"image\":\"pingcap/tikv:v5.4.0\",\"command\":[\"/bin/sh\",\"/usr/local/bin/tikv_start_script.sh\"],\"ports\":[{\"name\":\"server\",\"containerPort\":20160,\"protocol\":\"TCP\"}],\"env\":[{\"name\":\"NAMESPACE\",\"valueFrom\":{\"fieldRef\":{\"fieldPath\":\"metadata.namespace\"}}},{\"name\":\"CLUSTER_NAME\",\"value\":\"test-cluster\"},{\"name\":\"HEADLESS_SERVICE_NAME\",\"value\":\"test-cluster-tikv-peer\"},{\"name\":\"CAPACITY\",\"value\":\"0\"},{\"name\":\"TZ\",\"value\":\"UTC\"}],\"resources\":{},\"volumeMounts\":[{\"name\":\"annotations\",\"readOnly\":true,\"mountPath\":\"/etc/podinfo\"},{\"name\":\"tikv\",\"mountPath\":\"/var/lib/tikv\"},{\"name\":\"config\",\"readOnly\":true,\"mountPath\":\"/etc/tikv\"},{\"name\":\"startup-script\",\"readOnly\":true,\"mountPath\":\"/usr/local/bin\"}],\"imagePullPolicy\":\"IfNotPresent\",\"securityContext\":{\"privileged\":false}}],\"restartPolicy\":\"Always\",\"dnsPolicy\":\"ClusterFirst\"}},\"volumeClaimTemplates\":[{\"metadata\":{\"name\":\"tikv\",\"creationTimestamp\":null},\"spec\":{\"accessModes\":[\"ReadWriteOnce\"],\"resources\":{\"requests\":{\"storage\":\"100Gi\"}}},\"status\":{}}],\"serviceName\":\"test-cluster-tikv-peer\",\"podManagementPolicy\":\"Parallel\",\"updateStrategy\":{\"type\":\"RollingUpdate\",\"rollingUpdate\":{\"partition\":3}}}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:02+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": 1, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": [ - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:podManagementPolicy": {}, - "f:replicas": {}, - "f:revisionHistoryLimit": {}, - "f:selector": {}, - "f:serviceName": {}, - "f:template": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"tikv\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"CAPACITY\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"CLUSTER_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"HEADLESS_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":20160,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:securityContext": { - ".": {}, - "f:privileged": {} - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/tikv\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/lib/tikv\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "f:updateStrategy": { - "f:rollingUpdate": { - ".": {}, - "f:partition": {} - }, - "f:type": {} - }, - "f:volumeClaimTemplates": {} - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:02+00:00" - }, - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:availableReplicas": {}, - "f:collisionCount": {}, - "f:currentReplicas": {}, - "f:currentRevision": {}, - "f:observedGeneration": {}, - "f:readyReplicas": {}, - "f:replicas": {}, - "f:updateRevision": {}, - "f:updatedReplicas": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:07+00:00" - } - ], - "name": "test-cluster-tikv", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "1338", - "self_link": null, - "uid": "c9579c3a-651a-47b6-ac1c-6b378836fc61" - }, - "spec": { - "pod_management_policy": "Parallel", - "replicas": 3, - "revision_history_limit": 10, - "selector": { - "match_expressions": null, - "match_labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - } - }, - "service_name": "test-cluster-tikv-peer", - "template": { - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "20180", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": null, - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": null, - "name": null, - "namespace": null, - "owner_references": null, - "resource_version": null, - "self_link": null, - "uid": null - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/tikv_start_script.sh" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "CLUSTER_NAME", - "value": "test-cluster", - "value_from": null - }, - { - "name": "HEADLESS_SERVICE_NAME", - "value": "test-cluster-tikv-peer", - "value_from": null - }, - { - "name": "CAPACITY", - "value": "0", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tikv:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tikv", - "ports": [ - { - "container_port": 20160, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": { - "allow_privilege_escalation": null, - "capabilities": null, - "privileged": false, - "proc_mount": null, - "read_only_root_filesystem": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "windows_options": null - }, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/lib/tikv", - "mount_propagation": null, - "name": "tikv", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/tikv", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": null, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": null, - "image_pull_secrets": null, - "init_containers": null, - "node_name": null, - "node_selector": null, - "overhead": null, - "preemption_policy": null, - "priority": null, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": null, - "service_account_name": null, - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": null, - "termination_grace_period_seconds": 30, - "tolerations": null, - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "tikv.toml" - } - ], - "name": "test-cluster-tikv-3831336", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "tikv_start_script.sh" - } - ], - "name": "test-cluster-tikv-3831336", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - } - }, - "update_strategy": { - "rolling_update": { - "partition": 3 - }, - "type": "RollingUpdate" - }, - "volume_claim_templates": [ - { - "api_version": "v1", - "kind": "PersistentVolumeClaim", - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": null, - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": null, - "managed_fields": null, - "name": "tikv", - "namespace": null, - "owner_references": null, - "resource_version": null, - "self_link": null, - "uid": null - }, - "spec": { - "access_modes": [ - "ReadWriteOnce" - ], - "data_source": null, - "resources": { - "limits": null, - "requests": { - "storage": "100Gi" - } - }, - "selector": null, - "storage_class_name": null, - "volume_mode": "Filesystem", - "volume_name": null - }, - "status": { - "access_modes": null, - "capacity": null, - "conditions": null, - "phase": "Pending" - } - } - ] - }, - "status": { - "collision_count": 0, - "conditions": null, - "current_replicas": 3, - "current_revision": "test-cluster-tikv-5bcd5ddcc", - "observed_generation": 1, - "ready_replicas": 3, - "replicas": 3, - "update_revision": "test-cluster-tikv-5bcd5ddcc", - "updated_replicas": 3 - } - } - }, - "deployment": { - "test-cluster-discovery": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "deployment.kubernetes.io/revision": "1", - "pingcap.com/last-applied-configuration": "{\"containers\":[{\"name\":\"discovery\",\"image\":\"pingcap/tidb-operator:v1.3.2\",\"command\":[\"/usr/local/bin/tidb-discovery\"],\"ports\":[{\"name\":\"discovery\",\"containerPort\":10261,\"protocol\":\"TCP\"},{\"name\":\"proxy\",\"containerPort\":10262,\"protocol\":\"TCP\"}],\"env\":[{\"name\":\"MY_POD_NAMESPACE\",\"valueFrom\":{\"fieldRef\":{\"fieldPath\":\"metadata.namespace\"}}},{\"name\":\"TZ\",\"value\":\"UTC\"},{\"name\":\"TC_NAME\",\"value\":\"test-cluster\"}],\"resources\":{},\"imagePullPolicy\":\"IfNotPresent\"}],\"restartPolicy\":\"Always\",\"dnsPolicy\":\"ClusterFirst\",\"serviceAccountName\":\"test-cluster-discovery\"}", - "pingcap.com/last-applied-podtemplate": "{\"containers\":[{\"name\":\"discovery\",\"image\":\"pingcap/tidb-operator:v1.3.2\",\"command\":[\"/usr/local/bin/tidb-discovery\"],\"ports\":[{\"name\":\"discovery\",\"containerPort\":10261,\"protocol\":\"TCP\"},{\"name\":\"proxy\",\"containerPort\":10262,\"protocol\":\"TCP\"}],\"env\":[{\"name\":\"MY_POD_NAMESPACE\",\"valueFrom\":{\"fieldRef\":{\"fieldPath\":\"metadata.namespace\"}}},{\"name\":\"TZ\",\"value\":\"UTC\"},{\"name\":\"TC_NAME\",\"value\":\"test-cluster\"}],\"resources\":{},\"imagePullPolicy\":\"IfNotPresent\"}],\"restartPolicy\":\"Always\",\"dnsPolicy\":\"ClusterFirst\",\"serviceAccountName\":\"test-cluster-discovery\"}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": 2, - "labels": { - "app.kubernetes.io/component": "discovery", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": [ - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {}, - "f:pingcap.com/last-applied-podtemplate": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:progressDeadlineSeconds": {}, - "f:replicas": {}, - "f:revisionHistoryLimit": {}, - "f:selector": {}, - "f:strategy": { - "f:type": {} - }, - "f:template": { - "f:metadata": { - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"discovery\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"MY_POD_NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"TC_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":10261,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":10262,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {} - } - }, - "f:dnsPolicy": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:serviceAccount": {}, - "f:serviceAccountName": {}, - "f:terminationGracePeriodSeconds": {} - } - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - }, - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:availableReplicas": {}, - "f:conditions": { - "k:{\"type\":\"Available\"}": { - "f:lastTransitionTime": {}, - "f:lastUpdateTime": {}, - "f:message": {}, - "f:reason": {}, - "f:status": {} - }, - "k:{\"type\":\"Progressing\"}": { - "f:lastUpdateTime": {}, - "f:message": {}, - "f:reason": {} - } - }, - "f:readyReplicas": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:35+00:00" - } - ], - "name": "test-cluster-discovery", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "1104", - "self_link": null, - "uid": "c50bb6e3-99a2-4835-99a0-2965f8905163" - }, - "spec": { - "min_ready_seconds": null, - "paused": null, - "progress_deadline_seconds": 600, - "replicas": 1, - "revision_history_limit": 10, - "selector": { - "match_expressions": null, - "match_labels": { - "app.kubernetes.io/component": "discovery", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - } - }, - "strategy": { - "rolling_update": null, - "type": "Recreate" - }, - "template": { - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": null, - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "discovery", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": null, - "name": null, - "namespace": null, - "owner_references": null, - "resource_version": null, - "self_link": null, - "uid": null - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/usr/local/bin/tidb-discovery" - ], - "env": [ - { - "name": "MY_POD_NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - }, - { - "name": "TC_NAME", - "value": "test-cluster", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tidb-operator:v1.3.2", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "discovery", - "ports": [ - { - "container_port": 10261, - "host_ip": null, - "host_port": null, - "name": "discovery", - "protocol": "TCP" - }, - { - "container_port": 10262, - "host_ip": null, - "host_port": null, - "name": "proxy", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": null, - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": null, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": null, - "image_pull_secrets": null, - "init_containers": null, - "node_name": null, - "node_selector": null, - "overhead": null, - "preemption_policy": null, - "priority": null, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "test-cluster-discovery", - "service_account_name": "test-cluster-discovery", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": null, - "termination_grace_period_seconds": 30, - "tolerations": null, - "topology_spread_constraints": null, - "volumes": null - } - } - }, - "status": { - "available_replicas": 1, - "collision_count": null, - "conditions": [ - { - "last_transition_time": "2022-07-16T04:04:35+00:00", - "last_update_time": "2022-07-16T04:04:35+00:00", - "message": "Deployment has minimum availability.", - "reason": "MinimumReplicasAvailable", - "status": "True", - "type": "Available" - }, - { - "last_transition_time": "2022-07-16T04:04:34+00:00", - "last_update_time": "2022-07-16T04:04:35+00:00", - "message": "ReplicaSet \"test-cluster-discovery-779bb58fc7\" has successfully progressed.", - "reason": "NewReplicaSetAvailable", - "status": "True", - "type": "Progressing" - } - ], - "observed_generation": 2, - "ready_replicas": 1, - "replicas": 1, - "unavailable_replicas": null, - "updated_replicas": 1 - } - }, - "tidb-controller-manager": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "deployment.kubernetes.io/revision": "2", - "meta.helm.sh/release-name": "acto-test-operator", - "meta.helm.sh/release-namespace": "acto-namespace" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:31+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": 2, - "labels": { - "acto/tag": "operator-deployment", - "app.kubernetes.io/component": "controller-manager", - "app.kubernetes.io/instance": "acto-test-operator", - "app.kubernetes.io/managed-by": "Helm", - "app.kubernetes.io/name": "tidb-operator", - "helm.sh/chart": "tidb-operator-v1-canary" - }, - "managed_fields": [ - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:meta.helm.sh/release-name": {}, - "f:meta.helm.sh/release-namespace": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:helm.sh/chart": {} - } - }, - "f:spec": { - "f:progressDeadlineSeconds": {}, - "f:replicas": {}, - "f:revisionHistoryLimit": {}, - "f:selector": {}, - "f:strategy": { - "f:rollingUpdate": { - ".": {}, - "f:maxSurge": {}, - "f:maxUnavailable": {} - }, - "f:type": {} - }, - "f:template": { - "f:metadata": { - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/name": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"tidb-operator\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:livenessProbe": { - ".": {}, - "f:failureThreshold": {}, - "f:initialDelaySeconds": {}, - "f:periodSeconds": {}, - "f:successThreshold": {}, - "f:tcpSocket": { - ".": {}, - "f:port": {} - }, - "f:timeoutSeconds": {} - }, - "f:name": {}, - "f:resources": { - ".": {}, - "f:requests": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - } - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {} - } - }, - "f:dnsPolicy": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:serviceAccount": {}, - "f:serviceAccountName": {}, - "f:terminationGracePeriodSeconds": {} - } - } - } - }, - "manager": "helm", - "operation": "Update", - "time": "2022-07-16T04:04:31+00:00" - }, - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:acto/tag": {} - } - }, - "f:spec": { - "f:template": { - "f:metadata": { - "f:labels": { - "f:acto/tag": {} - } - } - } - } - }, - "manager": "OpenAPI-Generator", - "operation": "Update", - "time": "2022-07-16T04:04:33+00:00" - }, - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - "f:deployment.kubernetes.io/revision": {} - } - }, - "f:status": { - "f:availableReplicas": {}, - "f:conditions": { - ".": {}, - "k:{\"type\":\"Available\"}": { - ".": {}, - "f:lastTransitionTime": {}, - "f:lastUpdateTime": {}, - "f:message": {}, - "f:reason": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Progressing\"}": { - ".": {}, - "f:lastTransitionTime": {}, - "f:lastUpdateTime": {}, - "f:message": {}, - "f:reason": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:observedGeneration": {}, - "f:readyReplicas": {}, - "f:replicas": {}, - "f:updatedReplicas": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - } - ], - "name": "tidb-controller-manager", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "954", - "self_link": null, - "uid": "5f171b18-e28a-4ed1-9047-2e9a8a1820bc" - }, - "spec": { - "min_ready_seconds": null, - "paused": null, - "progress_deadline_seconds": 600, - "replicas": 1, - "revision_history_limit": 10, - "selector": { - "match_expressions": null, - "match_labels": { - "app.kubernetes.io/component": "controller-manager", - "app.kubernetes.io/instance": "acto-test-operator", - "app.kubernetes.io/name": "tidb-operator" - } - }, - "strategy": { - "rolling_update": { - "max_surge": "25%", - "max_unavailable": "25%" - }, - "type": "RollingUpdate" - }, - "template": { - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": null, - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "acto/tag": "operator-pod", - "app.kubernetes.io/component": "controller-manager", - "app.kubernetes.io/instance": "acto-test-operator", - "app.kubernetes.io/name": "tidb-operator" - }, - "managed_fields": null, - "name": null, - "namespace": null, - "owner_references": null, - "resource_version": null, - "self_link": null, - "uid": null - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/usr/local/bin/tidb-controller-manager", - "-tidb-backup-manager-image=pingcap/tidb-backup-manager:v1.3.2", - "-tidb-discovery-image=pingcap/tidb-operator:v1.3.2", - "-cluster-scoped=true", - "-cluster-permission-node=true", - "-cluster-permission-pv=true", - "-cluster-permission-sc=true", - "-auto-failover=true", - "-pd-failover-period=5m", - "-tikv-failover-period=5m", - "-tiflash-failover-period=5m", - "-tidb-failover-period=5m", - "-dm-master-failover-period=5m", - "-dm-worker-failover-period=5m", - "-v=2" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tidb-operator:v1.3.2", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": { - "_exec": null, - "failure_threshold": 10, - "http_get": null, - "initial_delay_seconds": 30, - "period_seconds": 10, - "success_threshold": 1, - "tcp_socket": { - "host": null, - "port": 6060 - }, - "termination_grace_period_seconds": null, - "timeout_seconds": 1 - }, - "name": "tidb-operator", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": null, - "requests": { - "cpu": "80m", - "memory": "50Mi" - } - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": null, - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": null, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": null, - "image_pull_secrets": null, - "init_containers": null, - "node_name": null, - "node_selector": null, - "overhead": null, - "preemption_policy": null, - "priority": null, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "tidb-controller-manager", - "service_account_name": "tidb-controller-manager", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": null, - "termination_grace_period_seconds": 30, - "tolerations": null, - "topology_spread_constraints": null, - "volumes": null - } - } - }, - "status": { - "available_replicas": 1, - "collision_count": null, - "conditions": [ - { - "last_transition_time": "2022-07-16T04:04:32+00:00", - "last_update_time": "2022-07-16T04:04:32+00:00", - "message": "Deployment has minimum availability.", - "reason": "MinimumReplicasAvailable", - "status": "True", - "type": "Available" - }, - { - "last_transition_time": "2022-07-16T04:04:31+00:00", - "last_update_time": "2022-07-16T04:04:34+00:00", - "message": "ReplicaSet \"tidb-controller-manager-75dd8c56c9\" has successfully progressed.", - "reason": "NewReplicaSetAvailable", - "status": "True", - "type": "Progressing" - } - ], - "observed_generation": 2, - "ready_replicas": 1, - "replicas": 1, - "unavailable_replicas": null, - "updated_replicas": 1 - } - }, - "tidb-scheduler": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "deployment.kubernetes.io/revision": "2", - "meta.helm.sh/release-name": "acto-test-operator", - "meta.helm.sh/release-namespace": "acto-namespace" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:31+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": 2, - "labels": { - "acto/tag": "operator-deployment", - "app.kubernetes.io/component": "scheduler", - "app.kubernetes.io/instance": "acto-test-operator", - "app.kubernetes.io/managed-by": "Helm", - "app.kubernetes.io/name": "tidb-operator", - "helm.sh/chart": "tidb-operator-v1-canary" - }, - "managed_fields": [ - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:meta.helm.sh/release-name": {}, - "f:meta.helm.sh/release-namespace": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:helm.sh/chart": {} - } - }, - "f:spec": { - "f:progressDeadlineSeconds": {}, - "f:replicas": {}, - "f:revisionHistoryLimit": {}, - "f:selector": {}, - "f:strategy": { - "f:rollingUpdate": { - ".": {}, - "f:maxSurge": {}, - "f:maxUnavailable": {} - }, - "f:type": {} - }, - "f:template": { - "f:metadata": { - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/name": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"kube-scheduler\"}": { - ".": {}, - "f:command": {}, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:resources": { - ".": {}, - "f:limits": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - }, - "f:requests": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - } - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/kubernetes\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - }, - "k:{\"name\":\"tidb-scheduler\"}": { - ".": {}, - "f:command": {}, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:resources": { - ".": {}, - "f:limits": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - }, - "f:requests": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - } - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {} - } - }, - "f:dnsPolicy": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:serviceAccount": {}, - "f:serviceAccountName": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"scheduler-config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - } - } - }, - "manager": "helm", - "operation": "Update", - "time": "2022-07-16T04:04:31+00:00" - }, - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:acto/tag": {} - } - }, - "f:spec": { - "f:template": { - "f:metadata": { - "f:labels": { - "f:acto/tag": {} - } - } - } - } - }, - "manager": "OpenAPI-Generator", - "operation": "Update", - "time": "2022-07-16T04:04:33+00:00" - }, - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - "f:deployment.kubernetes.io/revision": {} - } - }, - "f:status": { - "f:availableReplicas": {}, - "f:conditions": { - ".": {}, - "k:{\"type\":\"Available\"}": { - ".": {}, - "f:lastTransitionTime": {}, - "f:lastUpdateTime": {}, - "f:message": {}, - "f:reason": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Progressing\"}": { - ".": {}, - "f:lastTransitionTime": {}, - "f:lastUpdateTime": {}, - "f:message": {}, - "f:reason": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:observedGeneration": {}, - "f:readyReplicas": {}, - "f:replicas": {}, - "f:updatedReplicas": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - } - ], - "name": "tidb-scheduler", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "956", - "self_link": null, - "uid": "f5bbe5d3-897d-4ecd-9da9-c3e040140850" - }, - "spec": { - "min_ready_seconds": null, - "paused": null, - "progress_deadline_seconds": 600, - "replicas": 1, - "revision_history_limit": 10, - "selector": { - "match_expressions": null, - "match_labels": { - "app.kubernetes.io/component": "scheduler", - "app.kubernetes.io/instance": "acto-test-operator", - "app.kubernetes.io/name": "tidb-operator" - } - }, - "strategy": { - "rolling_update": { - "max_surge": "25%", - "max_unavailable": "25%" - }, - "type": "RollingUpdate" - }, - "template": { - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": null, - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "acto/tag": "operator-pod", - "app.kubernetes.io/component": "scheduler", - "app.kubernetes.io/instance": "acto-test-operator", - "app.kubernetes.io/name": "tidb-operator" - }, - "managed_fields": null, - "name": null, - "namespace": null, - "owner_references": null, - "resource_version": null, - "self_link": null, - "uid": null - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/usr/local/bin/tidb-scheduler", - "-v=2", - "-port=10262" - ], - "env": null, - "env_from": null, - "image": "pingcap/tidb-operator:v1.3.2", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tidb-scheduler", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": { - "cpu": "250m", - "memory": "150Mi" - }, - "requests": { - "cpu": "80m", - "memory": "50Mi" - } - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": null, - "working_dir": null - }, - { - "args": null, - "command": [ - "kube-scheduler", - "--v=2", - "--config=/etc/kubernetes/scheduler-config.yaml" - ], - "env": null, - "env_from": null, - "image": "k8s.gcr.io/kube-scheduler:v1.22.9", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "kube-scheduler", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": { - "cpu": "250m", - "memory": "150Mi" - }, - "requests": { - "cpu": "80m", - "memory": "50Mi" - } - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/kubernetes", - "mount_propagation": null, - "name": "scheduler-config", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": null, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": null, - "image_pull_secrets": null, - "init_containers": null, - "node_name": null, - "node_selector": null, - "overhead": null, - "preemption_policy": null, - "priority": null, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "tidb-scheduler", - "service_account_name": "tidb-scheduler", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": null, - "termination_grace_period_seconds": 30, - "tolerations": null, - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": null, - "name": "tidb-scheduler-config", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "scheduler-config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - } - } - }, - "status": { - "available_replicas": 1, - "collision_count": null, - "conditions": [ - { - "last_transition_time": "2022-07-16T04:04:32+00:00", - "last_update_time": "2022-07-16T04:04:32+00:00", - "message": "Deployment has minimum availability.", - "reason": "MinimumReplicasAvailable", - "status": "True", - "type": "Available" - }, - { - "last_transition_time": "2022-07-16T04:04:31+00:00", - "last_update_time": "2022-07-16T04:04:34+00:00", - "message": "ReplicaSet \"tidb-scheduler-77fb4766d8\" has successfully progressed.", - "reason": "NewReplicaSetAvailable", - "status": "True", - "type": "Progressing" - } - ], - "observed_generation": 2, - "ready_replicas": 1, - "replicas": 1, - "unavailable_replicas": null, - "updated_replicas": 1 - } - } - }, - "config_map": { - "kube-root-ca.crt": { - "api_version": null, - "binary_data": null, - "data": { - "ca.crt": "-----BEGIN CERTIFICATE-----\nMIIC/jCCAeagAwIBAgIBADANBgkqhkiG9w0BAQsFADAVMRMwEQYDVQQDEwprdWJl\ncm5ldGVzMB4XDTIyMDcxNjA0MDMyMFoXDTMyMDcxMzA0MDMyMFowFTETMBEGA1UE\nAxMKa3ViZXJuZXRlczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL6C\nae9GQKXzRFKbNPh95mZt00AUMggGhM4S9qYhP1pI8Q04LW5jOJQOdo5cOJVRq+S0\nAN8TAnSou4VYvqQy8Fvwm/URiqYbu7xlkW/ac5u76+toZftlZK5da1C6rOmExQGd\nVV/VcuM68HAfuSUR15ZhSlSAr87lw9ubbM5suI2htqkiRvWvWEW481hOp16Gf+tL\n0eOtSqeX+rEs7u0waE9A6WVYJe3Oc7sBvn5jlg5/CmaKOPgRj5TJqNvzuKveJGOs\nWSm8TCCwscFlg2GWgcEDLFJ7I7SKiuiXNl8nB1EZMxbaZ4MLVt2hHhtvJ6eiJa1J\ni95bn6rMtEbsEYjr58UCAwEAAaNZMFcwDgYDVR0PAQH/BAQDAgKkMA8GA1UdEwEB\n/wQFMAMBAf8wHQYDVR0OBBYEFAd41tTUjV8SGxzSir2wEsfZ7VX0MBUGA1UdEQQO\nMAyCCmt1YmVybmV0ZXMwDQYJKoZIhvcNAQELBQADggEBAJG/kidbZfg92iBWSRvJ\no6k5bLlv5+powObWeaH5qSt3pZPPsYbZLvkFr6hO93XCFxy3Z+0MfEAT1kTUpT+D\nY4QuF98ZFT0gApkxklHeTl4oiU4SNw1IDpwmnaoQ4bfiZ0igjPxej6pnzw+CWkQu\ny7sRFw9xFV9YtZrTr2J/Mjlg6m8dNDbsg/mT6tAymn1nNqeXXZXlXgtKp8Y8XK1v\n6NEuLC/FphmSncLMu1CnxReLGeH1YZ78+uOnHIF/lm6HY+kprRR++FtKjvNx9IBv\nkxVXTqr6QyxHt4GTJU6EhASdqptxemEm216SDfBumadu/syRQtSK2/ZdcU1F4VM9\n8Yc=\n-----END CERTIFICATE-----\n" - }, - "immutable": null, - "kind": null, - "metadata": { - "annotations": { - "kubernetes.io/description": "Contains a CA bundle that can be used to verify the kube-apiserver when using internal endpoints such as the internal service IP or kubernetes.default.svc. No other usage is guaranteed across distributions of Kubernetes clusters." - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:31+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": null, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:data": { - ".": {}, - "f:ca.crt": {} - }, - "f:metadata": { - "f:annotations": { - ".": {}, - "f:kubernetes.io/description": {} - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:31+00:00" - } - ], - "name": "kube-root-ca.crt", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "739", - "self_link": null, - "uid": "ed3bd44f-faf1-45ee-b937-b930497ec980" - } - }, - "test-cluster-pd-3731616": { - "api_version": null, - "binary_data": null, - "data": { - "config-file": "[dashboard]\n internal-proxy = true\n", - "startup-script": "#!/bin/sh\n\n# This script is used to start pd containers in kubernetes cluster\n\n# Use DownwardAPIVolumeFiles to store informations of the cluster:\n# https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/#the-downward-api\n#\n# runmode=\"normal/debug\"\n#\n\nset -uo pipefail\n\nANNOTATIONS=\"/etc/podinfo/annotations\"\n\nif [[ ! -f \"${ANNOTATIONS}\" ]]\nthen\n echo \"${ANNOTATIONS} does't exist, exiting.\"\n exit 1\nfi\nsource ${ANNOTATIONS} 2>/dev/null\n\nrunmode=${runmode:-normal}\nif [[ X${runmode} == Xdebug ]]\nthen\n echo \"entering debug mode.\"\n tail -f /dev/null\nfi\n\n# Use HOSTNAME if POD_NAME is unset for backward compatibility.\nPOD_NAME=${POD_NAME:-$HOSTNAME}\n# the general form of variable PEER_SERVICE_NAME is: \"-pd-peer\"\ncluster_name=`echo ${PEER_SERVICE_NAME} | sed 's/-pd-peer//'`\ndomain=\"${POD_NAME}.${PEER_SERVICE_NAME}.${NAMESPACE}.svc\"\ndiscovery_url=\"${cluster_name}-discovery.${NAMESPACE}.svc:10261\"\nencoded_domain_url=`echo ${domain}:2380 | base64 | tr \"\\n\" \" \" | sed \"s/ //g\"`\nelapseTime=0\nperiod=1\nthreshold=30\nwhile true; do\nsleep ${period}\nelapseTime=$(( elapseTime+period ))\n\nif [[ ${elapseTime} -ge ${threshold} ]]\nthen\necho \"waiting for pd cluster ready timeout\" >&2\nexit 1\nfi\n\nif nslookup ${domain} 2>/dev/null\nthen\necho \"nslookup domain ${domain}.svc success\"\nbreak\nelse\necho \"nslookup domain ${domain} failed\" >&2\nfi\ndone\n\nARGS=\"--data-dir=/var/lib/pd \\\n--name=${POD_NAME} \\\n--peer-urls=http://0.0.0.0:2380 \\\n--advertise-peer-urls=http://${domain}:2380 \\\n--client-urls=http://0.0.0.0:2379 \\\n--advertise-client-urls=http://${domain}:2379 \\\n--config=/etc/pd/pd.toml \\\n\"\n\nif [[ -f /var/lib/pd/join ]]\nthen\n# The content of the join file is:\n# demo-pd-0=http://demo-pd-0.demo-pd-peer.demo.svc:2380,demo-pd-1=http://demo-pd-1.demo-pd-peer.demo.svc:2380\n# The --join args must be:\n# --join=http://demo-pd-0.demo-pd-peer.demo.svc:2380,http://demo-pd-1.demo-pd-peer.demo.svc:2380\njoin=`cat /var/lib/pd/join | tr \",\" \"\\n\" | awk -F'=' '{print $2}' | tr \"\\n\" \",\"`\njoin=${join%,}\nARGS=\"${ARGS} --join=${join}\"\nelif [[ ! -d /var/lib/pd/member/wal ]]\nthen\nuntil result=$(wget -qO- -T 3 http://${discovery_url}/new/${encoded_domain_url} 2>/dev/null); do\necho \"waiting for discovery service to return start args ...\"\nsleep $((RANDOM % 5))\ndone\nARGS=\"${ARGS}${result}\"\nfi\n\necho \"starting pd-server ...\"\nsleep $((RANDOM % 10))\necho \"/pd-server ${ARGS}\"\nexec /pd-server ${ARGS}\n" - }, - "immutable": null, - "kind": null, - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:data": { - ".": {}, - "f:config-file": {}, - "f:startup-script": {} - }, - "f:metadata": { - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - } - ], - "name": "test-cluster-pd-3731616", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "878", - "self_link": null, - "uid": "6ab1df24-1602-4e3d-9846-4d70791b58a8" - } - }, - "test-cluster-tidb-6662316": { - "api_version": null, - "binary_data": null, - "data": { - "config-file": "[log]\n [log.file]\n max-backups = 3\n\n[performance]\n tcp-keep-alive = true\n", - "startup-script": "#!/bin/sh\n\n# This script is used to start tidb containers in kubernetes cluster\n\n# Use DownwardAPIVolumeFiles to store informations of the cluster:\n# https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/#the-downward-api\n#\n# runmode=\"normal/debug\"\n#\nset -uo pipefail\n\nANNOTATIONS=\"/etc/podinfo/annotations\"\n\nif [[ ! -f \"${ANNOTATIONS}\" ]]\nthen\n echo \"${ANNOTATIONS} does't exist, exiting.\"\n exit 1\nfi\nsource ${ANNOTATIONS} 2>/dev/null\nrunmode=${runmode:-normal}\nif [[ X${runmode} == Xdebug ]]\nthen\n echo \"entering debug mode.\"\n tail -f /dev/null\nfi\n\n# Use HOSTNAME if POD_NAME is unset for backward compatibility.\nPOD_NAME=${POD_NAME:-$HOSTNAME}\nARGS=\"--store=tikv \\\n--advertise-address=${POD_NAME}.${HEADLESS_SERVICE_NAME}.${NAMESPACE}.svc \\\n--host=0.0.0.0 \\\n--path=${CLUSTER_NAME}-pd:2379 \\\n--config=/etc/tidb/tidb.toml\n\"\n\nif [[ X${BINLOG_ENABLED:-} == Xtrue ]]\nthen\n ARGS=\"${ARGS} --enable-binlog=true\"\nfi\n\nSLOW_LOG_FILE=${SLOW_LOG_FILE:-\"\"}\nif [[ ! -z \"${SLOW_LOG_FILE}\" ]]\nthen\n ARGS=\"${ARGS} --log-slow-query=${SLOW_LOG_FILE:-}\"\nfi\n\necho \"start tidb-server ...\"\necho \"/tidb-server ${ARGS}\"\nexec /tidb-server ${ARGS}\n" - }, - "immutable": null, - "kind": null, - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:21+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:data": { - ".": {}, - "f:config-file": {}, - "f:startup-script": {} - }, - "f:metadata": { - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:21+00:00" - } - ], - "name": "test-cluster-tidb-6662316", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "1402", - "self_link": null, - "uid": "55759e32-c6e7-40ae-85f5-70e4756dc853" - } - }, - "test-cluster-tikv-3831336": { - "api_version": null, - "binary_data": null, - "data": { - "config-file": "log-level = \"info\"\n", - "startup-script": "#!/bin/sh\n\n# This script is used to start tikv containers in kubernetes cluster\n\n# Use DownwardAPIVolumeFiles to store informations of the cluster:\n# https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/#the-downward-api\n#\n# runmode=\"normal/debug\"\n#\n\nset -uo pipefail\n\nANNOTATIONS=\"/etc/podinfo/annotations\"\n\nif [[ ! -f \"${ANNOTATIONS}\" ]]\nthen\n echo \"${ANNOTATIONS} does't exist, exiting.\"\n exit 1\nfi\nsource ${ANNOTATIONS} 2>/dev/null\n\nrunmode=${runmode:-normal}\nif [[ X${runmode} == Xdebug ]]\nthen\n\techo \"entering debug mode.\"\n\ttail -f /dev/null\nfi\n\n# Use HOSTNAME if POD_NAME is unset for backward compatibility.\nPOD_NAME=${POD_NAME:-$HOSTNAME}\nARGS=\"--pd=http://${CLUSTER_NAME}-pd:2379 \\\n--advertise-addr=${POD_NAME}.${HEADLESS_SERVICE_NAME}.${NAMESPACE}.svc:20160 \\\n--addr=0.0.0.0:20160 \\\n--status-addr=0.0.0.0:20180 \\\n--advertise-status-addr=${POD_NAME}.${HEADLESS_SERVICE_NAME}.${NAMESPACE}.svc:20180 \\\n--data-dir=/var/lib/tikv \\\n--capacity=${CAPACITY} \\\n--config=/etc/tikv/tikv.toml\n\"\n\nif [ ! -z \"${STORE_LABELS:-}\" ]; then\n LABELS=\" --labels ${STORE_LABELS} \"\n ARGS=\"${ARGS}${LABELS}\"\nfi\n\necho \"starting tikv-server ...\"\necho \"/tikv-server ${ARGS}\"\nexec /tikv-server ${ARGS}\n" - }, - "immutable": null, - "kind": null, - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:02+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:data": { - ".": {}, - "f:config-file": {}, - "f:startup-script": {} - }, - "f:metadata": { - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:02+00:00" - } - ], - "name": "test-cluster-tikv-3831336", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "1151", - "self_link": null, - "uid": "8126a0ba-d423-4bab-81ba-8e78a31cd0fc" - } - }, - "tidb-scheduler-config": { - "api_version": null, - "binary_data": null, - "data": { - "scheduler-config.yaml": "\napiVersion: kubescheduler.config.k8s.io/v1beta1\nkind: KubeSchedulerConfiguration\nleaderElection:\n leaderElect: true\n resourceNamespace: acto-namespace\n resourceName: tidb-scheduler\nhealthzBindAddress: 0.0.0.0:10261\nmetricsBindAddress: 0.0.0.0:10261\nprofiles:\n - schedulerName: tidb-scheduler\nextenders:\n - urlPrefix: http://127.0.0.1:10262/scheduler\n filterVerb: filter\n preemptVerb: preempt\n weight: 1\n enableHTTPS: false\n httpTimeout: 30s" - }, - "immutable": null, - "kind": null, - "metadata": { - "annotations": { - "meta.helm.sh/release-name": "acto-test-operator", - "meta.helm.sh/release-namespace": "acto-namespace" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:31+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "scheduler", - "app.kubernetes.io/instance": "acto-test-operator", - "app.kubernetes.io/managed-by": "Helm", - "app.kubernetes.io/name": "tidb-operator", - "helm.sh/chart": "tidb-operator-v1-canary" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:data": { - ".": {}, - "f:scheduler-config.yaml": {} - }, - "f:metadata": { - "f:annotations": { - ".": {}, - "f:meta.helm.sh/release-name": {}, - "f:meta.helm.sh/release-namespace": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:helm.sh/chart": {} - } - } - }, - "manager": "helm", - "operation": "Update", - "time": "2022-07-16T04:04:31+00:00" - } - ], - "name": "tidb-scheduler-config", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "751", - "self_link": null, - "uid": "f906e4c0-a032-4f50-b412-7405cdcad70f" - } - } - }, - "service": { - "test-cluster-discovery": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pingcap.com/last-applied-configuration": "{\"ports\":[{\"name\":\"discovery\",\"protocol\":\"TCP\",\"port\":10261,\"targetPort\":10261},{\"name\":\"proxy\",\"protocol\":\"TCP\",\"port\":10262,\"targetPort\":10262}],\"selector\":{\"app.kubernetes.io/component\":\"discovery\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"},\"type\":\"ClusterIP\"}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "discovery", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:internalTrafficPolicy": {}, - "f:ports": { - ".": {}, - "k:{\"port\":10261,\"protocol\":\"TCP\"}": { - ".": {}, - "f:name": {}, - "f:port": {}, - "f:protocol": {}, - "f:targetPort": {} - }, - "k:{\"port\":10262,\"protocol\":\"TCP\"}": { - ".": {}, - "f:name": {}, - "f:port": {}, - "f:protocol": {}, - "f:targetPort": {} - } - }, - "f:selector": {}, - "f:sessionAffinity": {}, - "f:type": {} - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - } - ], - "name": "test-cluster-discovery", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "928", - "self_link": null, - "uid": "96e08973-aa7f-470b-bce0-4880f8c5bede" - }, - "spec": { - "allocate_load_balancer_node_ports": null, - "cluster_ip": "10.96.223.225", - "cluster_i_ps": [ - "10.96.223.225" - ], - "external_i_ps": null, - "external_name": null, - "external_traffic_policy": null, - "health_check_node_port": null, - "internal_traffic_policy": "Cluster", - "ip_families": [ - "IPv4" - ], - "ip_family_policy": "SingleStack", - "load_balancer_class": null, - "load_balancer_ip": null, - "load_balancer_source_ranges": null, - "ports": [ - { - "app_protocol": null, - "name": "discovery", - "node_port": null, - "port": 10261, - "protocol": "TCP", - "target_port": 10261 - }, - { - "app_protocol": null, - "name": "proxy", - "node_port": null, - "port": 10262, - "protocol": "TCP", - "target_port": 10262 - } - ], - "publish_not_ready_addresses": null, - "selector": { - "app.kubernetes.io/component": "discovery", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "session_affinity": "None", - "session_affinity_config": null, - "topology_keys": null, - "type": "ClusterIP" - }, - "status": { - "conditions": null, - "load_balancer": { - "ingress": null - } - } - }, - "test-cluster-pd": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pingcap.com/last-applied-configuration": "{\"ports\":[{\"name\":\"client\",\"protocol\":\"TCP\",\"port\":2379,\"targetPort\":2379}],\"selector\":{\"app.kubernetes.io/component\":\"pd\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"},\"type\":\"ClusterIP\"}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "app.kubernetes.io/used-by": "end-user" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:app.kubernetes.io/used-by": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:internalTrafficPolicy": {}, - "f:ports": { - ".": {}, - "k:{\"port\":2379,\"protocol\":\"TCP\"}": { - ".": {}, - "f:name": {}, - "f:port": {}, - "f:protocol": {}, - "f:targetPort": {} - } - }, - "f:selector": {}, - "f:sessionAffinity": {}, - "f:type": {} - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - } - ], - "name": "test-cluster-pd", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "869", - "self_link": null, - "uid": "6298e381-3d22-484d-82fd-97ddc8b64d69" - }, - "spec": { - "allocate_load_balancer_node_ports": null, - "cluster_ip": "10.96.66.106", - "cluster_i_ps": [ - "10.96.66.106" - ], - "external_i_ps": null, - "external_name": null, - "external_traffic_policy": null, - "health_check_node_port": null, - "internal_traffic_policy": "Cluster", - "ip_families": [ - "IPv4" - ], - "ip_family_policy": "SingleStack", - "load_balancer_class": null, - "load_balancer_ip": null, - "load_balancer_source_ranges": null, - "ports": [ - { - "app_protocol": null, - "name": "client", - "node_port": null, - "port": 2379, - "protocol": "TCP", - "target_port": 2379 - } - ], - "publish_not_ready_addresses": null, - "selector": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "session_affinity": "None", - "session_affinity_config": null, - "topology_keys": null, - "type": "ClusterIP" - }, - "status": { - "conditions": null, - "load_balancer": { - "ingress": null - } - } - }, - "test-cluster-pd-peer": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pingcap.com/last-applied-configuration": "{\"ports\":[{\"name\":\"tcp-peer-2380\",\"protocol\":\"TCP\",\"port\":2380,\"targetPort\":2380},{\"name\":\"tcp-peer-2379\",\"protocol\":\"TCP\",\"port\":2379,\"targetPort\":2379}],\"selector\":{\"app.kubernetes.io/component\":\"pd\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"},\"clusterIP\":\"None\",\"publishNotReadyAddresses\":true}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "app.kubernetes.io/used-by": "peer" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:app.kubernetes.io/used-by": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:clusterIP": {}, - "f:internalTrafficPolicy": {}, - "f:ports": { - ".": {}, - "k:{\"port\":2379,\"protocol\":\"TCP\"}": { - ".": {}, - "f:name": {}, - "f:port": {}, - "f:protocol": {}, - "f:targetPort": {} - }, - "k:{\"port\":2380,\"protocol\":\"TCP\"}": { - ".": {}, - "f:name": {}, - "f:port": {}, - "f:protocol": {}, - "f:targetPort": {} - } - }, - "f:publishNotReadyAddresses": {}, - "f:selector": {}, - "f:sessionAffinity": {}, - "f:type": {} - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - } - ], - "name": "test-cluster-pd-peer", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "873", - "self_link": null, - "uid": "e05712e0-1a28-4672-b0bf-155a8833eabc" - }, - "spec": { - "allocate_load_balancer_node_ports": null, - "cluster_ip": "None", - "cluster_i_ps": [ - "None" - ], - "external_i_ps": null, - "external_name": null, - "external_traffic_policy": null, - "health_check_node_port": null, - "internal_traffic_policy": "Cluster", - "ip_families": [ - "IPv4" - ], - "ip_family_policy": "SingleStack", - "load_balancer_class": null, - "load_balancer_ip": null, - "load_balancer_source_ranges": null, - "ports": [ - { - "app_protocol": null, - "name": "tcp-peer-2380", - "node_port": null, - "port": 2380, - "protocol": "TCP", - "target_port": 2380 - }, - { - "app_protocol": null, - "name": "tcp-peer-2379", - "node_port": null, - "port": 2379, - "protocol": "TCP", - "target_port": 2379 - } - ], - "publish_not_ready_addresses": true, - "selector": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "session_affinity": "None", - "session_affinity_config": null, - "topology_keys": null, - "type": "ClusterIP" - }, - "status": { - "conditions": null, - "load_balancer": { - "ingress": null - } - } - }, - "test-cluster-tidb": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pingcap.com/last-applied-configuration": "{\"ports\":[{\"name\":\"mysql-client\",\"protocol\":\"TCP\",\"port\":4000,\"targetPort\":4000,\"nodePort\":30071},{\"name\":\"status\",\"protocol\":\"TCP\",\"port\":10080,\"targetPort\":10080,\"nodePort\":32223}],\"selector\":{\"app.kubernetes.io/component\":\"tidb\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"},\"type\":\"NodePort\",\"externalTrafficPolicy\":\"Local\"}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:21+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "app.kubernetes.io/used-by": "end-user" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:app.kubernetes.io/used-by": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:externalTrafficPolicy": {}, - "f:internalTrafficPolicy": {}, - "f:ports": { - ".": {}, - "k:{\"port\":4000,\"protocol\":\"TCP\"}": { - ".": {}, - "f:name": {}, - "f:port": {}, - "f:protocol": {}, - "f:targetPort": {} - }, - "k:{\"port\":10080,\"protocol\":\"TCP\"}": { - ".": {}, - "f:name": {}, - "f:port": {}, - "f:protocol": {}, - "f:targetPort": {} - } - }, - "f:selector": {}, - "f:sessionAffinity": {}, - "f:type": {} - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:21+00:00" - } - ], - "name": "test-cluster-tidb", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "1495", - "self_link": null, - "uid": "0125987a-daf2-4770-820b-b02387798dac" - }, - "spec": { - "allocate_load_balancer_node_ports": null, - "cluster_ip": "10.96.215.233", - "cluster_i_ps": [ - "10.96.215.233" - ], - "external_i_ps": null, - "external_name": null, - "external_traffic_policy": "Local", - "health_check_node_port": null, - "internal_traffic_policy": "Cluster", - "ip_families": [ - "IPv4" - ], - "ip_family_policy": "SingleStack", - "load_balancer_class": null, - "load_balancer_ip": null, - "load_balancer_source_ranges": null, - "ports": [ - { - "app_protocol": null, - "name": "mysql-client", - "node_port": 30071, - "port": 4000, - "protocol": "TCP", - "target_port": 4000 - }, - { - "app_protocol": null, - "name": "status", - "node_port": 32223, - "port": 10080, - "protocol": "TCP", - "target_port": 10080 - } - ], - "publish_not_ready_addresses": null, - "selector": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "session_affinity": "None", - "session_affinity_config": null, - "topology_keys": null, - "type": "NodePort" - }, - "status": { - "conditions": null, - "load_balancer": { - "ingress": null - } - } - }, - "test-cluster-tidb-peer": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pingcap.com/last-applied-configuration": "{\"ports\":[{\"name\":\"status\",\"protocol\":\"TCP\",\"port\":10080,\"targetPort\":10080}],\"selector\":{\"app.kubernetes.io/component\":\"tidb\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"},\"clusterIP\":\"None\",\"publishNotReadyAddresses\":true}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:21+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "app.kubernetes.io/used-by": "peer" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:app.kubernetes.io/used-by": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:clusterIP": {}, - "f:internalTrafficPolicy": {}, - "f:ports": { - ".": {}, - "k:{\"port\":10080,\"protocol\":\"TCP\"}": { - ".": {}, - "f:name": {}, - "f:port": {}, - "f:protocol": {}, - "f:targetPort": {} - } - }, - "f:publishNotReadyAddresses": {}, - "f:selector": {}, - "f:sessionAffinity": {}, - "f:type": {} - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:21+00:00" - } - ], - "name": "test-cluster-tidb-peer", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "1395", - "self_link": null, - "uid": "18491336-1753-4300-ab09-6cdaedda382d" - }, - "spec": { - "allocate_load_balancer_node_ports": null, - "cluster_ip": "None", - "cluster_i_ps": [ - "None" - ], - "external_i_ps": null, - "external_name": null, - "external_traffic_policy": null, - "health_check_node_port": null, - "internal_traffic_policy": "Cluster", - "ip_families": [ - "IPv4" - ], - "ip_family_policy": "SingleStack", - "load_balancer_class": null, - "load_balancer_ip": null, - "load_balancer_source_ranges": null, - "ports": [ - { - "app_protocol": null, - "name": "status", - "node_port": null, - "port": 10080, - "protocol": "TCP", - "target_port": 10080 - } - ], - "publish_not_ready_addresses": true, - "selector": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "session_affinity": "None", - "session_affinity_config": null, - "topology_keys": null, - "type": "ClusterIP" - }, - "status": { - "conditions": null, - "load_balancer": { - "ingress": null - } - } - }, - "test-cluster-tikv-peer": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pingcap.com/last-applied-configuration": "{\"ports\":[{\"name\":\"peer\",\"protocol\":\"TCP\",\"port\":20160,\"targetPort\":20160}],\"selector\":{\"app.kubernetes.io/component\":\"tikv\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"},\"clusterIP\":\"None\",\"publishNotReadyAddresses\":true}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:02+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "app.kubernetes.io/used-by": "peer" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:app.kubernetes.io/used-by": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:clusterIP": {}, - "f:internalTrafficPolicy": {}, - "f:ports": { - ".": {}, - "k:{\"port\":20160,\"protocol\":\"TCP\"}": { - ".": {}, - "f:name": {}, - "f:port": {}, - "f:protocol": {}, - "f:targetPort": {} - } - }, - "f:publishNotReadyAddresses": {}, - "f:selector": {}, - "f:sessionAffinity": {}, - "f:type": {} - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:02+00:00" - } - ], - "name": "test-cluster-tikv-peer", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "1149", - "self_link": null, - "uid": "09883ba0-1719-47e9-ba5a-691cf60af58e" - }, - "spec": { - "allocate_load_balancer_node_ports": null, - "cluster_ip": "None", - "cluster_i_ps": [ - "None" - ], - "external_i_ps": null, - "external_name": null, - "external_traffic_policy": null, - "health_check_node_port": null, - "internal_traffic_policy": "Cluster", - "ip_families": [ - "IPv4" - ], - "ip_family_policy": "SingleStack", - "load_balancer_class": null, - "load_balancer_ip": null, - "load_balancer_source_ranges": null, - "ports": [ - { - "app_protocol": null, - "name": "peer", - "node_port": null, - "port": 20160, - "protocol": "TCP", - "target_port": 20160 - } - ], - "publish_not_ready_addresses": true, - "selector": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "session_affinity": "None", - "session_affinity_config": null, - "topology_keys": null, - "type": "ClusterIP" - }, - "status": { - "conditions": null, - "load_balancer": { - "ingress": null - } - } - } - }, - "pvc": { - "pd-test-cluster-pd-0": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pv.kubernetes.io/bind-completed": "yes", - "pv.kubernetes.io/bound-by-controller": "yes", - "tidb.pingcap.com/pod-name": "test-cluster-pd-0", - "volume.beta.kubernetes.io/storage-provisioner": "rancher.io/local-path", - "volume.kubernetes.io/selected-node": "acto-cluster-0-worker3" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": [ - "kubernetes.io/pvc-protection" - ], - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/member-id": "5292350542734693704", - "tidb.pingcap.com/pod-name": "test-cluster-pd-0" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:volume.kubernetes.io/selected-node": {} - } - } - }, - "manager": "kube-scheduler", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:accessModes": {}, - "f:capacity": { - ".": {}, - "f:storage": {} - }, - "f:phase": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:39+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - "f:tidb.pingcap.com/pod-name": {} - }, - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/member-id": {}, - "f:tidb.pingcap.com/pod-name": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:23+00:00" - } - ], - "name": "pd-test-cluster-pd-0", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "1467", - "self_link": null, - "uid": "c79c0c4e-cabc-486a-adf0-b2bbdb39bab1" - }, - "spec": { - "access_modes": [ - "ReadWriteOnce" - ], - "data_source": null, - "resources": { - "limits": null, - "requests": { - "storage": "10Gi" - } - }, - "selector": null, - "storage_class_name": "standard", - "volume_mode": "Filesystem", - "volume_name": "pvc-c79c0c4e-cabc-486a-adf0-b2bbdb39bab1" - }, - "status": { - "access_modes": [ - "ReadWriteOnce" - ], - "capacity": { - "storage": "10Gi" - }, - "conditions": null, - "phase": "Bound" - } - }, - "pd-test-cluster-pd-1": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pv.kubernetes.io/bind-completed": "yes", - "pv.kubernetes.io/bound-by-controller": "yes", - "tidb.pingcap.com/pod-name": "test-cluster-pd-1", - "volume.beta.kubernetes.io/storage-provisioner": "rancher.io/local-path", - "volume.kubernetes.io/selected-node": "acto-cluster-0-worker2" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": [ - "kubernetes.io/pvc-protection" - ], - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/member-id": "10253759161720476298", - "tidb.pingcap.com/pod-name": "test-cluster-pd-1" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:volume.kubernetes.io/selected-node": {} - } - } - }, - "manager": "kube-scheduler", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:accessModes": {}, - "f:capacity": { - ".": {}, - "f:storage": {} - }, - "f:phase": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:39+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - "f:tidb.pingcap.com/pod-name": {} - }, - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/member-id": {}, - "f:tidb.pingcap.com/pod-name": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:22+00:00" - } - ], - "name": "pd-test-cluster-pd-1", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "1439", - "self_link": null, - "uid": "fd9f4138-610b-438b-ac40-fe4c8689b62c" - }, - "spec": { - "access_modes": [ - "ReadWriteOnce" - ], - "data_source": null, - "resources": { - "limits": null, - "requests": { - "storage": "10Gi" - } - }, - "selector": null, - "storage_class_name": "standard", - "volume_mode": "Filesystem", - "volume_name": "pvc-fd9f4138-610b-438b-ac40-fe4c8689b62c" - }, - "status": { - "access_modes": [ - "ReadWriteOnce" - ], - "capacity": { - "storage": "10Gi" - }, - "conditions": null, - "phase": "Bound" - } - }, - "pd-test-cluster-pd-2": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pv.kubernetes.io/bind-completed": "yes", - "pv.kubernetes.io/bound-by-controller": "yes", - "tidb.pingcap.com/pod-name": "test-cluster-pd-2", - "volume.beta.kubernetes.io/storage-provisioner": "rancher.io/local-path", - "volume.kubernetes.io/selected-node": "acto-cluster-0-worker" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": [ - "kubernetes.io/pvc-protection" - ], - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/member-id": "5110389971597451409", - "tidb.pingcap.com/pod-name": "test-cluster-pd-2" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:volume.kubernetes.io/selected-node": {} - } - } - }, - "manager": "kube-scheduler", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:accessModes": {}, - "f:capacity": { - ".": {}, - "f:storage": {} - }, - "f:phase": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:40+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - "f:tidb.pingcap.com/pod-name": {} - }, - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/member-id": {}, - "f:tidb.pingcap.com/pod-name": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:23+00:00" - } - ], - "name": "pd-test-cluster-pd-2", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "1461", - "self_link": null, - "uid": "7b6511c6-cffc-4090-997f-c4a0bb16e61d" - }, - "spec": { - "access_modes": [ - "ReadWriteOnce" - ], - "data_source": null, - "resources": { - "limits": null, - "requests": { - "storage": "10Gi" - } - }, - "selector": null, - "storage_class_name": "standard", - "volume_mode": "Filesystem", - "volume_name": "pvc-7b6511c6-cffc-4090-997f-c4a0bb16e61d" - }, - "status": { - "access_modes": [ - "ReadWriteOnce" - ], - "capacity": { - "storage": "10Gi" - }, - "conditions": null, - "phase": "Bound" - } - }, - "tikv-test-cluster-tikv-0": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pv.kubernetes.io/bind-completed": "yes", - "pv.kubernetes.io/bound-by-controller": "yes", - "tidb.pingcap.com/pod-name": "test-cluster-tikv-0", - "volume.beta.kubernetes.io/storage-provisioner": "rancher.io/local-path", - "volume.kubernetes.io/selected-node": "acto-cluster-0-worker3" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:02+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": [ - "kubernetes.io/pvc-protection" - ], - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/pod-name": "test-cluster-tikv-0", - "tidb.pingcap.com/store-id": "4" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:volume.kubernetes.io/selected-node": {} - } - } - }, - "manager": "kube-scheduler", - "operation": "Update", - "time": "2022-07-16T04:05:02+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:accessModes": {}, - "f:capacity": { - ".": {}, - "f:storage": {} - }, - "f:phase": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:06+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - "f:tidb.pingcap.com/pod-name": {} - }, - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/pod-name": {}, - "f:tidb.pingcap.com/store-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:24+00:00" - } - ], - "name": "tikv-test-cluster-tikv-0", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "1479", - "self_link": null, - "uid": "ff33fd13-d1db-4a79-a1ea-addae5689248" - }, - "spec": { - "access_modes": [ - "ReadWriteOnce" - ], - "data_source": null, - "resources": { - "limits": null, - "requests": { - "storage": "100Gi" - } - }, - "selector": null, - "storage_class_name": "standard", - "volume_mode": "Filesystem", - "volume_name": "pvc-ff33fd13-d1db-4a79-a1ea-addae5689248" - }, - "status": { - "access_modes": [ - "ReadWriteOnce" - ], - "capacity": { - "storage": "100Gi" - }, - "conditions": null, - "phase": "Bound" - } - }, - "tikv-test-cluster-tikv-1": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pv.kubernetes.io/bind-completed": "yes", - "pv.kubernetes.io/bound-by-controller": "yes", - "tidb.pingcap.com/pod-name": "test-cluster-tikv-1", - "volume.beta.kubernetes.io/storage-provisioner": "rancher.io/local-path", - "volume.kubernetes.io/selected-node": "acto-cluster-0-worker2" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:02+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": [ - "kubernetes.io/pvc-protection" - ], - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/pod-name": "test-cluster-tikv-1", - "tidb.pingcap.com/store-id": "1" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:volume.kubernetes.io/selected-node": {} - } - } - }, - "manager": "kube-scheduler", - "operation": "Update", - "time": "2022-07-16T04:05:02+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:accessModes": {}, - "f:capacity": { - ".": {}, - "f:storage": {} - }, - "f:phase": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:05+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - "f:tidb.pingcap.com/pod-name": {} - }, - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/pod-name": {}, - "f:tidb.pingcap.com/store-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:25+00:00" - } - ], - "name": "tikv-test-cluster-tikv-1", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "1488", - "self_link": null, - "uid": "5ae98b49-58e3-4013-892e-62c1fb952cfe" - }, - "spec": { - "access_modes": [ - "ReadWriteOnce" - ], - "data_source": null, - "resources": { - "limits": null, - "requests": { - "storage": "100Gi" - } - }, - "selector": null, - "storage_class_name": "standard", - "volume_mode": "Filesystem", - "volume_name": "pvc-5ae98b49-58e3-4013-892e-62c1fb952cfe" - }, - "status": { - "access_modes": [ - "ReadWriteOnce" - ], - "capacity": { - "storage": "100Gi" - }, - "conditions": null, - "phase": "Bound" - } - }, - "tikv-test-cluster-tikv-2": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pv.kubernetes.io/bind-completed": "yes", - "pv.kubernetes.io/bound-by-controller": "yes", - "tidb.pingcap.com/pod-name": "test-cluster-tikv-2", - "volume.beta.kubernetes.io/storage-provisioner": "rancher.io/local-path", - "volume.kubernetes.io/selected-node": "acto-cluster-0-worker" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:02+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": [ - "kubernetes.io/pvc-protection" - ], - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/pod-name": "test-cluster-tikv-2", - "tidb.pingcap.com/store-id": "5" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:volume.kubernetes.io/selected-node": {} - } - } - }, - "manager": "kube-scheduler", - "operation": "Update", - "time": "2022-07-16T04:05:02+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:accessModes": {}, - "f:capacity": { - ".": {}, - "f:storage": {} - }, - "f:phase": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:07+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - "f:tidb.pingcap.com/pod-name": {} - }, - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/pod-name": {}, - "f:tidb.pingcap.com/store-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:21+00:00" - } - ], - "name": "tikv-test-cluster-tikv-2", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "1413", - "self_link": null, - "uid": "470c768a-e5fa-4cda-a98c-7254bba5a7aa" - }, - "spec": { - "access_modes": [ - "ReadWriteOnce" - ], - "data_source": null, - "resources": { - "limits": null, - "requests": { - "storage": "100Gi" - } - }, - "selector": null, - "storage_class_name": "standard", - "volume_mode": "Filesystem", - "volume_name": "pvc-470c768a-e5fa-4cda-a98c-7254bba5a7aa" - }, - "status": { - "access_modes": [ - "ReadWriteOnce" - ], - "capacity": { - "storage": "100Gi" - }, - "conditions": null, - "phase": "Bound" - } - } - }, - "cronjob": {}, - "ingress": {}, - "pod_disruption_budget": {}, - "custom_resource_spec": { - "configUpdateStrategy": "RollingUpdate", - "discovery": {}, - "enableDynamicConfiguration": true, - "enablePVReclaim": false, - "helper": { - "image": "busybox:1.34.1" - }, - "imagePullPolicy": "IfNotPresent", - "pd": { - "baseImage": "pingcap/pd", - "config": "[dashboard]\n internal-proxy = true\n", - "maxFailoverCount": 0, - "mountClusterClientSecret": true, - "replicas": 3, - "requests": { - "storage": "10Gi" - } - }, - "pvReclaimPolicy": "Retain", - "tidb": { - "baseImage": "pingcap/tidb", - "config": "[log]\n [log.file]\n max-backups = 3\n\n[performance]\n tcp-keep-alive = true\n", - "maxFailoverCount": 0, - "replicas": 3, - "service": { - "externalTrafficPolicy": "Local", - "type": "NodePort" - } - }, - "tikv": { - "baseImage": "pingcap/tikv", - "config": "log-level = \"info\"\n", - "maxFailoverCount": 0, - "mountClusterClientSecret": true, - "replicas": 3, - "requests": { - "storage": "100Gi" - } - }, - "timezone": "UTC", - "tlsCluster": {}, - "version": "v5.4.0" - }, - "custom_resource_status": { - "clusterID": "7120816513896392341", - "conditions": [ - { - "lastTransitionTime": "2022-07-16T04:05:29Z", - "lastUpdateTime": "2022-07-16T04:05:29Z", - "message": "TiDB cluster is fully up and running", - "reason": "Ready", - "status": "True", - "type": "Ready" - } - ], - "pd": { - "image": "pingcap/pd:v5.4.0", - "leader": { - "clientURL": "http://test-cluster-pd-2.test-cluster-pd-peer.acto-namespace.svc:2379", - "health": true, - "id": "5110389971597451409", - "lastTransitionTime": "2022-07-16T04:04:52Z", - "name": "test-cluster-pd-2" - }, - "members": { - "test-cluster-pd-0": { - "clientURL": "http://test-cluster-pd-0.test-cluster-pd-peer.acto-namespace.svc:2379", - "health": true, - "id": "5292350542734693704", - "lastTransitionTime": "2022-07-16T04:05:02Z", - "name": "test-cluster-pd-0" - }, - "test-cluster-pd-1": { - "clientURL": "http://test-cluster-pd-1.test-cluster-pd-peer.acto-namespace.svc:2379", - "health": true, - "id": "10253759161720476298", - "lastTransitionTime": "2022-07-16T04:05:12Z", - "name": "test-cluster-pd-1" - }, - "test-cluster-pd-2": { - "clientURL": "http://test-cluster-pd-2.test-cluster-pd-peer.acto-namespace.svc:2379", - "health": true, - "id": "5110389971597451409", - "lastTransitionTime": "2022-07-16T04:04:52Z", - "name": "test-cluster-pd-2" - } - }, - "phase": "Normal", - "statefulSet": { - "collisionCount": 0, - "currentReplicas": 3, - "currentRevision": "test-cluster-pd-859db88ddf", - "observedGeneration": 1, - "readyReplicas": 3, - "replicas": 3, - "updateRevision": "test-cluster-pd-859db88ddf", - "updatedReplicas": 3 - }, - "synced": true - }, - "pump": {}, - "ticdc": {}, - "tidb": { - "image": "pingcap/tidb:v5.4.0", - "members": { - "test-cluster-tidb-0": { - "health": true, - "lastTransitionTime": "2022-07-16T04:05:29Z", - "name": "test-cluster-tidb-0", - "node": "acto-cluster-0-worker3" - }, - "test-cluster-tidb-1": { - "health": true, - "lastTransitionTime": "2022-07-16T04:05:29Z", - "name": "test-cluster-tidb-1", - "node": "acto-cluster-0-worker2" - }, - "test-cluster-tidb-2": { - "health": true, - "lastTransitionTime": "2022-07-16T04:05:29Z", - "name": "test-cluster-tidb-2", - "node": "acto-cluster-0-worker" - } - }, - "phase": "Normal", - "statefulSet": { - "collisionCount": 0, - "currentReplicas": 3, - "currentRevision": "test-cluster-tidb-788bdc6cfc", - "observedGeneration": 1, - "readyReplicas": 3, - "replicas": 3, - "updateRevision": "test-cluster-tidb-788bdc6cfc", - "updatedReplicas": 3 - } - }, - "tiflash": {}, - "tikv": { - "bootStrapped": true, - "image": "pingcap/tikv:v5.4.0", - "phase": "Normal", - "statefulSet": { - "collisionCount": 0, - "currentReplicas": 3, - "currentRevision": "test-cluster-tikv-5bcd5ddcc", - "observedGeneration": 1, - "readyReplicas": 3, - "replicas": 3, - "updateRevision": "test-cluster-tikv-5bcd5ddcc", - "updatedReplicas": 3 - }, - "stores": { - "1": { - "id": "1", - "ip": "test-cluster-tikv-1.test-cluster-tikv-peer.acto-namespace.svc", - "lastTransitionTime": "2022-07-16T04:05:21Z", - "leaderCount": 16, - "podName": "test-cluster-tikv-1", - "state": "Up" - }, - "4": { - "id": "4", - "ip": "test-cluster-tikv-0.test-cluster-tikv-peer.acto-namespace.svc", - "lastTransitionTime": "2022-07-16T04:05:21Z", - "leaderCount": 7, - "podName": "test-cluster-tikv-0", - "state": "Up" - }, - "5": { - "id": "5", - "ip": "test-cluster-tikv-2.test-cluster-tikv-peer.acto-namespace.svc", - "lastTransitionTime": "2022-07-16T04:05:21Z", - "leaderCount": 6, - "podName": "test-cluster-tikv-2", - "state": "Up" - } - }, - "synced": true - } - } -} \ No newline at end of file diff --git a/test/system-state-001.json b/test/system-state-001.json deleted file mode 100644 index 887f347202..0000000000 --- a/test/system-state-001.json +++ /dev/null @@ -1,14280 +0,0 @@ -{ - "pod": { - "test-cluster-discovery-779bb58fc7-k5dnp": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-discovery-779bb58fc7-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "discovery", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "pod-template-hash": "779bb58fc7", - "tidb.pingcap.com/cluster-id": "7120816513896392341" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:pod-template-hash": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"5f8869fb-0d78-4630-92ec-cb3b05552a1c\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"discovery\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"MY_POD_NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"TC_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":10261,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":10262,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {} - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:serviceAccount": {}, - "f:serviceAccountName": {}, - "f:terminationGracePeriodSeconds": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:containerStatuses": {}, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.1.3\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:04:35+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:25+00:00" - } - ], - "name": "test-cluster-discovery-779bb58fc7-k5dnp", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "ReplicaSet", - "name": "test-cluster-discovery-779bb58fc7", - "uid": "5f8869fb-0d78-4630-92ec-cb3b05552a1c" - } - ], - "resource_version": "1491", - "self_link": null, - "uid": "1fe51012-1b59-4ba3-835a-76cf5e7708cc" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/usr/local/bin/tidb-discovery" - ], - "env": [ - { - "name": "MY_POD_NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - }, - { - "name": "TC_NAME", - "value": "test-cluster", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tidb-operator:v1.3.2", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "discovery", - "ports": [ - { - "container_port": 10261, - "host_ip": null, - "host_port": null, - "name": "discovery", - "protocol": "TCP" - }, - { - "container_port": 10262, - "host_ip": null, - "host_port": null, - "name": "proxy", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-mtzfq", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": null, - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker2", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "test-cluster-discovery", - "service_account_name": "test-cluster-discovery", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": null, - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-mtzfq", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:34+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:35+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:35+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:34+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://34c594b9ab575c44e26cdffc0489317f869d0f35371fe3066b5a49652d8e3dcc", - "image": "docker.io/pingcap/tidb-operator:v1.3.2", - "image_id": "sha256:a1a60c89f7458d2890ab3e988afe9b27dda812dd2af9269a68261988c9eb7022", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "discovery", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:04:35+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.6", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.1.3", - "pod_i_ps": [ - { - "ip": "10.244.1.3" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:04:34+00:00" - } - }, - "test-cluster-pd-0": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "2379", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-pd-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "controller-revision-hash": "test-cluster-pd-859db88ddf", - "statefulset.kubernetes.io/pod-name": "test-cluster-pd-0", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/member-id": "5292350542734693704" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:controller-revision-hash": {}, - "f:statefulset.kubernetes.io/pod-name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a6ecbf04-44e0-4821-a24b-8482e3454218\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"pd\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"PEER_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"SET_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":2379,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":2380,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/pd\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/lib/pd\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:hostname": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:subdomain": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"pd\"}": { - ".": {}, - "f:name": {}, - "f:persistentVolumeClaim": { - ".": {}, - "f:claimName": {} - } - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:containerStatuses": {}, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.3.4\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:04:41+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/member-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:23+00:00" - } - ], - "name": "test-cluster-pd-0", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "StatefulSet", - "name": "test-cluster-pd", - "uid": "a6ecbf04-44e0-4821-a24b-8482e3454218" - } - ], - "resource_version": "1465", - "self_link": null, - "uid": "c199a583-b38b-407c-a88f-6a3c2e26f40e" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/pd_start_script.sh" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "PEER_SERVICE_NAME", - "value": "test-cluster-pd-peer", - "value_from": null - }, - { - "name": "SERVICE_NAME", - "value": "test-cluster-pd", - "value_from": null - }, - { - "name": "SET_NAME", - "value": "test-cluster-pd", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/pd:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "pd", - "ports": [ - { - "container_port": 2380, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - }, - { - "container_port": 2379, - "host_ip": null, - "host_port": null, - "name": "client", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/pd", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/lib/pd", - "mount_propagation": null, - "name": "pd", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-sxf27", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": "test-cluster-pd-0", - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker3", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "default", - "service_account_name": "default", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": "test-cluster-pd-peer", - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "pd", - "nfs": null, - "persistent_volume_claim": { - "claim_name": "pd-test-cluster-pd-0", - "read_only": null - }, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "pd.toml" - } - ], - "name": "test-cluster-pd-3731616", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "pd_start_script.sh" - } - ], - "name": "test-cluster-pd-3731616", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-sxf27", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:40+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:40+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://a3fd26f2f84c1dcded2cdc0bcf01c957a3ab244492e9d6b71fc157562bd4c48a", - "image": "docker.io/pingcap/pd:v5.4.0", - "image_id": "sha256:3a909fabddbbbebe215660bf612581dd4d7fef2f6213a0297be6a8ae602f35dd", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "pd", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:04:41+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.4", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.3.4", - "pod_i_ps": [ - { - "ip": "10.244.3.4" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:04:40+00:00" - } - }, - "test-cluster-pd-1": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "2379", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-pd-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "controller-revision-hash": "test-cluster-pd-859db88ddf", - "statefulset.kubernetes.io/pod-name": "test-cluster-pd-1", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/member-id": "10253759161720476298" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:controller-revision-hash": {}, - "f:statefulset.kubernetes.io/pod-name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a6ecbf04-44e0-4821-a24b-8482e3454218\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"pd\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"PEER_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"SET_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":2379,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":2380,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/pd\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/lib/pd\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:hostname": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:subdomain": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"pd\"}": { - ".": {}, - "f:name": {}, - "f:persistentVolumeClaim": { - ".": {}, - "f:claimName": {} - } - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:containerStatuses": {}, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.1.5\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:04+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/member-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:22+00:00" - } - ], - "name": "test-cluster-pd-1", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "StatefulSet", - "name": "test-cluster-pd", - "uid": "a6ecbf04-44e0-4821-a24b-8482e3454218" - } - ], - "resource_version": "1433", - "self_link": null, - "uid": "508f0567-d24f-4ea9-9dc9-99c674595a5c" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/pd_start_script.sh" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "PEER_SERVICE_NAME", - "value": "test-cluster-pd-peer", - "value_from": null - }, - { - "name": "SERVICE_NAME", - "value": "test-cluster-pd", - "value_from": null - }, - { - "name": "SET_NAME", - "value": "test-cluster-pd", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/pd:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "pd", - "ports": [ - { - "container_port": 2380, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - }, - { - "container_port": 2379, - "host_ip": null, - "host_port": null, - "name": "client", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/pd", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/lib/pd", - "mount_propagation": null, - "name": "pd", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-lr2bg", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": "test-cluster-pd-1", - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker2", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "default", - "service_account_name": "default", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": "test-cluster-pd-peer", - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "pd", - "nfs": null, - "persistent_volume_claim": { - "claim_name": "pd-test-cluster-pd-1", - "read_only": null - }, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "pd.toml" - } - ], - "name": "test-cluster-pd-3731616", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "pd_start_script.sh" - } - ], - "name": "test-cluster-pd-3731616", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-lr2bg", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:39+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:04+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:04+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:39+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://0b79c316c8bae507fe82a5beac4ce4559732c490ebb942dba5f30d0e17497d15", - "image": "docker.io/pingcap/pd:v5.4.0", - "image_id": "sha256:3a909fabddbbbebe215660bf612581dd4d7fef2f6213a0297be6a8ae602f35dd", - "last_state": { - "running": null, - "terminated": { - "container_id": "containerd://2390f544ccc7987f5aab212937a486f9bacfa3eeef1fbe7782508d746637af73", - "exit_code": 1, - "finished_at": "2022-07-16T04:05:03+00:00", - "message": null, - "reason": "Error", - "signal": null, - "started_at": "2022-07-16T04:04:40+00:00" - }, - "waiting": null - }, - "name": "pd", - "ready": true, - "restart_count": 1, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:03+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.6", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.1.5", - "pod_i_ps": [ - { - "ip": "10.244.1.5" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:04:39+00:00" - } - }, - "test-cluster-pd-2": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "2379", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-pd-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "controller-revision-hash": "test-cluster-pd-859db88ddf", - "statefulset.kubernetes.io/pod-name": "test-cluster-pd-2", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/member-id": "5110389971597451409" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:controller-revision-hash": {}, - "f:statefulset.kubernetes.io/pod-name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a6ecbf04-44e0-4821-a24b-8482e3454218\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"pd\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"PEER_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"SET_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":2379,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":2380,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/pd\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/lib/pd\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:hostname": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:subdomain": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"pd\"}": { - ".": {}, - "f:name": {}, - "f:persistentVolumeClaim": { - ".": {}, - "f:claimName": {} - } - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:containerStatuses": {}, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.2.5\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:04:42+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/member-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:22+00:00" - } - ], - "name": "test-cluster-pd-2", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "StatefulSet", - "name": "test-cluster-pd", - "uid": "a6ecbf04-44e0-4821-a24b-8482e3454218" - } - ], - "resource_version": "1456", - "self_link": null, - "uid": "60fc72c8-b1a1-43e8-8e13-f07350cda459" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/pd_start_script.sh" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "PEER_SERVICE_NAME", - "value": "test-cluster-pd-peer", - "value_from": null - }, - { - "name": "SERVICE_NAME", - "value": "test-cluster-pd", - "value_from": null - }, - { - "name": "SET_NAME", - "value": "test-cluster-pd", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/pd:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "pd", - "ports": [ - { - "container_port": 2380, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - }, - { - "container_port": 2379, - "host_ip": null, - "host_port": null, - "name": "client", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/pd", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/lib/pd", - "mount_propagation": null, - "name": "pd", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-rkzlr", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": "test-cluster-pd-2", - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "default", - "service_account_name": "default", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": "test-cluster-pd-peer", - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "pd", - "nfs": null, - "persistent_volume_claim": { - "claim_name": "pd-test-cluster-pd-2", - "read_only": null - }, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "pd.toml" - } - ], - "name": "test-cluster-pd-3731616", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "pd_start_script.sh" - } - ], - "name": "test-cluster-pd-3731616", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-rkzlr", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:42+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:42+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://6898fb57162bf338fb5ac6ead26e105c27b98fb1a03a03dd88bf1b674711e7ba", - "image": "docker.io/pingcap/pd:v5.4.0", - "image_id": "sha256:3a909fabddbbbebe215660bf612581dd4d7fef2f6213a0297be6a8ae602f35dd", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "pd", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:04:42+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.2", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.2.5", - "pod_i_ps": [ - { - "ip": "10.244.2.5" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:04:41+00:00" - } - }, - "test-cluster-tidb-0": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "10080", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:21+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-tidb-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "controller-revision-hash": "test-cluster-tidb-788bdc6cfc", - "statefulset.kubernetes.io/pod-name": "test-cluster-tidb-0", - "tidb.pingcap.com/cluster-id": "7120816513896392341" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:controller-revision-hash": {}, - "f:statefulset.kubernetes.io/pod-name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"5b9246b6-88b9-4933-a01e-e2f3fcfdde96\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"slowlog\"}": { - ".": {}, - "f:command": {}, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/var/log/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - }, - "k:{\"name\":\"tidb\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"BINLOG_ENABLED\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"CLUSTER_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"HEADLESS_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"POD_NAME\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"SLOW_LOG_FILE\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":4000,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":10080,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:readinessProbe": { - ".": {}, - "f:failureThreshold": {}, - "f:initialDelaySeconds": {}, - "f:periodSeconds": {}, - "f:successThreshold": {}, - "f:tcpSocket": { - ".": {}, - "f:port": {} - }, - "f:timeoutSeconds": {} - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/log/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:hostname": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:subdomain": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"slowlog\"}": { - ".": {}, - "f:emptyDir": {}, - "f:name": {} - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:21+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:type": {} - } - }, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.3.7\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:22+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:26+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - "f:lastTransitionTime": {}, - "f:status": {} - }, - "k:{\"type\":\"Ready\"}": { - "f:lastTransitionTime": {}, - "f:status": {} - } - }, - "f:containerStatuses": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:41+00:00" - } - ], - "name": "test-cluster-tidb-0", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "StatefulSet", - "name": "test-cluster-tidb", - "uid": "5b9246b6-88b9-4933-a01e-e2f3fcfdde96" - } - ], - "resource_version": "1569", - "self_link": null, - "uid": "126a1c2a-10fb-4af0-844d-bce2ca1a43d0" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "sh", - "-c", - "touch /var/log/tidb/slowlog; tail -n0 -F /var/log/tidb/slowlog;" - ], - "env": null, - "env_from": null, - "image": "busybox:1.34.1", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "slowlog", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/var/log/tidb", - "mount_propagation": null, - "name": "slowlog", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-9bht7", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - }, - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/tidb_start_script.sh" - ], - "env": [ - { - "name": "CLUSTER_NAME", - "value": "test-cluster", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - }, - { - "name": "BINLOG_ENABLED", - "value": "false", - "value_from": null - }, - { - "name": "SLOW_LOG_FILE", - "value": "/var/log/tidb/slowlog", - "value_from": null - }, - { - "name": "POD_NAME", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.name" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "HEADLESS_SERVICE_NAME", - "value": "test-cluster-tidb-peer", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tidb:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tidb", - "ports": [ - { - "container_port": 4000, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - }, - { - "container_port": 10080, - "host_ip": null, - "host_port": null, - "name": "status", - "protocol": "TCP" - } - ], - "readiness_probe": { - "_exec": null, - "failure_threshold": 3, - "http_get": null, - "initial_delay_seconds": 10, - "period_seconds": 10, - "success_threshold": 1, - "tcp_socket": { - "host": null, - "port": 4000 - }, - "termination_grace_period_seconds": null, - "timeout_seconds": 1 - }, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/tidb", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/log/tidb", - "mount_propagation": null, - "name": "slowlog", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-9bht7", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": "test-cluster-tidb-0", - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker3", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "default", - "service_account_name": "default", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": "test-cluster-tidb-peer", - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "tidb.toml" - } - ], - "name": "test-cluster-tidb-6662316", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "tidb_start_script.sh" - } - ], - "name": "test-cluster-tidb-6662316", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": { - "medium": null, - "size_limit": null - }, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "slowlog", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-9bht7", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:21+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:21+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://f6b99a71d2407202be55038a6ff8a92080b5e75984ef214da8db58ac68abc517", - "image": "docker.io/library/busybox:1.34.1", - "image_id": "sha256:62aedd01bd8520c43d06b09f7a0f67ba9720bdc04631a8242c65ea995f3ecac8", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "slowlog", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:22+00:00" - }, - "terminated": null, - "waiting": null - } - }, - { - "container_id": "containerd://c2f41e19ecf6c54c7618673b86c3522550b06b7adb6dde6717d16b5b933b164a", - "image": "docker.io/pingcap/tidb:v5.4.0", - "image_id": "sha256:f8f39dfba1157d651a48b1cd606533831001d4ba6ba4a31d55cad8045e5637d0", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "tidb", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:22+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.4", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.3.7", - "pod_i_ps": [ - { - "ip": "10.244.3.7" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:05:21+00:00" - } - }, - "test-cluster-tidb-1": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "10080", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:21+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-tidb-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "controller-revision-hash": "test-cluster-tidb-788bdc6cfc", - "statefulset.kubernetes.io/pod-name": "test-cluster-tidb-1", - "tidb.pingcap.com/cluster-id": "7120816513896392341" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:controller-revision-hash": {}, - "f:statefulset.kubernetes.io/pod-name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"5b9246b6-88b9-4933-a01e-e2f3fcfdde96\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"slowlog\"}": { - ".": {}, - "f:command": {}, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/var/log/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - }, - "k:{\"name\":\"tidb\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"BINLOG_ENABLED\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"CLUSTER_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"HEADLESS_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"POD_NAME\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"SLOW_LOG_FILE\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":4000,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":10080,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:readinessProbe": { - ".": {}, - "f:failureThreshold": {}, - "f:initialDelaySeconds": {}, - "f:periodSeconds": {}, - "f:successThreshold": {}, - "f:tcpSocket": { - ".": {}, - "f:port": {} - }, - "f:timeoutSeconds": {} - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/log/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:hostname": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:subdomain": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"slowlog\"}": { - ".": {}, - "f:emptyDir": {}, - "f:name": {} - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:21+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:type": {} - } - }, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.1.8\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:24+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:26+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - "f:lastTransitionTime": {}, - "f:status": {} - }, - "k:{\"type\":\"Ready\"}": { - "f:lastTransitionTime": {}, - "f:status": {} - } - }, - "f:containerStatuses": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:41+00:00" - } - ], - "name": "test-cluster-tidb-1", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "StatefulSet", - "name": "test-cluster-tidb", - "uid": "5b9246b6-88b9-4933-a01e-e2f3fcfdde96" - } - ], - "resource_version": "1568", - "self_link": null, - "uid": "d1aab93a-4dca-4572-bec6-d4a0daed2411" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "sh", - "-c", - "touch /var/log/tidb/slowlog; tail -n0 -F /var/log/tidb/slowlog;" - ], - "env": null, - "env_from": null, - "image": "busybox:1.34.1", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "slowlog", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/var/log/tidb", - "mount_propagation": null, - "name": "slowlog", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-k7q9b", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - }, - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/tidb_start_script.sh" - ], - "env": [ - { - "name": "CLUSTER_NAME", - "value": "test-cluster", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - }, - { - "name": "BINLOG_ENABLED", - "value": "false", - "value_from": null - }, - { - "name": "SLOW_LOG_FILE", - "value": "/var/log/tidb/slowlog", - "value_from": null - }, - { - "name": "POD_NAME", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.name" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "HEADLESS_SERVICE_NAME", - "value": "test-cluster-tidb-peer", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tidb:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tidb", - "ports": [ - { - "container_port": 4000, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - }, - { - "container_port": 10080, - "host_ip": null, - "host_port": null, - "name": "status", - "protocol": "TCP" - } - ], - "readiness_probe": { - "_exec": null, - "failure_threshold": 3, - "http_get": null, - "initial_delay_seconds": 10, - "period_seconds": 10, - "success_threshold": 1, - "tcp_socket": { - "host": null, - "port": 4000 - }, - "termination_grace_period_seconds": null, - "timeout_seconds": 1 - }, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/tidb", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/log/tidb", - "mount_propagation": null, - "name": "slowlog", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-k7q9b", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": "test-cluster-tidb-1", - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker2", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "default", - "service_account_name": "default", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": "test-cluster-tidb-peer", - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "tidb.toml" - } - ], - "name": "test-cluster-tidb-6662316", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "tidb_start_script.sh" - } - ], - "name": "test-cluster-tidb-6662316", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": { - "medium": null, - "size_limit": null - }, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "slowlog", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-k7q9b", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:21+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:21+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://bbd5db3559e65aeae16cb4b1ad9f18a88f1764de24dbecfdeb106e704644cf5b", - "image": "docker.io/library/busybox:1.34.1", - "image_id": "sha256:62aedd01bd8520c43d06b09f7a0f67ba9720bdc04631a8242c65ea995f3ecac8", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "slowlog", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:24+00:00" - }, - "terminated": null, - "waiting": null - } - }, - { - "container_id": "containerd://68c55820252c2f30a368c9ef34c81b3fd143dd2d198e3b30866e3dc13a2a16ee", - "image": "docker.io/pingcap/tidb:v5.4.0", - "image_id": "sha256:f8f39dfba1157d651a48b1cd606533831001d4ba6ba4a31d55cad8045e5637d0", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "tidb", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:24+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.6", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.1.8", - "pod_i_ps": [ - { - "ip": "10.244.1.8" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:05:21+00:00" - } - }, - "test-cluster-tidb-2": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "10080", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:21+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-tidb-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "controller-revision-hash": "test-cluster-tidb-788bdc6cfc", - "statefulset.kubernetes.io/pod-name": "test-cluster-tidb-2", - "tidb.pingcap.com/cluster-id": "7120816513896392341" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:controller-revision-hash": {}, - "f:statefulset.kubernetes.io/pod-name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"5b9246b6-88b9-4933-a01e-e2f3fcfdde96\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"slowlog\"}": { - ".": {}, - "f:command": {}, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/var/log/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - }, - "k:{\"name\":\"tidb\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"BINLOG_ENABLED\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"CLUSTER_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"HEADLESS_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"POD_NAME\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"SLOW_LOG_FILE\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":4000,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":10080,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:readinessProbe": { - ".": {}, - "f:failureThreshold": {}, - "f:initialDelaySeconds": {}, - "f:periodSeconds": {}, - "f:successThreshold": {}, - "f:tcpSocket": { - ".": {}, - "f:port": {} - }, - "f:timeoutSeconds": {} - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/log/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:hostname": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:subdomain": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"slowlog\"}": { - ".": {}, - "f:emptyDir": {}, - "f:name": {} - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:21+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:type": {} - } - }, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.2.8\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:22+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:26+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - "f:lastTransitionTime": {}, - "f:status": {} - }, - "k:{\"type\":\"Ready\"}": { - "f:lastTransitionTime": {}, - "f:status": {} - } - }, - "f:containerStatuses": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:41+00:00" - } - ], - "name": "test-cluster-tidb-2", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "StatefulSet", - "name": "test-cluster-tidb", - "uid": "5b9246b6-88b9-4933-a01e-e2f3fcfdde96" - } - ], - "resource_version": "1570", - "self_link": null, - "uid": "97f10d89-7b4e-49fd-8699-d04681357705" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "sh", - "-c", - "touch /var/log/tidb/slowlog; tail -n0 -F /var/log/tidb/slowlog;" - ], - "env": null, - "env_from": null, - "image": "busybox:1.34.1", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "slowlog", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/var/log/tidb", - "mount_propagation": null, - "name": "slowlog", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-krbbn", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - }, - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/tidb_start_script.sh" - ], - "env": [ - { - "name": "CLUSTER_NAME", - "value": "test-cluster", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - }, - { - "name": "BINLOG_ENABLED", - "value": "false", - "value_from": null - }, - { - "name": "SLOW_LOG_FILE", - "value": "/var/log/tidb/slowlog", - "value_from": null - }, - { - "name": "POD_NAME", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.name" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "HEADLESS_SERVICE_NAME", - "value": "test-cluster-tidb-peer", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tidb:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tidb", - "ports": [ - { - "container_port": 4000, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - }, - { - "container_port": 10080, - "host_ip": null, - "host_port": null, - "name": "status", - "protocol": "TCP" - } - ], - "readiness_probe": { - "_exec": null, - "failure_threshold": 3, - "http_get": null, - "initial_delay_seconds": 10, - "period_seconds": 10, - "success_threshold": 1, - "tcp_socket": { - "host": null, - "port": 4000 - }, - "termination_grace_period_seconds": null, - "timeout_seconds": 1 - }, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/tidb", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/log/tidb", - "mount_propagation": null, - "name": "slowlog", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-krbbn", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": "test-cluster-tidb-2", - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "default", - "service_account_name": "default", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": "test-cluster-tidb-peer", - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "tidb.toml" - } - ], - "name": "test-cluster-tidb-6662316", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "tidb_start_script.sh" - } - ], - "name": "test-cluster-tidb-6662316", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": { - "medium": null, - "size_limit": null - }, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "slowlog", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-krbbn", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:21+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:41+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:21+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://6a6af3ba6835d726a8b5732725b3ab5e7d0a081dd745521655b54205b809c15c", - "image": "docker.io/library/busybox:1.34.1", - "image_id": "sha256:62aedd01bd8520c43d06b09f7a0f67ba9720bdc04631a8242c65ea995f3ecac8", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "slowlog", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:22+00:00" - }, - "terminated": null, - "waiting": null - } - }, - { - "container_id": "containerd://3a6c458061cf02fe6aa6b1926c7edea77fce227dc287317f9353c15c26620cbf", - "image": "docker.io/pingcap/tidb:v5.4.0", - "image_id": "sha256:f8f39dfba1157d651a48b1cd606533831001d4ba6ba4a31d55cad8045e5637d0", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "tidb", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:22+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.2", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.2.8", - "pod_i_ps": [ - { - "ip": "10.244.2.8" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:05:21+00:00" - } - }, - "test-cluster-tikv-0": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "20180", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:02+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-tikv-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "controller-revision-hash": "test-cluster-tikv-5bcd5ddcc", - "statefulset.kubernetes.io/pod-name": "test-cluster-tikv-0", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/store-id": "4" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:controller-revision-hash": {}, - "f:statefulset.kubernetes.io/pod-name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"c9579c3a-651a-47b6-ac1c-6b378836fc61\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"tikv\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"CAPACITY\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"CLUSTER_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"HEADLESS_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":20160,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:securityContext": { - ".": {}, - "f:privileged": {} - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/tikv\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/lib/tikv\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:hostname": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:subdomain": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"tikv\"}": { - ".": {}, - "f:name": {}, - "f:persistentVolumeClaim": { - ".": {}, - "f:claimName": {} - } - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:02+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:containerStatuses": {}, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.3.6\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:07+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/store-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:24+00:00" - } - ], - "name": "test-cluster-tikv-0", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "StatefulSet", - "name": "test-cluster-tikv", - "uid": "c9579c3a-651a-47b6-ac1c-6b378836fc61" - } - ], - "resource_version": "1472", - "self_link": null, - "uid": "d6c26a4c-5b70-4cda-9d69-45215307afe0" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/tikv_start_script.sh" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "CLUSTER_NAME", - "value": "test-cluster", - "value_from": null - }, - { - "name": "HEADLESS_SERVICE_NAME", - "value": "test-cluster-tikv-peer", - "value_from": null - }, - { - "name": "CAPACITY", - "value": "0", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tikv:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tikv", - "ports": [ - { - "container_port": 20160, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": { - "allow_privilege_escalation": null, - "capabilities": null, - "privileged": false, - "proc_mount": null, - "read_only_root_filesystem": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "windows_options": null - }, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/lib/tikv", - "mount_propagation": null, - "name": "tikv", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/tikv", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-z46b7", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": "test-cluster-tikv-0", - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker3", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "default", - "service_account_name": "default", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": "test-cluster-tikv-peer", - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "tikv", - "nfs": null, - "persistent_volume_claim": { - "claim_name": "tikv-test-cluster-tikv-0", - "read_only": null - }, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "tikv.toml" - } - ], - "name": "test-cluster-tikv-3831336", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "tikv_start_script.sh" - } - ], - "name": "test-cluster-tikv-3831336", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-z46b7", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:07+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:07+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:07+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:07+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://46385fd7dcd336ccbc94477af2c5965683a7688458afaebb64b2ef28f37f1826", - "image": "docker.io/pingcap/tikv:v5.4.0", - "image_id": "sha256:3f22685fea0b53699fede8ab3c14733402e20c0e12ce54e7b6c68195b1b9245f", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "tikv", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:07+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.4", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.3.6", - "pod_i_ps": [ - { - "ip": "10.244.3.6" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:05:07+00:00" - } - }, - "test-cluster-tikv-1": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "20180", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:02+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-tikv-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "controller-revision-hash": "test-cluster-tikv-5bcd5ddcc", - "statefulset.kubernetes.io/pod-name": "test-cluster-tikv-1", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/store-id": "1" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:controller-revision-hash": {}, - "f:statefulset.kubernetes.io/pod-name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"c9579c3a-651a-47b6-ac1c-6b378836fc61\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"tikv\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"CAPACITY\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"CLUSTER_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"HEADLESS_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":20160,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:securityContext": { - ".": {}, - "f:privileged": {} - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/tikv\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/lib/tikv\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:hostname": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:subdomain": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"tikv\"}": { - ".": {}, - "f:name": {}, - "f:persistentVolumeClaim": { - ".": {}, - "f:claimName": {} - } - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:02+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:containerStatuses": {}, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.1.7\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:07+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/store-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:25+00:00" - } - ], - "name": "test-cluster-tikv-1", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "StatefulSet", - "name": "test-cluster-tikv", - "uid": "c9579c3a-651a-47b6-ac1c-6b378836fc61" - } - ], - "resource_version": "1487", - "self_link": null, - "uid": "4e6064e7-7100-4c9c-bfdc-699eabb04fef" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/tikv_start_script.sh" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "CLUSTER_NAME", - "value": "test-cluster", - "value_from": null - }, - { - "name": "HEADLESS_SERVICE_NAME", - "value": "test-cluster-tikv-peer", - "value_from": null - }, - { - "name": "CAPACITY", - "value": "0", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tikv:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tikv", - "ports": [ - { - "container_port": 20160, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": { - "allow_privilege_escalation": null, - "capabilities": null, - "privileged": false, - "proc_mount": null, - "read_only_root_filesystem": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "windows_options": null - }, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/lib/tikv", - "mount_propagation": null, - "name": "tikv", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/tikv", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-zsv7f", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": "test-cluster-tikv-1", - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker2", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "default", - "service_account_name": "default", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": "test-cluster-tikv-peer", - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "tikv", - "nfs": null, - "persistent_volume_claim": { - "claim_name": "tikv-test-cluster-tikv-1", - "read_only": null - }, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "tikv.toml" - } - ], - "name": "test-cluster-tikv-3831336", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "tikv_start_script.sh" - } - ], - "name": "test-cluster-tikv-3831336", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-zsv7f", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:06+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:07+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:07+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:06+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://3e378a0720ea1c940cb68e41e50b4f7ec93dc25e174563b2231418e00f1a54d3", - "image": "docker.io/pingcap/tikv:v5.4.0", - "image_id": "sha256:3f22685fea0b53699fede8ab3c14733402e20c0e12ce54e7b6c68195b1b9245f", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "tikv", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:06+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.6", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.1.7", - "pod_i_ps": [ - { - "ip": "10.244.1.7" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:05:06+00:00" - } - }, - "test-cluster-tikv-2": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "20180", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:02+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "test-cluster-tikv-", - "generation": null, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "controller-revision-hash": "test-cluster-tikv-5bcd5ddcc", - "statefulset.kubernetes.io/pod-name": "test-cluster-tikv-2", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/store-id": "5" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:controller-revision-hash": {}, - "f:statefulset.kubernetes.io/pod-name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"c9579c3a-651a-47b6-ac1c-6b378836fc61\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"tikv\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"CAPACITY\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"CLUSTER_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"HEADLESS_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":20160,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:securityContext": { - ".": {}, - "f:privileged": {} - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/tikv\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/lib/tikv\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:hostname": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:subdomain": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"tikv\"}": { - ".": {}, - "f:name": {}, - "f:persistentVolumeClaim": { - ".": {}, - "f:claimName": {} - } - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:02+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:containerStatuses": {}, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.2.7\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:05:09+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/store-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:21+00:00" - } - ], - "name": "test-cluster-tikv-2", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "StatefulSet", - "name": "test-cluster-tikv", - "uid": "c9579c3a-651a-47b6-ac1c-6b378836fc61" - } - ], - "resource_version": "1411", - "self_link": null, - "uid": "41f7aeaa-df3e-4722-b694-222cac95f007" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/tikv_start_script.sh" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "CLUSTER_NAME", - "value": "test-cluster", - "value_from": null - }, - { - "name": "HEADLESS_SERVICE_NAME", - "value": "test-cluster-tikv-peer", - "value_from": null - }, - { - "name": "CAPACITY", - "value": "0", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tikv:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tikv", - "ports": [ - { - "container_port": 20160, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": { - "allow_privilege_escalation": null, - "capabilities": null, - "privileged": false, - "proc_mount": null, - "read_only_root_filesystem": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "windows_options": null - }, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/lib/tikv", - "mount_propagation": null, - "name": "tikv", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/tikv", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-bv8tc", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": "test-cluster-tikv-2", - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "default", - "service_account_name": "default", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": "test-cluster-tikv-peer", - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "tikv", - "nfs": null, - "persistent_volume_claim": { - "claim_name": "tikv-test-cluster-tikv-2", - "read_only": null - }, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "tikv.toml" - } - ], - "name": "test-cluster-tikv-3831336", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "tikv_start_script.sh" - } - ], - "name": "test-cluster-tikv-3831336", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-bv8tc", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:08+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:09+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:09+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:05:08+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://f035178e24a5f91839dc4380a00f0ff6a83866f33b942ae8199efffca3a5a1f7", - "image": "docker.io/pingcap/tikv:v5.4.0", - "image_id": "sha256:3f22685fea0b53699fede8ab3c14733402e20c0e12ce54e7b6c68195b1b9245f", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "tikv", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:05:08+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.2", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.2.7", - "pod_i_ps": [ - { - "ip": "10.244.2.7" - } - ], - "qos_class": "BestEffort", - "reason": null, - "start_time": "2022-07-16T04:05:08+00:00" - } - }, - "tidb-controller-manager-75dd8c56c9-9689s": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:33+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "tidb-controller-manager-75dd8c56c9-", - "generation": null, - "labels": { - "acto/tag": "operator-pod", - "app.kubernetes.io/component": "controller-manager", - "app.kubernetes.io/instance": "acto-test-operator", - "app.kubernetes.io/name": "tidb-operator", - "pod-template-hash": "75dd8c56c9" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:acto/tag": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/name": {}, - "f:pod-template-hash": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"b1d23e26-eb2a-4877-a52c-242618c4c89d\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"tidb-operator\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:livenessProbe": { - ".": {}, - "f:failureThreshold": {}, - "f:initialDelaySeconds": {}, - "f:periodSeconds": {}, - "f:successThreshold": {}, - "f:tcpSocket": { - ".": {}, - "f:port": {} - }, - "f:timeoutSeconds": {} - }, - "f:name": {}, - "f:resources": { - ".": {}, - "f:requests": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - } - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {} - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:serviceAccount": {}, - "f:serviceAccountName": {}, - "f:terminationGracePeriodSeconds": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:33+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:containerStatuses": {}, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.2.3\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - } - ], - "name": "tidb-controller-manager-75dd8c56c9-9689s", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "ReplicaSet", - "name": "tidb-controller-manager-75dd8c56c9", - "uid": "b1d23e26-eb2a-4877-a52c-242618c4c89d" - } - ], - "resource_version": "934", - "self_link": null, - "uid": "844081f7-59df-41e3-9c0b-eb2dfca6a654" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/usr/local/bin/tidb-controller-manager", - "-tidb-backup-manager-image=pingcap/tidb-backup-manager:v1.3.2", - "-tidb-discovery-image=pingcap/tidb-operator:v1.3.2", - "-cluster-scoped=true", - "-cluster-permission-node=true", - "-cluster-permission-pv=true", - "-cluster-permission-sc=true", - "-auto-failover=true", - "-pd-failover-period=5m", - "-tikv-failover-period=5m", - "-tiflash-failover-period=5m", - "-tidb-failover-period=5m", - "-dm-master-failover-period=5m", - "-dm-worker-failover-period=5m", - "-v=2" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tidb-operator:v1.3.2", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": { - "_exec": null, - "failure_threshold": 10, - "http_get": null, - "initial_delay_seconds": 30, - "period_seconds": 10, - "success_threshold": 1, - "tcp_socket": { - "host": null, - "port": 6060 - }, - "termination_grace_period_seconds": null, - "timeout_seconds": 1 - }, - "name": "tidb-operator", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": null, - "requests": { - "cpu": "80m", - "memory": "50Mi" - } - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-6txmk", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": null, - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "tidb-controller-manager", - "service_account_name": "tidb-controller-manager", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": null, - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-6txmk", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:33+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:34+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:34+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:33+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://b6dd47ec6632776b55432affee84d46efe69bb42ee0b0d673aa95679b0511f93", - "image": "docker.io/pingcap/tidb-operator:v1.3.2", - "image_id": "sha256:a1a60c89f7458d2890ab3e988afe9b27dda812dd2af9269a68261988c9eb7022", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "tidb-operator", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:04:34+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.2", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.2.3", - "pod_i_ps": [ - { - "ip": "10.244.2.3" - } - ], - "qos_class": "Burstable", - "reason": null, - "start_time": "2022-07-16T04:04:33+00:00" - } - }, - "tidb-scheduler-77fb4766d8-lcw7g": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:33+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": "tidb-scheduler-77fb4766d8-", - "generation": null, - "labels": { - "acto/tag": "operator-pod", - "app.kubernetes.io/component": "scheduler", - "app.kubernetes.io/instance": "acto-test-operator", - "app.kubernetes.io/name": "tidb-operator", - "pod-template-hash": "77fb4766d8" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:generateName": {}, - "f:labels": { - ".": {}, - "f:acto/tag": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/name": {}, - "f:pod-template-hash": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"90746e7e-d96e-498d-a7f5-7778bed5296e\"}": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"kube-scheduler\"}": { - ".": {}, - "f:command": {}, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:resources": { - ".": {}, - "f:limits": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - }, - "f:requests": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - } - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/kubernetes\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - }, - "k:{\"name\":\"tidb-scheduler\"}": { - ".": {}, - "f:command": {}, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:resources": { - ".": {}, - "f:limits": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - }, - "f:requests": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - } - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {} - } - }, - "f:dnsPolicy": {}, - "f:enableServiceLinks": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:serviceAccount": {}, - "f:serviceAccountName": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"scheduler-config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:33+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:conditions": { - "k:{\"type\":\"ContainersReady\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Initialized\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Ready\"}": { - ".": {}, - "f:lastProbeTime": {}, - "f:lastTransitionTime": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:containerStatuses": {}, - "f:hostIP": {}, - "f:phase": {}, - "f:podIP": {}, - "f:podIPs": { - ".": {}, - "k:{\"ip\":\"10.244.2.2\"}": { - ".": {}, - "f:ip": {} - } - }, - "f:startTime": {} - } - }, - "manager": "kubelet", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - } - ], - "name": "tidb-scheduler-77fb4766d8-lcw7g", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "apps/v1", - "block_owner_deletion": true, - "controller": true, - "kind": "ReplicaSet", - "name": "tidb-scheduler-77fb4766d8", - "uid": "90746e7e-d96e-498d-a7f5-7778bed5296e" - } - ], - "resource_version": "938", - "self_link": null, - "uid": "44e620b2-26bd-45a4-a2e5-279b240871f2" - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/usr/local/bin/tidb-scheduler", - "-v=2", - "-port=10262" - ], - "env": null, - "env_from": null, - "image": "pingcap/tidb-operator:v1.3.2", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tidb-scheduler", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": { - "cpu": "250m", - "memory": "150Mi" - }, - "requests": { - "cpu": "80m", - "memory": "50Mi" - } - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-twjwt", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - }, - { - "args": null, - "command": [ - "kube-scheduler", - "--v=2", - "--config=/etc/kubernetes/scheduler-config.yaml" - ], - "env": null, - "env_from": null, - "image": "k8s.gcr.io/kube-scheduler:v1.22.9", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "kube-scheduler", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": { - "cpu": "250m", - "memory": "150Mi" - }, - "requests": { - "cpu": "80m", - "memory": "50Mi" - } - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/kubernetes", - "mount_propagation": null, - "name": "scheduler-config", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/run/secrets/kubernetes.io/serviceaccount", - "mount_propagation": null, - "name": "kube-api-access-twjwt", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": true, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": null, - "image_pull_secrets": null, - "init_containers": null, - "node_name": "acto-cluster-0-worker", - "node_selector": null, - "overhead": null, - "preemption_policy": "PreemptLowerPriority", - "priority": 0, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "tidb-scheduler", - "service_account_name": "tidb-scheduler", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": null, - "termination_grace_period_seconds": 30, - "tolerations": [ - { - "effect": "NoExecute", - "key": "node.kubernetes.io/not-ready", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - }, - { - "effect": "NoExecute", - "key": "node.kubernetes.io/unreachable", - "operator": "Exists", - "toleration_seconds": 300, - "value": null - } - ], - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": null, - "name": "tidb-scheduler-config", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "scheduler-config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "kube-api-access-twjwt", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": { - "default_mode": 420, - "sources": [ - { - "config_map": null, - "downward_api": null, - "secret": null, - "service_account_token": { - "audience": null, - "expiration_seconds": 3607, - "path": "token" - } - }, - { - "config_map": { - "items": [ - { - "key": "ca.crt", - "mode": null, - "path": "ca.crt" - } - ], - "name": "kube-root-ca.crt", - "optional": null - }, - "downward_api": null, - "secret": null, - "service_account_token": null - }, - { - "config_map": null, - "downward_api": { - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "mode": null, - "path": "namespace", - "resource_field_ref": null - } - ] - }, - "secret": null, - "service_account_token": null - } - ] - }, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - }, - "status": { - "conditions": [ - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:33+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Initialized" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:34+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "Ready" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:34+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "ContainersReady" - }, - { - "last_probe_time": null, - "last_transition_time": "2022-07-16T04:04:33+00:00", - "message": null, - "reason": null, - "status": "True", - "type": "PodScheduled" - } - ], - "container_statuses": [ - { - "container_id": "containerd://256e219373b7a0a57ee3bfc9779900a7f6c99e16708e9669491ebb1785d5f7a1", - "image": "k8s.gcr.io/kube-scheduler:v1.22.9", - "image_id": "sha256:a709e983ff7ee7e9a8ef5fd1a0c4b89c9dd4b4e9baf36fb778e290b76175166b", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "kube-scheduler", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:04:34+00:00" - }, - "terminated": null, - "waiting": null - } - }, - { - "container_id": "containerd://32e5ebf3a37b1618b2a51a059150318164f67b3a460cdb7c32f3aba0f50e1ff7", - "image": "docker.io/pingcap/tidb-operator:v1.3.2", - "image_id": "sha256:a1a60c89f7458d2890ab3e988afe9b27dda812dd2af9269a68261988c9eb7022", - "last_state": { - "running": null, - "terminated": null, - "waiting": null - }, - "name": "tidb-scheduler", - "ready": true, - "restart_count": 0, - "started": true, - "state": { - "running": { - "started_at": "2022-07-16T04:04:34+00:00" - }, - "terminated": null, - "waiting": null - } - } - ], - "ephemeral_container_statuses": null, - "host_ip": "172.18.0.2", - "init_container_statuses": null, - "message": null, - "nominated_node_name": null, - "phase": "Running", - "pod_ip": "10.244.2.2", - "pod_i_ps": [ - { - "ip": "10.244.2.2" - } - ], - "qos_class": "Burstable", - "reason": null, - "start_time": "2022-07-16T04:04:33+00:00" - } - } - }, - "stateful_set": { - "test-cluster-pd": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pingcap.com/last-applied-configuration": "{\"replicas\":3,\"selector\":{\"matchLabels\":{\"app.kubernetes.io/component\":\"pd\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"}},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"app.kubernetes.io/component\":\"pd\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"},\"annotations\":{\"prometheus.io/path\":\"/metrics\",\"prometheus.io/port\":\"2379\",\"prometheus.io/scrape\":\"true\"}},\"spec\":{\"volumes\":[{\"name\":\"annotations\",\"downwardAPI\":{\"items\":[{\"path\":\"annotations\",\"fieldRef\":{\"fieldPath\":\"metadata.annotations\"}}]}},{\"name\":\"config\",\"configMap\":{\"name\":\"test-cluster-pd-3731616\",\"items\":[{\"key\":\"config-file\",\"path\":\"pd.toml\"}]}},{\"name\":\"startup-script\",\"configMap\":{\"name\":\"test-cluster-pd-3731616\",\"items\":[{\"key\":\"startup-script\",\"path\":\"pd_start_script.sh\"}]}}],\"containers\":[{\"name\":\"pd\",\"image\":\"pingcap/pd:v5.4.0\",\"command\":[\"/bin/sh\",\"/usr/local/bin/pd_start_script.sh\"],\"ports\":[{\"name\":\"server\",\"containerPort\":2380,\"protocol\":\"TCP\"},{\"name\":\"client\",\"containerPort\":2379,\"protocol\":\"TCP\"}],\"env\":[{\"name\":\"NAMESPACE\",\"valueFrom\":{\"fieldRef\":{\"fieldPath\":\"metadata.namespace\"}}},{\"name\":\"PEER_SERVICE_NAME\",\"value\":\"test-cluster-pd-peer\"},{\"name\":\"SERVICE_NAME\",\"value\":\"test-cluster-pd\"},{\"name\":\"SET_NAME\",\"value\":\"test-cluster-pd\"},{\"name\":\"TZ\",\"value\":\"UTC\"}],\"resources\":{},\"volumeMounts\":[{\"name\":\"annotations\",\"readOnly\":true,\"mountPath\":\"/etc/podinfo\"},{\"name\":\"config\",\"readOnly\":true,\"mountPath\":\"/etc/pd\"},{\"name\":\"startup-script\",\"readOnly\":true,\"mountPath\":\"/usr/local/bin\"},{\"name\":\"pd\",\"mountPath\":\"/var/lib/pd\"}],\"imagePullPolicy\":\"IfNotPresent\"}],\"restartPolicy\":\"Always\",\"dnsPolicy\":\"ClusterFirst\"}},\"volumeClaimTemplates\":[{\"metadata\":{\"name\":\"pd\",\"creationTimestamp\":null},\"spec\":{\"accessModes\":[\"ReadWriteOnce\"],\"resources\":{\"requests\":{\"storage\":\"10Gi\"}}},\"status\":{}}],\"serviceName\":\"test-cluster-pd-peer\",\"podManagementPolicy\":\"Parallel\",\"updateStrategy\":{\"type\":\"RollingUpdate\",\"rollingUpdate\":{\"partition\":3}}}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": 1, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": [ - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:podManagementPolicy": {}, - "f:replicas": {}, - "f:revisionHistoryLimit": {}, - "f:selector": {}, - "f:serviceName": {}, - "f:template": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"pd\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"PEER_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"SET_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":2379,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":2380,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/pd\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/lib/pd\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "f:updateStrategy": { - "f:rollingUpdate": { - ".": {}, - "f:partition": {} - }, - "f:type": {} - }, - "f:volumeClaimTemplates": {} - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - }, - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:availableReplicas": {}, - "f:collisionCount": {}, - "f:currentReplicas": {}, - "f:currentRevision": {}, - "f:observedGeneration": {}, - "f:readyReplicas": {}, - "f:replicas": {}, - "f:updateRevision": {}, - "f:updatedReplicas": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:40+00:00" - } - ], - "name": "test-cluster-pd", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "1242", - "self_link": null, - "uid": "a6ecbf04-44e0-4821-a24b-8482e3454218" - }, - "spec": { - "pod_management_policy": "Parallel", - "replicas": 3, - "revision_history_limit": 10, - "selector": { - "match_expressions": null, - "match_labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - } - }, - "service_name": "test-cluster-pd-peer", - "template": { - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "2379", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": null, - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": null, - "name": null, - "namespace": null, - "owner_references": null, - "resource_version": null, - "self_link": null, - "uid": null - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/pd_start_script.sh" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "PEER_SERVICE_NAME", - "value": "test-cluster-pd-peer", - "value_from": null - }, - { - "name": "SERVICE_NAME", - "value": "test-cluster-pd", - "value_from": null - }, - { - "name": "SET_NAME", - "value": "test-cluster-pd", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/pd:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "pd", - "ports": [ - { - "container_port": 2380, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - }, - { - "container_port": 2379, - "host_ip": null, - "host_port": null, - "name": "client", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/pd", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/lib/pd", - "mount_propagation": null, - "name": "pd", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": null, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": null, - "image_pull_secrets": null, - "init_containers": null, - "node_name": null, - "node_selector": null, - "overhead": null, - "preemption_policy": null, - "priority": null, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": null, - "service_account_name": null, - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": null, - "termination_grace_period_seconds": 30, - "tolerations": null, - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "pd.toml" - } - ], - "name": "test-cluster-pd-3731616", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "pd_start_script.sh" - } - ], - "name": "test-cluster-pd-3731616", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - } - }, - "update_strategy": { - "rolling_update": { - "partition": 3 - }, - "type": "RollingUpdate" - }, - "volume_claim_templates": [ - { - "api_version": "v1", - "kind": "PersistentVolumeClaim", - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": null, - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": null, - "managed_fields": null, - "name": "pd", - "namespace": null, - "owner_references": null, - "resource_version": null, - "self_link": null, - "uid": null - }, - "spec": { - "access_modes": [ - "ReadWriteOnce" - ], - "data_source": null, - "resources": { - "limits": null, - "requests": { - "storage": "10Gi" - } - }, - "selector": null, - "storage_class_name": null, - "volume_mode": "Filesystem", - "volume_name": null - }, - "status": { - "access_modes": null, - "capacity": null, - "conditions": null, - "phase": "Pending" - } - } - ] - }, - "status": { - "collision_count": 0, - "conditions": null, - "current_replicas": 3, - "current_revision": "test-cluster-pd-859db88ddf", - "observed_generation": 1, - "ready_replicas": 3, - "replicas": 3, - "update_revision": "test-cluster-pd-859db88ddf", - "updated_replicas": 3 - } - }, - "test-cluster-tidb": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pingcap.com/last-applied-configuration": "{\"replicas\":3,\"selector\":{\"matchLabels\":{\"app.kubernetes.io/component\":\"tidb\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"}},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"app.kubernetes.io/component\":\"tidb\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"},\"annotations\":{\"prometheus.io/path\":\"/metrics\",\"prometheus.io/port\":\"10080\",\"prometheus.io/scrape\":\"true\"}},\"spec\":{\"volumes\":[{\"name\":\"annotations\",\"downwardAPI\":{\"items\":[{\"path\":\"annotations\",\"fieldRef\":{\"fieldPath\":\"metadata.annotations\"}}]}},{\"name\":\"config\",\"configMap\":{\"name\":\"test-cluster-tidb-6662316\",\"items\":[{\"key\":\"config-file\",\"path\":\"tidb.toml\"}]}},{\"name\":\"startup-script\",\"configMap\":{\"name\":\"test-cluster-tidb-6662316\",\"items\":[{\"key\":\"startup-script\",\"path\":\"tidb_start_script.sh\"}]}},{\"name\":\"slowlog\",\"emptyDir\":{}}],\"containers\":[{\"name\":\"slowlog\",\"image\":\"busybox:1.34.1\",\"command\":[\"sh\",\"-c\",\"touch /var/log/tidb/slowlog; tail -n0 -F /var/log/tidb/slowlog;\"],\"resources\":{},\"volumeMounts\":[{\"name\":\"slowlog\",\"mountPath\":\"/var/log/tidb\"}],\"imagePullPolicy\":\"IfNotPresent\"},{\"name\":\"tidb\",\"image\":\"pingcap/tidb:v5.4.0\",\"command\":[\"/bin/sh\",\"/usr/local/bin/tidb_start_script.sh\"],\"ports\":[{\"name\":\"server\",\"containerPort\":4000,\"protocol\":\"TCP\"},{\"name\":\"status\",\"containerPort\":10080,\"protocol\":\"TCP\"}],\"env\":[{\"name\":\"CLUSTER_NAME\",\"value\":\"test-cluster\"},{\"name\":\"TZ\",\"value\":\"UTC\"},{\"name\":\"BINLOG_ENABLED\",\"value\":\"false\"},{\"name\":\"SLOW_LOG_FILE\",\"value\":\"/var/log/tidb/slowlog\"},{\"name\":\"POD_NAME\",\"valueFrom\":{\"fieldRef\":{\"fieldPath\":\"metadata.name\"}}},{\"name\":\"NAMESPACE\",\"valueFrom\":{\"fieldRef\":{\"fieldPath\":\"metadata.namespace\"}}},{\"name\":\"HEADLESS_SERVICE_NAME\",\"value\":\"test-cluster-tidb-peer\"}],\"resources\":{},\"volumeMounts\":[{\"name\":\"annotations\",\"readOnly\":true,\"mountPath\":\"/etc/podinfo\"},{\"name\":\"config\",\"readOnly\":true,\"mountPath\":\"/etc/tidb\"},{\"name\":\"startup-script\",\"readOnly\":true,\"mountPath\":\"/usr/local/bin\"},{\"name\":\"slowlog\",\"mountPath\":\"/var/log/tidb\"}],\"readinessProbe\":{\"tcpSocket\":{\"port\":4000},\"initialDelaySeconds\":10},\"imagePullPolicy\":\"IfNotPresent\"}],\"restartPolicy\":\"Always\",\"dnsPolicy\":\"ClusterFirst\"}},\"serviceName\":\"test-cluster-tidb-peer\",\"podManagementPolicy\":\"Parallel\",\"updateStrategy\":{\"type\":\"RollingUpdate\",\"rollingUpdate\":{\"partition\":3}}}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:21+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": 1, - "labels": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": [ - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:podManagementPolicy": {}, - "f:replicas": {}, - "f:revisionHistoryLimit": {}, - "f:selector": {}, - "f:serviceName": {}, - "f:template": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"slowlog\"}": { - ".": {}, - "f:command": {}, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/var/log/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - }, - "k:{\"name\":\"tidb\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"BINLOG_ENABLED\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"CLUSTER_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"HEADLESS_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"POD_NAME\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"SLOW_LOG_FILE\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":4000,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":10080,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:readinessProbe": { - ".": {}, - "f:failureThreshold": {}, - "f:initialDelaySeconds": {}, - "f:periodSeconds": {}, - "f:successThreshold": {}, - "f:tcpSocket": { - ".": {}, - "f:port": {} - }, - "f:timeoutSeconds": {} - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/log/tidb\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"slowlog\"}": { - ".": {}, - "f:emptyDir": {}, - "f:name": {} - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "f:updateStrategy": { - "f:rollingUpdate": { - ".": {}, - "f:partition": {} - }, - "f:type": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:21+00:00" - }, - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:availableReplicas": {}, - "f:collisionCount": {}, - "f:currentReplicas": {}, - "f:currentRevision": {}, - "f:observedGeneration": {}, - "f:readyReplicas": {}, - "f:replicas": {}, - "f:updateRevision": {}, - "f:updatedReplicas": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:41+00:00" - } - ], - "name": "test-cluster-tidb", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "1578", - "self_link": null, - "uid": "5b9246b6-88b9-4933-a01e-e2f3fcfdde96" - }, - "spec": { - "pod_management_policy": "Parallel", - "replicas": 3, - "revision_history_limit": 10, - "selector": { - "match_expressions": null, - "match_labels": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - } - }, - "service_name": "test-cluster-tidb-peer", - "template": { - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "10080", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": null, - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": null, - "name": null, - "namespace": null, - "owner_references": null, - "resource_version": null, - "self_link": null, - "uid": null - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "sh", - "-c", - "touch /var/log/tidb/slowlog; tail -n0 -F /var/log/tidb/slowlog;" - ], - "env": null, - "env_from": null, - "image": "busybox:1.34.1", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "slowlog", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/var/log/tidb", - "mount_propagation": null, - "name": "slowlog", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - }, - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/tidb_start_script.sh" - ], - "env": [ - { - "name": "CLUSTER_NAME", - "value": "test-cluster", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - }, - { - "name": "BINLOG_ENABLED", - "value": "false", - "value_from": null - }, - { - "name": "SLOW_LOG_FILE", - "value": "/var/log/tidb/slowlog", - "value_from": null - }, - { - "name": "POD_NAME", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.name" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "HEADLESS_SERVICE_NAME", - "value": "test-cluster-tidb-peer", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tidb:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tidb", - "ports": [ - { - "container_port": 4000, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - }, - { - "container_port": 10080, - "host_ip": null, - "host_port": null, - "name": "status", - "protocol": "TCP" - } - ], - "readiness_probe": { - "_exec": null, - "failure_threshold": 3, - "http_get": null, - "initial_delay_seconds": 10, - "period_seconds": 10, - "success_threshold": 1, - "tcp_socket": { - "host": null, - "port": 4000 - }, - "termination_grace_period_seconds": null, - "timeout_seconds": 1 - }, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/tidb", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/log/tidb", - "mount_propagation": null, - "name": "slowlog", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": null, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": null, - "image_pull_secrets": null, - "init_containers": null, - "node_name": null, - "node_selector": null, - "overhead": null, - "preemption_policy": null, - "priority": null, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": null, - "service_account_name": null, - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": null, - "termination_grace_period_seconds": 30, - "tolerations": null, - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "tidb.toml" - } - ], - "name": "test-cluster-tidb-6662316", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "tidb_start_script.sh" - } - ], - "name": "test-cluster-tidb-6662316", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": null, - "empty_dir": { - "medium": null, - "size_limit": null - }, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "slowlog", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - } - }, - "update_strategy": { - "rolling_update": { - "partition": 3 - }, - "type": "RollingUpdate" - }, - "volume_claim_templates": null - }, - "status": { - "collision_count": 0, - "conditions": null, - "current_replicas": 3, - "current_revision": "test-cluster-tidb-788bdc6cfc", - "observed_generation": 1, - "ready_replicas": 3, - "replicas": 3, - "update_revision": "test-cluster-tidb-788bdc6cfc", - "updated_replicas": 3 - } - }, - "test-cluster-tikv": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pingcap.com/last-applied-configuration": "{\"replicas\":3,\"selector\":{\"matchLabels\":{\"app.kubernetes.io/component\":\"tikv\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"}},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"app.kubernetes.io/component\":\"tikv\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"},\"annotations\":{\"prometheus.io/path\":\"/metrics\",\"prometheus.io/port\":\"20180\",\"prometheus.io/scrape\":\"true\"}},\"spec\":{\"volumes\":[{\"name\":\"annotations\",\"downwardAPI\":{\"items\":[{\"path\":\"annotations\",\"fieldRef\":{\"fieldPath\":\"metadata.annotations\"}}]}},{\"name\":\"config\",\"configMap\":{\"name\":\"test-cluster-tikv-3831336\",\"items\":[{\"key\":\"config-file\",\"path\":\"tikv.toml\"}]}},{\"name\":\"startup-script\",\"configMap\":{\"name\":\"test-cluster-tikv-3831336\",\"items\":[{\"key\":\"startup-script\",\"path\":\"tikv_start_script.sh\"}]}}],\"containers\":[{\"name\":\"tikv\",\"image\":\"pingcap/tikv:v5.4.0\",\"command\":[\"/bin/sh\",\"/usr/local/bin/tikv_start_script.sh\"],\"ports\":[{\"name\":\"server\",\"containerPort\":20160,\"protocol\":\"TCP\"}],\"env\":[{\"name\":\"NAMESPACE\",\"valueFrom\":{\"fieldRef\":{\"fieldPath\":\"metadata.namespace\"}}},{\"name\":\"CLUSTER_NAME\",\"value\":\"test-cluster\"},{\"name\":\"HEADLESS_SERVICE_NAME\",\"value\":\"test-cluster-tikv-peer\"},{\"name\":\"CAPACITY\",\"value\":\"0\"},{\"name\":\"TZ\",\"value\":\"UTC\"}],\"resources\":{},\"volumeMounts\":[{\"name\":\"annotations\",\"readOnly\":true,\"mountPath\":\"/etc/podinfo\"},{\"name\":\"tikv\",\"mountPath\":\"/var/lib/tikv\"},{\"name\":\"config\",\"readOnly\":true,\"mountPath\":\"/etc/tikv\"},{\"name\":\"startup-script\",\"readOnly\":true,\"mountPath\":\"/usr/local/bin\"}],\"imagePullPolicy\":\"IfNotPresent\",\"securityContext\":{\"privileged\":false}}],\"restartPolicy\":\"Always\",\"dnsPolicy\":\"ClusterFirst\"}},\"volumeClaimTemplates\":[{\"metadata\":{\"name\":\"tikv\",\"creationTimestamp\":null},\"spec\":{\"accessModes\":[\"ReadWriteOnce\"],\"resources\":{\"requests\":{\"storage\":\"100Gi\"}}},\"status\":{}}],\"serviceName\":\"test-cluster-tikv-peer\",\"podManagementPolicy\":\"Parallel\",\"updateStrategy\":{\"type\":\"RollingUpdate\",\"rollingUpdate\":{\"partition\":3}}}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:02+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": 1, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": [ - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:podManagementPolicy": {}, - "f:replicas": {}, - "f:revisionHistoryLimit": {}, - "f:selector": {}, - "f:serviceName": {}, - "f:template": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:prometheus.io/path": {}, - "f:prometheus.io/port": {}, - "f:prometheus.io/scrape": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"tikv\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"CAPACITY\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"CLUSTER_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"HEADLESS_SERVICE_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":20160,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:securityContext": { - ".": {}, - "f:privileged": {} - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/podinfo\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/etc/tikv\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/usr/local/bin\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {}, - "f:readOnly": {} - }, - "k:{\"mountPath\":\"/var/lib/tikv\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - } - }, - "f:dnsPolicy": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"annotations\"}": { - ".": {}, - "f:downwardAPI": { - ".": {}, - "f:defaultMode": {}, - "f:items": {} - }, - "f:name": {} - }, - "k:{\"name\":\"config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - }, - "k:{\"name\":\"startup-script\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:items": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - }, - "f:updateStrategy": { - "f:rollingUpdate": { - ".": {}, - "f:partition": {} - }, - "f:type": {} - }, - "f:volumeClaimTemplates": {} - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:02+00:00" - }, - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:availableReplicas": {}, - "f:collisionCount": {}, - "f:currentReplicas": {}, - "f:currentRevision": {}, - "f:observedGeneration": {}, - "f:readyReplicas": {}, - "f:replicas": {}, - "f:updateRevision": {}, - "f:updatedReplicas": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:07+00:00" - } - ], - "name": "test-cluster-tikv", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "1338", - "self_link": null, - "uid": "c9579c3a-651a-47b6-ac1c-6b378836fc61" - }, - "spec": { - "pod_management_policy": "Parallel", - "replicas": 3, - "revision_history_limit": 10, - "selector": { - "match_expressions": null, - "match_labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - } - }, - "service_name": "test-cluster-tikv-peer", - "template": { - "metadata": { - "annotations": { - "prometheus.io/path": "/metrics", - "prometheus.io/port": "20180", - "prometheus.io/scrape": "true" - }, - "cluster_name": null, - "creation_timestamp": null, - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": null, - "name": null, - "namespace": null, - "owner_references": null, - "resource_version": null, - "self_link": null, - "uid": null - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/bin/sh", - "/usr/local/bin/tikv_start_script.sh" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "CLUSTER_NAME", - "value": "test-cluster", - "value_from": null - }, - { - "name": "HEADLESS_SERVICE_NAME", - "value": "test-cluster-tikv-peer", - "value_from": null - }, - { - "name": "CAPACITY", - "value": "0", - "value_from": null - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tikv:v5.4.0", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tikv", - "ports": [ - { - "container_port": 20160, - "host_ip": null, - "host_port": null, - "name": "server", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": { - "allow_privilege_escalation": null, - "capabilities": null, - "privileged": false, - "proc_mount": null, - "read_only_root_filesystem": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "windows_options": null - }, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/podinfo", - "mount_propagation": null, - "name": "annotations", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/var/lib/tikv", - "mount_propagation": null, - "name": "tikv", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/etc/tikv", - "mount_propagation": null, - "name": "config", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - }, - { - "mount_path": "/usr/local/bin", - "mount_propagation": null, - "name": "startup-script", - "read_only": true, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": null, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": null, - "image_pull_secrets": null, - "init_containers": null, - "node_name": null, - "node_selector": null, - "overhead": null, - "preemption_policy": null, - "priority": null, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": null, - "service_account_name": null, - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": null, - "termination_grace_period_seconds": 30, - "tolerations": null, - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": null, - "csi": null, - "downward_api": { - "default_mode": 420, - "items": [ - { - "field_ref": { - "api_version": "v1", - "field_path": "metadata.annotations" - }, - "mode": null, - "path": "annotations", - "resource_field_ref": null - } - ] - }, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "annotations", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "config-file", - "mode": null, - "path": "tikv.toml" - } - ], - "name": "test-cluster-tikv-3831336", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - }, - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": [ - { - "key": "startup-script", - "mode": null, - "path": "tikv_start_script.sh" - } - ], - "name": "test-cluster-tikv-3831336", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "startup-script", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - } - }, - "update_strategy": { - "rolling_update": { - "partition": 3 - }, - "type": "RollingUpdate" - }, - "volume_claim_templates": [ - { - "api_version": "v1", - "kind": "PersistentVolumeClaim", - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": null, - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": null, - "managed_fields": null, - "name": "tikv", - "namespace": null, - "owner_references": null, - "resource_version": null, - "self_link": null, - "uid": null - }, - "spec": { - "access_modes": [ - "ReadWriteOnce" - ], - "data_source": null, - "resources": { - "limits": null, - "requests": { - "storage": "100Gi" - } - }, - "selector": null, - "storage_class_name": null, - "volume_mode": "Filesystem", - "volume_name": null - }, - "status": { - "access_modes": null, - "capacity": null, - "conditions": null, - "phase": "Pending" - } - } - ] - }, - "status": { - "collision_count": 0, - "conditions": null, - "current_replicas": 3, - "current_revision": "test-cluster-tikv-5bcd5ddcc", - "observed_generation": 1, - "ready_replicas": 3, - "replicas": 3, - "update_revision": "test-cluster-tikv-5bcd5ddcc", - "updated_replicas": 3 - } - } - }, - "deployment": { - "test-cluster-discovery": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "deployment.kubernetes.io/revision": "1", - "pingcap.com/last-applied-configuration": "{\"containers\":[{\"name\":\"discovery\",\"image\":\"pingcap/tidb-operator:v1.3.2\",\"command\":[\"/usr/local/bin/tidb-discovery\"],\"ports\":[{\"name\":\"discovery\",\"containerPort\":10261,\"protocol\":\"TCP\"},{\"name\":\"proxy\",\"containerPort\":10262,\"protocol\":\"TCP\"}],\"env\":[{\"name\":\"MY_POD_NAMESPACE\",\"valueFrom\":{\"fieldRef\":{\"fieldPath\":\"metadata.namespace\"}}},{\"name\":\"TZ\",\"value\":\"UTC\"},{\"name\":\"TC_NAME\",\"value\":\"test-cluster\"}],\"resources\":{},\"imagePullPolicy\":\"IfNotPresent\"}],\"restartPolicy\":\"Always\",\"dnsPolicy\":\"ClusterFirst\",\"serviceAccountName\":\"test-cluster-discovery\"}", - "pingcap.com/last-applied-podtemplate": "{\"containers\":[{\"name\":\"discovery\",\"image\":\"pingcap/tidb-operator:v1.3.2\",\"command\":[\"/usr/local/bin/tidb-discovery\"],\"ports\":[{\"name\":\"discovery\",\"containerPort\":10261,\"protocol\":\"TCP\"},{\"name\":\"proxy\",\"containerPort\":10262,\"protocol\":\"TCP\"}],\"env\":[{\"name\":\"MY_POD_NAMESPACE\",\"valueFrom\":{\"fieldRef\":{\"fieldPath\":\"metadata.namespace\"}}},{\"name\":\"TZ\",\"value\":\"UTC\"},{\"name\":\"TC_NAME\",\"value\":\"test-cluster\"}],\"resources\":{},\"imagePullPolicy\":\"IfNotPresent\"}],\"restartPolicy\":\"Always\",\"dnsPolicy\":\"ClusterFirst\",\"serviceAccountName\":\"test-cluster-discovery\"}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": 2, - "labels": { - "app.kubernetes.io/component": "discovery", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": [ - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {}, - "f:pingcap.com/last-applied-podtemplate": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:progressDeadlineSeconds": {}, - "f:replicas": {}, - "f:revisionHistoryLimit": {}, - "f:selector": {}, - "f:strategy": { - "f:type": {} - }, - "f:template": { - "f:metadata": { - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"discovery\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"MY_POD_NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"TC_NAME\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:ports": { - ".": {}, - "k:{\"containerPort\":10261,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - }, - "k:{\"containerPort\":10262,\"protocol\":\"TCP\"}": { - ".": {}, - "f:containerPort": {}, - "f:name": {}, - "f:protocol": {} - } - }, - "f:resources": {}, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {} - } - }, - "f:dnsPolicy": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:serviceAccount": {}, - "f:serviceAccountName": {}, - "f:terminationGracePeriodSeconds": {} - } - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - }, - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:availableReplicas": {}, - "f:conditions": { - "k:{\"type\":\"Available\"}": { - "f:lastTransitionTime": {}, - "f:lastUpdateTime": {}, - "f:message": {}, - "f:reason": {}, - "f:status": {} - }, - "k:{\"type\":\"Progressing\"}": { - "f:lastUpdateTime": {}, - "f:message": {}, - "f:reason": {} - } - }, - "f:readyReplicas": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:35+00:00" - } - ], - "name": "test-cluster-discovery", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "1104", - "self_link": null, - "uid": "c50bb6e3-99a2-4835-99a0-2965f8905163" - }, - "spec": { - "min_ready_seconds": null, - "paused": null, - "progress_deadline_seconds": 600, - "replicas": 1, - "revision_history_limit": 10, - "selector": { - "match_expressions": null, - "match_labels": { - "app.kubernetes.io/component": "discovery", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - } - }, - "strategy": { - "rolling_update": null, - "type": "Recreate" - }, - "template": { - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": null, - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "discovery", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": null, - "name": null, - "namespace": null, - "owner_references": null, - "resource_version": null, - "self_link": null, - "uid": null - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/usr/local/bin/tidb-discovery" - ], - "env": [ - { - "name": "MY_POD_NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - }, - { - "name": "TC_NAME", - "value": "test-cluster", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tidb-operator:v1.3.2", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "discovery", - "ports": [ - { - "container_port": 10261, - "host_ip": null, - "host_port": null, - "name": "discovery", - "protocol": "TCP" - }, - { - "container_port": 10262, - "host_ip": null, - "host_port": null, - "name": "proxy", - "protocol": "TCP" - } - ], - "readiness_probe": null, - "resources": { - "limits": null, - "requests": null - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": null, - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": null, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": null, - "image_pull_secrets": null, - "init_containers": null, - "node_name": null, - "node_selector": null, - "overhead": null, - "preemption_policy": null, - "priority": null, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "test-cluster-discovery", - "service_account_name": "test-cluster-discovery", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": null, - "termination_grace_period_seconds": 30, - "tolerations": null, - "topology_spread_constraints": null, - "volumes": null - } - } - }, - "status": { - "available_replicas": 1, - "collision_count": null, - "conditions": [ - { - "last_transition_time": "2022-07-16T04:04:35+00:00", - "last_update_time": "2022-07-16T04:04:35+00:00", - "message": "Deployment has minimum availability.", - "reason": "MinimumReplicasAvailable", - "status": "True", - "type": "Available" - }, - { - "last_transition_time": "2022-07-16T04:04:34+00:00", - "last_update_time": "2022-07-16T04:04:35+00:00", - "message": "ReplicaSet \"test-cluster-discovery-779bb58fc7\" has successfully progressed.", - "reason": "NewReplicaSetAvailable", - "status": "True", - "type": "Progressing" - } - ], - "observed_generation": 2, - "ready_replicas": 1, - "replicas": 1, - "unavailable_replicas": null, - "updated_replicas": 1 - } - }, - "tidb-controller-manager": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "deployment.kubernetes.io/revision": "2", - "meta.helm.sh/release-name": "acto-test-operator", - "meta.helm.sh/release-namespace": "acto-namespace" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:31+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": 2, - "labels": { - "acto/tag": "operator-deployment", - "app.kubernetes.io/component": "controller-manager", - "app.kubernetes.io/instance": "acto-test-operator", - "app.kubernetes.io/managed-by": "Helm", - "app.kubernetes.io/name": "tidb-operator", - "helm.sh/chart": "tidb-operator-v1-canary" - }, - "managed_fields": [ - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:meta.helm.sh/release-name": {}, - "f:meta.helm.sh/release-namespace": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:helm.sh/chart": {} - } - }, - "f:spec": { - "f:progressDeadlineSeconds": {}, - "f:replicas": {}, - "f:revisionHistoryLimit": {}, - "f:selector": {}, - "f:strategy": { - "f:rollingUpdate": { - ".": {}, - "f:maxSurge": {}, - "f:maxUnavailable": {} - }, - "f:type": {} - }, - "f:template": { - "f:metadata": { - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/name": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"tidb-operator\"}": { - ".": {}, - "f:command": {}, - "f:env": { - ".": {}, - "k:{\"name\":\"NAMESPACE\"}": { - ".": {}, - "f:name": {}, - "f:valueFrom": { - ".": {}, - "f:fieldRef": {} - } - }, - "k:{\"name\":\"TZ\"}": { - ".": {}, - "f:name": {}, - "f:value": {} - } - }, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:livenessProbe": { - ".": {}, - "f:failureThreshold": {}, - "f:initialDelaySeconds": {}, - "f:periodSeconds": {}, - "f:successThreshold": {}, - "f:tcpSocket": { - ".": {}, - "f:port": {} - }, - "f:timeoutSeconds": {} - }, - "f:name": {}, - "f:resources": { - ".": {}, - "f:requests": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - } - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {} - } - }, - "f:dnsPolicy": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:serviceAccount": {}, - "f:serviceAccountName": {}, - "f:terminationGracePeriodSeconds": {} - } - } - } - }, - "manager": "helm", - "operation": "Update", - "time": "2022-07-16T04:04:31+00:00" - }, - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:acto/tag": {} - } - }, - "f:spec": { - "f:template": { - "f:metadata": { - "f:labels": { - "f:acto/tag": {} - } - } - } - } - }, - "manager": "OpenAPI-Generator", - "operation": "Update", - "time": "2022-07-16T04:04:33+00:00" - }, - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - "f:deployment.kubernetes.io/revision": {} - } - }, - "f:status": { - "f:availableReplicas": {}, - "f:conditions": { - ".": {}, - "k:{\"type\":\"Available\"}": { - ".": {}, - "f:lastTransitionTime": {}, - "f:lastUpdateTime": {}, - "f:message": {}, - "f:reason": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Progressing\"}": { - ".": {}, - "f:lastTransitionTime": {}, - "f:lastUpdateTime": {}, - "f:message": {}, - "f:reason": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:observedGeneration": {}, - "f:readyReplicas": {}, - "f:replicas": {}, - "f:updatedReplicas": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - } - ], - "name": "tidb-controller-manager", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "954", - "self_link": null, - "uid": "5f171b18-e28a-4ed1-9047-2e9a8a1820bc" - }, - "spec": { - "min_ready_seconds": null, - "paused": null, - "progress_deadline_seconds": 600, - "replicas": 1, - "revision_history_limit": 10, - "selector": { - "match_expressions": null, - "match_labels": { - "app.kubernetes.io/component": "controller-manager", - "app.kubernetes.io/instance": "acto-test-operator", - "app.kubernetes.io/name": "tidb-operator" - } - }, - "strategy": { - "rolling_update": { - "max_surge": "25%", - "max_unavailable": "25%" - }, - "type": "RollingUpdate" - }, - "template": { - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": null, - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "acto/tag": "operator-pod", - "app.kubernetes.io/component": "controller-manager", - "app.kubernetes.io/instance": "acto-test-operator", - "app.kubernetes.io/name": "tidb-operator" - }, - "managed_fields": null, - "name": null, - "namespace": null, - "owner_references": null, - "resource_version": null, - "self_link": null, - "uid": null - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/usr/local/bin/tidb-controller-manager", - "-tidb-backup-manager-image=pingcap/tidb-backup-manager:v1.3.2", - "-tidb-discovery-image=pingcap/tidb-operator:v1.3.2", - "-cluster-scoped=true", - "-cluster-permission-node=true", - "-cluster-permission-pv=true", - "-cluster-permission-sc=true", - "-auto-failover=true", - "-pd-failover-period=5m", - "-tikv-failover-period=5m", - "-tiflash-failover-period=5m", - "-tidb-failover-period=5m", - "-dm-master-failover-period=5m", - "-dm-worker-failover-period=5m", - "-v=2" - ], - "env": [ - { - "name": "NAMESPACE", - "value": null, - "value_from": { - "config_map_key_ref": null, - "field_ref": { - "api_version": "v1", - "field_path": "metadata.namespace" - }, - "resource_field_ref": null, - "secret_key_ref": null - } - }, - { - "name": "TZ", - "value": "UTC", - "value_from": null - } - ], - "env_from": null, - "image": "pingcap/tidb-operator:v1.3.2", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": { - "_exec": null, - "failure_threshold": 10, - "http_get": null, - "initial_delay_seconds": 30, - "period_seconds": 10, - "success_threshold": 1, - "tcp_socket": { - "host": null, - "port": 6060 - }, - "termination_grace_period_seconds": null, - "timeout_seconds": 1 - }, - "name": "tidb-operator", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": null, - "requests": { - "cpu": "80m", - "memory": "50Mi" - } - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": null, - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": null, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": null, - "image_pull_secrets": null, - "init_containers": null, - "node_name": null, - "node_selector": null, - "overhead": null, - "preemption_policy": null, - "priority": null, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "tidb-controller-manager", - "service_account_name": "tidb-controller-manager", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": null, - "termination_grace_period_seconds": 30, - "tolerations": null, - "topology_spread_constraints": null, - "volumes": null - } - } - }, - "status": { - "available_replicas": 1, - "collision_count": null, - "conditions": [ - { - "last_transition_time": "2022-07-16T04:04:32+00:00", - "last_update_time": "2022-07-16T04:04:32+00:00", - "message": "Deployment has minimum availability.", - "reason": "MinimumReplicasAvailable", - "status": "True", - "type": "Available" - }, - { - "last_transition_time": "2022-07-16T04:04:31+00:00", - "last_update_time": "2022-07-16T04:04:34+00:00", - "message": "ReplicaSet \"tidb-controller-manager-75dd8c56c9\" has successfully progressed.", - "reason": "NewReplicaSetAvailable", - "status": "True", - "type": "Progressing" - } - ], - "observed_generation": 2, - "ready_replicas": 1, - "replicas": 1, - "unavailable_replicas": null, - "updated_replicas": 1 - } - }, - "tidb-scheduler": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "deployment.kubernetes.io/revision": "2", - "meta.helm.sh/release-name": "acto-test-operator", - "meta.helm.sh/release-namespace": "acto-namespace" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:31+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": 2, - "labels": { - "acto/tag": "operator-deployment", - "app.kubernetes.io/component": "scheduler", - "app.kubernetes.io/instance": "acto-test-operator", - "app.kubernetes.io/managed-by": "Helm", - "app.kubernetes.io/name": "tidb-operator", - "helm.sh/chart": "tidb-operator-v1-canary" - }, - "managed_fields": [ - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:meta.helm.sh/release-name": {}, - "f:meta.helm.sh/release-namespace": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:helm.sh/chart": {} - } - }, - "f:spec": { - "f:progressDeadlineSeconds": {}, - "f:replicas": {}, - "f:revisionHistoryLimit": {}, - "f:selector": {}, - "f:strategy": { - "f:rollingUpdate": { - ".": {}, - "f:maxSurge": {}, - "f:maxUnavailable": {} - }, - "f:type": {} - }, - "f:template": { - "f:metadata": { - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/name": {} - } - }, - "f:spec": { - "f:containers": { - "k:{\"name\":\"kube-scheduler\"}": { - ".": {}, - "f:command": {}, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:resources": { - ".": {}, - "f:limits": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - }, - "f:requests": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - } - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {}, - "f:volumeMounts": { - ".": {}, - "k:{\"mountPath\":\"/etc/kubernetes\"}": { - ".": {}, - "f:mountPath": {}, - "f:name": {} - } - } - }, - "k:{\"name\":\"tidb-scheduler\"}": { - ".": {}, - "f:command": {}, - "f:image": {}, - "f:imagePullPolicy": {}, - "f:name": {}, - "f:resources": { - ".": {}, - "f:limits": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - }, - "f:requests": { - ".": {}, - "f:cpu": {}, - "f:memory": {} - } - }, - "f:terminationMessagePath": {}, - "f:terminationMessagePolicy": {} - } - }, - "f:dnsPolicy": {}, - "f:restartPolicy": {}, - "f:schedulerName": {}, - "f:securityContext": {}, - "f:serviceAccount": {}, - "f:serviceAccountName": {}, - "f:terminationGracePeriodSeconds": {}, - "f:volumes": { - ".": {}, - "k:{\"name\":\"scheduler-config\"}": { - ".": {}, - "f:configMap": { - ".": {}, - "f:defaultMode": {}, - "f:name": {} - }, - "f:name": {} - } - } - } - } - } - }, - "manager": "helm", - "operation": "Update", - "time": "2022-07-16T04:04:31+00:00" - }, - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:labels": { - "f:acto/tag": {} - } - }, - "f:spec": { - "f:template": { - "f:metadata": { - "f:labels": { - "f:acto/tag": {} - } - } - } - } - }, - "manager": "OpenAPI-Generator", - "operation": "Update", - "time": "2022-07-16T04:04:33+00:00" - }, - { - "api_version": "apps/v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - "f:deployment.kubernetes.io/revision": {} - } - }, - "f:status": { - "f:availableReplicas": {}, - "f:conditions": { - ".": {}, - "k:{\"type\":\"Available\"}": { - ".": {}, - "f:lastTransitionTime": {}, - "f:lastUpdateTime": {}, - "f:message": {}, - "f:reason": {}, - "f:status": {}, - "f:type": {} - }, - "k:{\"type\":\"Progressing\"}": { - ".": {}, - "f:lastTransitionTime": {}, - "f:lastUpdateTime": {}, - "f:message": {}, - "f:reason": {}, - "f:status": {}, - "f:type": {} - } - }, - "f:observedGeneration": {}, - "f:readyReplicas": {}, - "f:replicas": {}, - "f:updatedReplicas": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - } - ], - "name": "tidb-scheduler", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "956", - "self_link": null, - "uid": "f5bbe5d3-897d-4ecd-9da9-c3e040140850" - }, - "spec": { - "min_ready_seconds": null, - "paused": null, - "progress_deadline_seconds": 600, - "replicas": 1, - "revision_history_limit": 10, - "selector": { - "match_expressions": null, - "match_labels": { - "app.kubernetes.io/component": "scheduler", - "app.kubernetes.io/instance": "acto-test-operator", - "app.kubernetes.io/name": "tidb-operator" - } - }, - "strategy": { - "rolling_update": { - "max_surge": "25%", - "max_unavailable": "25%" - }, - "type": "RollingUpdate" - }, - "template": { - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": null, - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "acto/tag": "operator-pod", - "app.kubernetes.io/component": "scheduler", - "app.kubernetes.io/instance": "acto-test-operator", - "app.kubernetes.io/name": "tidb-operator" - }, - "managed_fields": null, - "name": null, - "namespace": null, - "owner_references": null, - "resource_version": null, - "self_link": null, - "uid": null - }, - "spec": { - "active_deadline_seconds": null, - "affinity": null, - "automount_service_account_token": null, - "containers": [ - { - "args": null, - "command": [ - "/usr/local/bin/tidb-scheduler", - "-v=2", - "-port=10262" - ], - "env": null, - "env_from": null, - "image": "pingcap/tidb-operator:v1.3.2", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "tidb-scheduler", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": { - "cpu": "250m", - "memory": "150Mi" - }, - "requests": { - "cpu": "80m", - "memory": "50Mi" - } - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": null, - "working_dir": null - }, - { - "args": null, - "command": [ - "kube-scheduler", - "--v=2", - "--config=/etc/kubernetes/scheduler-config.yaml" - ], - "env": null, - "env_from": null, - "image": "k8s.gcr.io/kube-scheduler:v1.22.9", - "image_pull_policy": "IfNotPresent", - "lifecycle": null, - "liveness_probe": null, - "name": "kube-scheduler", - "ports": null, - "readiness_probe": null, - "resources": { - "limits": { - "cpu": "250m", - "memory": "150Mi" - }, - "requests": { - "cpu": "80m", - "memory": "50Mi" - } - }, - "security_context": null, - "startup_probe": null, - "stdin": null, - "stdin_once": null, - "termination_message_path": "/dev/termination-log", - "termination_message_policy": "File", - "tty": null, - "volume_devices": null, - "volume_mounts": [ - { - "mount_path": "/etc/kubernetes", - "mount_propagation": null, - "name": "scheduler-config", - "read_only": null, - "sub_path": null, - "sub_path_expr": null - } - ], - "working_dir": null - } - ], - "dns_config": null, - "dns_policy": "ClusterFirst", - "enable_service_links": null, - "ephemeral_containers": null, - "host_aliases": null, - "host_ipc": null, - "host_network": null, - "host_pid": null, - "hostname": null, - "image_pull_secrets": null, - "init_containers": null, - "node_name": null, - "node_selector": null, - "overhead": null, - "preemption_policy": null, - "priority": null, - "priority_class_name": null, - "readiness_gates": null, - "restart_policy": "Always", - "runtime_class_name": null, - "scheduler_name": "default-scheduler", - "security_context": { - "fs_group": null, - "fs_group_change_policy": null, - "run_as_group": null, - "run_as_non_root": null, - "run_as_user": null, - "se_linux_options": null, - "seccomp_profile": null, - "supplemental_groups": null, - "sysctls": null, - "windows_options": null - }, - "service_account": "tidb-scheduler", - "service_account_name": "tidb-scheduler", - "set_hostname_as_fqdn": null, - "share_process_namespace": null, - "subdomain": null, - "termination_grace_period_seconds": 30, - "tolerations": null, - "topology_spread_constraints": null, - "volumes": [ - { - "aws_elastic_block_store": null, - "azure_disk": null, - "azure_file": null, - "cephfs": null, - "cinder": null, - "config_map": { - "default_mode": 420, - "items": null, - "name": "tidb-scheduler-config", - "optional": null - }, - "csi": null, - "downward_api": null, - "empty_dir": null, - "ephemeral": null, - "fc": null, - "flex_volume": null, - "flocker": null, - "gce_persistent_disk": null, - "git_repo": null, - "glusterfs": null, - "host_path": null, - "iscsi": null, - "name": "scheduler-config", - "nfs": null, - "persistent_volume_claim": null, - "photon_persistent_disk": null, - "portworx_volume": null, - "projected": null, - "quobyte": null, - "rbd": null, - "scale_io": null, - "secret": null, - "storageos": null, - "vsphere_volume": null - } - ] - } - } - }, - "status": { - "available_replicas": 1, - "collision_count": null, - "conditions": [ - { - "last_transition_time": "2022-07-16T04:04:32+00:00", - "last_update_time": "2022-07-16T04:04:32+00:00", - "message": "Deployment has minimum availability.", - "reason": "MinimumReplicasAvailable", - "status": "True", - "type": "Available" - }, - { - "last_transition_time": "2022-07-16T04:04:31+00:00", - "last_update_time": "2022-07-16T04:04:34+00:00", - "message": "ReplicaSet \"tidb-scheduler-77fb4766d8\" has successfully progressed.", - "reason": "NewReplicaSetAvailable", - "status": "True", - "type": "Progressing" - } - ], - "observed_generation": 2, - "ready_replicas": 1, - "replicas": 1, - "unavailable_replicas": null, - "updated_replicas": 1 - } - } - }, - "config_map": { - "kube-root-ca.crt": { - "api_version": null, - "binary_data": null, - "data": { - "ca.crt": "-----BEGIN CERTIFICATE-----\nMIIC/jCCAeagAwIBAgIBADANBgkqhkiG9w0BAQsFADAVMRMwEQYDVQQDEwprdWJl\ncm5ldGVzMB4XDTIyMDcxNjA0MDMyMFoXDTMyMDcxMzA0MDMyMFowFTETMBEGA1UE\nAxMKa3ViZXJuZXRlczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL6C\nae9GQKXzRFKbNPh95mZt00AUMggGhM4S9qYhP1pI8Q04LW5jOJQOdo5cOJVRq+S0\nAN8TAnSou4VYvqQy8Fvwm/URiqYbu7xlkW/ac5u76+toZftlZK5da1C6rOmExQGd\nVV/VcuM68HAfuSUR15ZhSlSAr87lw9ubbM5suI2htqkiRvWvWEW481hOp16Gf+tL\n0eOtSqeX+rEs7u0waE9A6WVYJe3Oc7sBvn5jlg5/CmaKOPgRj5TJqNvzuKveJGOs\nWSm8TCCwscFlg2GWgcEDLFJ7I7SKiuiXNl8nB1EZMxbaZ4MLVt2hHhtvJ6eiJa1J\ni95bn6rMtEbsEYjr58UCAwEAAaNZMFcwDgYDVR0PAQH/BAQDAgKkMA8GA1UdEwEB\n/wQFMAMBAf8wHQYDVR0OBBYEFAd41tTUjV8SGxzSir2wEsfZ7VX0MBUGA1UdEQQO\nMAyCCmt1YmVybmV0ZXMwDQYJKoZIhvcNAQELBQADggEBAJG/kidbZfg92iBWSRvJ\no6k5bLlv5+powObWeaH5qSt3pZPPsYbZLvkFr6hO93XCFxy3Z+0MfEAT1kTUpT+D\nY4QuF98ZFT0gApkxklHeTl4oiU4SNw1IDpwmnaoQ4bfiZ0igjPxej6pnzw+CWkQu\ny7sRFw9xFV9YtZrTr2J/Mjlg6m8dNDbsg/mT6tAymn1nNqeXXZXlXgtKp8Y8XK1v\n6NEuLC/FphmSncLMu1CnxReLGeH1YZ78+uOnHIF/lm6HY+kprRR++FtKjvNx9IBv\nkxVXTqr6QyxHt4GTJU6EhASdqptxemEm216SDfBumadu/syRQtSK2/ZdcU1F4VM9\n8Yc=\n-----END CERTIFICATE-----\n" - }, - "immutable": null, - "kind": null, - "metadata": { - "annotations": { - "kubernetes.io/description": "Contains a CA bundle that can be used to verify the kube-apiserver when using internal endpoints such as the internal service IP or kubernetes.default.svc. No other usage is guaranteed across distributions of Kubernetes clusters." - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:31+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": null, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:data": { - ".": {}, - "f:ca.crt": {} - }, - "f:metadata": { - "f:annotations": { - ".": {}, - "f:kubernetes.io/description": {} - } - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:31+00:00" - } - ], - "name": "kube-root-ca.crt", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "739", - "self_link": null, - "uid": "ed3bd44f-faf1-45ee-b937-b930497ec980" - } - }, - "test-cluster-pd-3731616": { - "api_version": null, - "binary_data": null, - "data": { - "config-file": "[dashboard]\n internal-proxy = true\n", - "startup-script": "#!/bin/sh\n\n# This script is used to start pd containers in kubernetes cluster\n\n# Use DownwardAPIVolumeFiles to store informations of the cluster:\n# https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/#the-downward-api\n#\n# runmode=\"normal/debug\"\n#\n\nset -uo pipefail\n\nANNOTATIONS=\"/etc/podinfo/annotations\"\n\nif [[ ! -f \"${ANNOTATIONS}\" ]]\nthen\n echo \"${ANNOTATIONS} does't exist, exiting.\"\n exit 1\nfi\nsource ${ANNOTATIONS} 2>/dev/null\n\nrunmode=${runmode:-normal}\nif [[ X${runmode} == Xdebug ]]\nthen\n echo \"entering debug mode.\"\n tail -f /dev/null\nfi\n\n# Use HOSTNAME if POD_NAME is unset for backward compatibility.\nPOD_NAME=${POD_NAME:-$HOSTNAME}\n# the general form of variable PEER_SERVICE_NAME is: \"-pd-peer\"\ncluster_name=`echo ${PEER_SERVICE_NAME} | sed 's/-pd-peer//'`\ndomain=\"${POD_NAME}.${PEER_SERVICE_NAME}.${NAMESPACE}.svc\"\ndiscovery_url=\"${cluster_name}-discovery.${NAMESPACE}.svc:10261\"\nencoded_domain_url=`echo ${domain}:2380 | base64 | tr \"\\n\" \" \" | sed \"s/ //g\"`\nelapseTime=0\nperiod=1\nthreshold=30\nwhile true; do\nsleep ${period}\nelapseTime=$(( elapseTime+period ))\n\nif [[ ${elapseTime} -ge ${threshold} ]]\nthen\necho \"waiting for pd cluster ready timeout\" >&2\nexit 1\nfi\n\nif nslookup ${domain} 2>/dev/null\nthen\necho \"nslookup domain ${domain}.svc success\"\nbreak\nelse\necho \"nslookup domain ${domain} failed\" >&2\nfi\ndone\n\nARGS=\"--data-dir=/var/lib/pd \\\n--name=${POD_NAME} \\\n--peer-urls=http://0.0.0.0:2380 \\\n--advertise-peer-urls=http://${domain}:2380 \\\n--client-urls=http://0.0.0.0:2379 \\\n--advertise-client-urls=http://${domain}:2379 \\\n--config=/etc/pd/pd.toml \\\n\"\n\nif [[ -f /var/lib/pd/join ]]\nthen\n# The content of the join file is:\n# demo-pd-0=http://demo-pd-0.demo-pd-peer.demo.svc:2380,demo-pd-1=http://demo-pd-1.demo-pd-peer.demo.svc:2380\n# The --join args must be:\n# --join=http://demo-pd-0.demo-pd-peer.demo.svc:2380,http://demo-pd-1.demo-pd-peer.demo.svc:2380\njoin=`cat /var/lib/pd/join | tr \",\" \"\\n\" | awk -F'=' '{print $2}' | tr \"\\n\" \",\"`\njoin=${join%,}\nARGS=\"${ARGS} --join=${join}\"\nelif [[ ! -d /var/lib/pd/member/wal ]]\nthen\nuntil result=$(wget -qO- -T 3 http://${discovery_url}/new/${encoded_domain_url} 2>/dev/null); do\necho \"waiting for discovery service to return start args ...\"\nsleep $((RANDOM % 5))\ndone\nARGS=\"${ARGS}${result}\"\nfi\n\necho \"starting pd-server ...\"\nsleep $((RANDOM % 10))\necho \"/pd-server ${ARGS}\"\nexec /pd-server ${ARGS}\n" - }, - "immutable": null, - "kind": null, - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:data": { - ".": {}, - "f:config-file": {}, - "f:startup-script": {} - }, - "f:metadata": { - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - } - ], - "name": "test-cluster-pd-3731616", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "878", - "self_link": null, - "uid": "6ab1df24-1602-4e3d-9846-4d70791b58a8" - } - }, - "test-cluster-tidb-6662316": { - "api_version": null, - "binary_data": null, - "data": { - "config-file": "[log]\n [log.file]\n max-backups = 3\n\n[performance]\n tcp-keep-alive = true\n", - "startup-script": "#!/bin/sh\n\n# This script is used to start tidb containers in kubernetes cluster\n\n# Use DownwardAPIVolumeFiles to store informations of the cluster:\n# https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/#the-downward-api\n#\n# runmode=\"normal/debug\"\n#\nset -uo pipefail\n\nANNOTATIONS=\"/etc/podinfo/annotations\"\n\nif [[ ! -f \"${ANNOTATIONS}\" ]]\nthen\n echo \"${ANNOTATIONS} does't exist, exiting.\"\n exit 1\nfi\nsource ${ANNOTATIONS} 2>/dev/null\nrunmode=${runmode:-normal}\nif [[ X${runmode} == Xdebug ]]\nthen\n echo \"entering debug mode.\"\n tail -f /dev/null\nfi\n\n# Use HOSTNAME if POD_NAME is unset for backward compatibility.\nPOD_NAME=${POD_NAME:-$HOSTNAME}\nARGS=\"--store=tikv \\\n--advertise-address=${POD_NAME}.${HEADLESS_SERVICE_NAME}.${NAMESPACE}.svc \\\n--host=0.0.0.0 \\\n--path=${CLUSTER_NAME}-pd:2379 \\\n--config=/etc/tidb/tidb.toml\n\"\n\nif [[ X${BINLOG_ENABLED:-} == Xtrue ]]\nthen\n ARGS=\"${ARGS} --enable-binlog=true\"\nfi\n\nSLOW_LOG_FILE=${SLOW_LOG_FILE:-\"\"}\nif [[ ! -z \"${SLOW_LOG_FILE}\" ]]\nthen\n ARGS=\"${ARGS} --log-slow-query=${SLOW_LOG_FILE:-}\"\nfi\n\necho \"start tidb-server ...\"\necho \"/tidb-server ${ARGS}\"\nexec /tidb-server ${ARGS}\n" - }, - "immutable": null, - "kind": null, - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:21+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:data": { - ".": {}, - "f:config-file": {}, - "f:startup-script": {} - }, - "f:metadata": { - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:21+00:00" - } - ], - "name": "test-cluster-tidb-6662316", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "1402", - "self_link": null, - "uid": "55759e32-c6e7-40ae-85f5-70e4756dc853" - } - }, - "test-cluster-tikv-3831336": { - "api_version": null, - "binary_data": null, - "data": { - "config-file": "log-level = \"info\"\n", - "startup-script": "#!/bin/sh\n\n# This script is used to start tikv containers in kubernetes cluster\n\n# Use DownwardAPIVolumeFiles to store informations of the cluster:\n# https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/#the-downward-api\n#\n# runmode=\"normal/debug\"\n#\n\nset -uo pipefail\n\nANNOTATIONS=\"/etc/podinfo/annotations\"\n\nif [[ ! -f \"${ANNOTATIONS}\" ]]\nthen\n echo \"${ANNOTATIONS} does't exist, exiting.\"\n exit 1\nfi\nsource ${ANNOTATIONS} 2>/dev/null\n\nrunmode=${runmode:-normal}\nif [[ X${runmode} == Xdebug ]]\nthen\n\techo \"entering debug mode.\"\n\ttail -f /dev/null\nfi\n\n# Use HOSTNAME if POD_NAME is unset for backward compatibility.\nPOD_NAME=${POD_NAME:-$HOSTNAME}\nARGS=\"--pd=http://${CLUSTER_NAME}-pd:2379 \\\n--advertise-addr=${POD_NAME}.${HEADLESS_SERVICE_NAME}.${NAMESPACE}.svc:20160 \\\n--addr=0.0.0.0:20160 \\\n--status-addr=0.0.0.0:20180 \\\n--advertise-status-addr=${POD_NAME}.${HEADLESS_SERVICE_NAME}.${NAMESPACE}.svc:20180 \\\n--data-dir=/var/lib/tikv \\\n--capacity=${CAPACITY} \\\n--config=/etc/tikv/tikv.toml\n\"\n\nif [ ! -z \"${STORE_LABELS:-}\" ]; then\n LABELS=\" --labels ${STORE_LABELS} \"\n ARGS=\"${ARGS}${LABELS}\"\nfi\n\necho \"starting tikv-server ...\"\necho \"/tikv-server ${ARGS}\"\nexec /tikv-server ${ARGS}\n" - }, - "immutable": null, - "kind": null, - "metadata": { - "annotations": null, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:02+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:data": { - ".": {}, - "f:config-file": {}, - "f:startup-script": {} - }, - "f:metadata": { - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:02+00:00" - } - ], - "name": "test-cluster-tikv-3831336", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "1151", - "self_link": null, - "uid": "8126a0ba-d423-4bab-81ba-8e78a31cd0fc" - } - }, - "tidb-scheduler-config": { - "api_version": null, - "binary_data": null, - "data": { - "scheduler-config.yaml": "\napiVersion: kubescheduler.config.k8s.io/v1beta1\nkind: KubeSchedulerConfiguration\nleaderElection:\n leaderElect: true\n resourceNamespace: acto-namespace\n resourceName: tidb-scheduler\nhealthzBindAddress: 0.0.0.0:10261\nmetricsBindAddress: 0.0.0.0:10261\nprofiles:\n - schedulerName: tidb-scheduler\nextenders:\n - urlPrefix: http://127.0.0.1:10262/scheduler\n filterVerb: filter\n preemptVerb: preempt\n weight: 1\n enableHTTPS: false\n httpTimeout: 30s" - }, - "immutable": null, - "kind": null, - "metadata": { - "annotations": { - "meta.helm.sh/release-name": "acto-test-operator", - "meta.helm.sh/release-namespace": "acto-namespace" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:31+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "scheduler", - "app.kubernetes.io/instance": "acto-test-operator", - "app.kubernetes.io/managed-by": "Helm", - "app.kubernetes.io/name": "tidb-operator", - "helm.sh/chart": "tidb-operator-v1-canary" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:data": { - ".": {}, - "f:scheduler-config.yaml": {} - }, - "f:metadata": { - "f:annotations": { - ".": {}, - "f:meta.helm.sh/release-name": {}, - "f:meta.helm.sh/release-namespace": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:helm.sh/chart": {} - } - } - }, - "manager": "helm", - "operation": "Update", - "time": "2022-07-16T04:04:31+00:00" - } - ], - "name": "tidb-scheduler-config", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "751", - "self_link": null, - "uid": "f906e4c0-a032-4f50-b412-7405cdcad70f" - } - } - }, - "service": { - "test-cluster-discovery": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pingcap.com/last-applied-configuration": "{\"ports\":[{\"name\":\"discovery\",\"protocol\":\"TCP\",\"port\":10261,\"targetPort\":10261},{\"name\":\"proxy\",\"protocol\":\"TCP\",\"port\":10262,\"targetPort\":10262}],\"selector\":{\"app.kubernetes.io/component\":\"discovery\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"},\"type\":\"ClusterIP\"}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "discovery", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:internalTrafficPolicy": {}, - "f:ports": { - ".": {}, - "k:{\"port\":10261,\"protocol\":\"TCP\"}": { - ".": {}, - "f:name": {}, - "f:port": {}, - "f:protocol": {}, - "f:targetPort": {} - }, - "k:{\"port\":10262,\"protocol\":\"TCP\"}": { - ".": {}, - "f:name": {}, - "f:port": {}, - "f:protocol": {}, - "f:targetPort": {} - } - }, - "f:selector": {}, - "f:sessionAffinity": {}, - "f:type": {} - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - } - ], - "name": "test-cluster-discovery", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "928", - "self_link": null, - "uid": "96e08973-aa7f-470b-bce0-4880f8c5bede" - }, - "spec": { - "allocate_load_balancer_node_ports": null, - "cluster_ip": "10.96.223.225", - "cluster_i_ps": [ - "10.96.223.225" - ], - "external_i_ps": null, - "external_name": null, - "external_traffic_policy": null, - "health_check_node_port": null, - "internal_traffic_policy": "Cluster", - "ip_families": [ - "IPv4" - ], - "ip_family_policy": "SingleStack", - "load_balancer_class": null, - "load_balancer_ip": null, - "load_balancer_source_ranges": null, - "ports": [ - { - "app_protocol": null, - "name": "discovery", - "node_port": null, - "port": 10261, - "protocol": "TCP", - "target_port": 10261 - }, - { - "app_protocol": null, - "name": "proxy", - "node_port": null, - "port": 10262, - "protocol": "TCP", - "target_port": 10262 - } - ], - "publish_not_ready_addresses": null, - "selector": { - "app.kubernetes.io/component": "discovery", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "session_affinity": "None", - "session_affinity_config": null, - "topology_keys": null, - "type": "ClusterIP" - }, - "status": { - "conditions": null, - "load_balancer": { - "ingress": null - } - } - }, - "test-cluster-pd": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pingcap.com/last-applied-configuration": "{\"ports\":[{\"name\":\"client\",\"protocol\":\"TCP\",\"port\":2379,\"targetPort\":2379}],\"selector\":{\"app.kubernetes.io/component\":\"pd\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"},\"type\":\"ClusterIP\"}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "app.kubernetes.io/used-by": "end-user" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:app.kubernetes.io/used-by": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:internalTrafficPolicy": {}, - "f:ports": { - ".": {}, - "k:{\"port\":2379,\"protocol\":\"TCP\"}": { - ".": {}, - "f:name": {}, - "f:port": {}, - "f:protocol": {}, - "f:targetPort": {} - } - }, - "f:selector": {}, - "f:sessionAffinity": {}, - "f:type": {} - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - } - ], - "name": "test-cluster-pd", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "869", - "self_link": null, - "uid": "6298e381-3d22-484d-82fd-97ddc8b64d69" - }, - "spec": { - "allocate_load_balancer_node_ports": null, - "cluster_ip": "10.96.66.106", - "cluster_i_ps": [ - "10.96.66.106" - ], - "external_i_ps": null, - "external_name": null, - "external_traffic_policy": null, - "health_check_node_port": null, - "internal_traffic_policy": "Cluster", - "ip_families": [ - "IPv4" - ], - "ip_family_policy": "SingleStack", - "load_balancer_class": null, - "load_balancer_ip": null, - "load_balancer_source_ranges": null, - "ports": [ - { - "app_protocol": null, - "name": "client", - "node_port": null, - "port": 2379, - "protocol": "TCP", - "target_port": 2379 - } - ], - "publish_not_ready_addresses": null, - "selector": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "session_affinity": "None", - "session_affinity_config": null, - "topology_keys": null, - "type": "ClusterIP" - }, - "status": { - "conditions": null, - "load_balancer": { - "ingress": null - } - } - }, - "test-cluster-pd-peer": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pingcap.com/last-applied-configuration": "{\"ports\":[{\"name\":\"tcp-peer-2380\",\"protocol\":\"TCP\",\"port\":2380,\"targetPort\":2380},{\"name\":\"tcp-peer-2379\",\"protocol\":\"TCP\",\"port\":2379,\"targetPort\":2379}],\"selector\":{\"app.kubernetes.io/component\":\"pd\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"},\"clusterIP\":\"None\",\"publishNotReadyAddresses\":true}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "app.kubernetes.io/used-by": "peer" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:app.kubernetes.io/used-by": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:clusterIP": {}, - "f:internalTrafficPolicy": {}, - "f:ports": { - ".": {}, - "k:{\"port\":2379,\"protocol\":\"TCP\"}": { - ".": {}, - "f:name": {}, - "f:port": {}, - "f:protocol": {}, - "f:targetPort": {} - }, - "k:{\"port\":2380,\"protocol\":\"TCP\"}": { - ".": {}, - "f:name": {}, - "f:port": {}, - "f:protocol": {}, - "f:targetPort": {} - } - }, - "f:publishNotReadyAddresses": {}, - "f:selector": {}, - "f:sessionAffinity": {}, - "f:type": {} - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - } - ], - "name": "test-cluster-pd-peer", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "873", - "self_link": null, - "uid": "e05712e0-1a28-4672-b0bf-155a8833eabc" - }, - "spec": { - "allocate_load_balancer_node_ports": null, - "cluster_ip": "None", - "cluster_i_ps": [ - "None" - ], - "external_i_ps": null, - "external_name": null, - "external_traffic_policy": null, - "health_check_node_port": null, - "internal_traffic_policy": "Cluster", - "ip_families": [ - "IPv4" - ], - "ip_family_policy": "SingleStack", - "load_balancer_class": null, - "load_balancer_ip": null, - "load_balancer_source_ranges": null, - "ports": [ - { - "app_protocol": null, - "name": "tcp-peer-2380", - "node_port": null, - "port": 2380, - "protocol": "TCP", - "target_port": 2380 - }, - { - "app_protocol": null, - "name": "tcp-peer-2379", - "node_port": null, - "port": 2379, - "protocol": "TCP", - "target_port": 2379 - } - ], - "publish_not_ready_addresses": true, - "selector": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "session_affinity": "None", - "session_affinity_config": null, - "topology_keys": null, - "type": "ClusterIP" - }, - "status": { - "conditions": null, - "load_balancer": { - "ingress": null - } - } - }, - "test-cluster-tidb": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pingcap.com/last-applied-configuration": "{\"ports\":[{\"name\":\"mysql-client\",\"protocol\":\"TCP\",\"port\":4000,\"targetPort\":4000,\"nodePort\":30071},{\"name\":\"status\",\"protocol\":\"TCP\",\"port\":10080,\"targetPort\":10080,\"nodePort\":32223}],\"selector\":{\"app.kubernetes.io/component\":\"tidb\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"},\"type\":\"NodePort\",\"externalTrafficPolicy\":\"Local\"}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:21+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "app.kubernetes.io/used-by": "end-user" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:app.kubernetes.io/used-by": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:externalTrafficPolicy": {}, - "f:internalTrafficPolicy": {}, - "f:ports": { - ".": {}, - "k:{\"port\":4000,\"protocol\":\"TCP\"}": { - ".": {}, - "f:name": {}, - "f:port": {}, - "f:protocol": {}, - "f:targetPort": {} - }, - "k:{\"port\":10080,\"protocol\":\"TCP\"}": { - ".": {}, - "f:name": {}, - "f:port": {}, - "f:protocol": {}, - "f:targetPort": {} - } - }, - "f:selector": {}, - "f:sessionAffinity": {}, - "f:type": {} - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:21+00:00" - } - ], - "name": "test-cluster-tidb", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "1495", - "self_link": null, - "uid": "0125987a-daf2-4770-820b-b02387798dac" - }, - "spec": { - "allocate_load_balancer_node_ports": null, - "cluster_ip": "10.96.215.233", - "cluster_i_ps": [ - "10.96.215.233" - ], - "external_i_ps": null, - "external_name": null, - "external_traffic_policy": "Local", - "health_check_node_port": null, - "internal_traffic_policy": "Cluster", - "ip_families": [ - "IPv4" - ], - "ip_family_policy": "SingleStack", - "load_balancer_class": null, - "load_balancer_ip": null, - "load_balancer_source_ranges": null, - "ports": [ - { - "app_protocol": null, - "name": "mysql-client", - "node_port": 30071, - "port": 4000, - "protocol": "TCP", - "target_port": 4000 - }, - { - "app_protocol": null, - "name": "status", - "node_port": 32223, - "port": 10080, - "protocol": "TCP", - "target_port": 10080 - } - ], - "publish_not_ready_addresses": null, - "selector": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "session_affinity": "None", - "session_affinity_config": null, - "topology_keys": null, - "type": "NodePort" - }, - "status": { - "conditions": null, - "load_balancer": { - "ingress": null - } - } - }, - "test-cluster-tidb-peer": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pingcap.com/last-applied-configuration": "{\"ports\":[{\"name\":\"status\",\"protocol\":\"TCP\",\"port\":10080,\"targetPort\":10080}],\"selector\":{\"app.kubernetes.io/component\":\"tidb\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"},\"clusterIP\":\"None\",\"publishNotReadyAddresses\":true}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:21+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "app.kubernetes.io/used-by": "peer" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:app.kubernetes.io/used-by": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:clusterIP": {}, - "f:internalTrafficPolicy": {}, - "f:ports": { - ".": {}, - "k:{\"port\":10080,\"protocol\":\"TCP\"}": { - ".": {}, - "f:name": {}, - "f:port": {}, - "f:protocol": {}, - "f:targetPort": {} - } - }, - "f:publishNotReadyAddresses": {}, - "f:selector": {}, - "f:sessionAffinity": {}, - "f:type": {} - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:21+00:00" - } - ], - "name": "test-cluster-tidb-peer", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "1395", - "self_link": null, - "uid": "18491336-1753-4300-ab09-6cdaedda382d" - }, - "spec": { - "allocate_load_balancer_node_ports": null, - "cluster_ip": "None", - "cluster_i_ps": [ - "None" - ], - "external_i_ps": null, - "external_name": null, - "external_traffic_policy": null, - "health_check_node_port": null, - "internal_traffic_policy": "Cluster", - "ip_families": [ - "IPv4" - ], - "ip_family_policy": "SingleStack", - "load_balancer_class": null, - "load_balancer_ip": null, - "load_balancer_source_ranges": null, - "ports": [ - { - "app_protocol": null, - "name": "status", - "node_port": null, - "port": 10080, - "protocol": "TCP", - "target_port": 10080 - } - ], - "publish_not_ready_addresses": true, - "selector": { - "app.kubernetes.io/component": "tidb", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "session_affinity": "None", - "session_affinity_config": null, - "topology_keys": null, - "type": "ClusterIP" - }, - "status": { - "conditions": null, - "load_balancer": { - "ingress": null - } - } - }, - "test-cluster-tikv-peer": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pingcap.com/last-applied-configuration": "{\"ports\":[{\"name\":\"peer\",\"protocol\":\"TCP\",\"port\":20160,\"targetPort\":20160}],\"selector\":{\"app.kubernetes.io/component\":\"tikv\",\"app.kubernetes.io/instance\":\"test-cluster\",\"app.kubernetes.io/managed-by\":\"tidb-operator\",\"app.kubernetes.io/name\":\"tidb-cluster\"},\"clusterIP\":\"None\",\"publishNotReadyAddresses\":true}" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:02+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": null, - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "app.kubernetes.io/used-by": "peer" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:pingcap.com/last-applied-configuration": {} - }, - "f:labels": { - ".": {}, - "f:app.kubernetes.io/component": {}, - "f:app.kubernetes.io/instance": {}, - "f:app.kubernetes.io/managed-by": {}, - "f:app.kubernetes.io/name": {}, - "f:app.kubernetes.io/used-by": {} - }, - "f:ownerReferences": { - ".": {}, - "k:{\"uid\":\"a0f2ec9c-9bf1-4697-ac30-42585a8e8e81\"}": {} - } - }, - "f:spec": { - "f:clusterIP": {}, - "f:internalTrafficPolicy": {}, - "f:ports": { - ".": {}, - "k:{\"port\":20160,\"protocol\":\"TCP\"}": { - ".": {}, - "f:name": {}, - "f:port": {}, - "f:protocol": {}, - "f:targetPort": {} - } - }, - "f:publishNotReadyAddresses": {}, - "f:selector": {}, - "f:sessionAffinity": {}, - "f:type": {} - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:02+00:00" - } - ], - "name": "test-cluster-tikv-peer", - "namespace": "acto-namespace", - "owner_references": [ - { - "api_version": "pingcap.com/v1alpha1", - "block_owner_deletion": true, - "controller": true, - "kind": "TidbCluster", - "name": "test-cluster", - "uid": "a0f2ec9c-9bf1-4697-ac30-42585a8e8e81" - } - ], - "resource_version": "1149", - "self_link": null, - "uid": "09883ba0-1719-47e9-ba5a-691cf60af58e" - }, - "spec": { - "allocate_load_balancer_node_ports": null, - "cluster_ip": "None", - "cluster_i_ps": [ - "None" - ], - "external_i_ps": null, - "external_name": null, - "external_traffic_policy": null, - "health_check_node_port": null, - "internal_traffic_policy": "Cluster", - "ip_families": [ - "IPv4" - ], - "ip_family_policy": "SingleStack", - "load_balancer_class": null, - "load_balancer_ip": null, - "load_balancer_source_ranges": null, - "ports": [ - { - "app_protocol": null, - "name": "peer", - "node_port": null, - "port": 20160, - "protocol": "TCP", - "target_port": 20160 - } - ], - "publish_not_ready_addresses": true, - "selector": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster" - }, - "session_affinity": "None", - "session_affinity_config": null, - "topology_keys": null, - "type": "ClusterIP" - }, - "status": { - "conditions": null, - "load_balancer": { - "ingress": null - } - } - } - }, - "pvc": { - "pd-test-cluster-pd-0": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pv.kubernetes.io/bind-completed": "yes", - "pv.kubernetes.io/bound-by-controller": "yes", - "tidb.pingcap.com/pod-name": "test-cluster-pd-0", - "volume.beta.kubernetes.io/storage-provisioner": "rancher.io/local-path", - "volume.kubernetes.io/selected-node": "acto-cluster-0-worker3" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": [ - "kubernetes.io/pvc-protection" - ], - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/member-id": "5292350542734693704", - "tidb.pingcap.com/pod-name": "test-cluster-pd-0" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:volume.kubernetes.io/selected-node": {} - } - } - }, - "manager": "kube-scheduler", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:accessModes": {}, - "f:capacity": { - ".": {}, - "f:storage": {} - }, - "f:phase": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:39+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - "f:tidb.pingcap.com/pod-name": {} - }, - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/member-id": {}, - "f:tidb.pingcap.com/pod-name": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:23+00:00" - } - ], - "name": "pd-test-cluster-pd-0", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "1467", - "self_link": null, - "uid": "c79c0c4e-cabc-486a-adf0-b2bbdb39bab1" - }, - "spec": { - "access_modes": [ - "ReadWriteOnce" - ], - "data_source": null, - "resources": { - "limits": null, - "requests": { - "storage": "10Gi" - } - }, - "selector": null, - "storage_class_name": "standard", - "volume_mode": "Filesystem", - "volume_name": "pvc-c79c0c4e-cabc-486a-adf0-b2bbdb39bab1" - }, - "status": { - "access_modes": [ - "ReadWriteOnce" - ], - "capacity": { - "storage": "10Gi" - }, - "conditions": null, - "phase": "Bound" - } - }, - "pd-test-cluster-pd-1": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pv.kubernetes.io/bind-completed": "yes", - "pv.kubernetes.io/bound-by-controller": "yes", - "tidb.pingcap.com/pod-name": "test-cluster-pd-1", - "volume.beta.kubernetes.io/storage-provisioner": "rancher.io/local-path", - "volume.kubernetes.io/selected-node": "acto-cluster-0-worker2" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": [ - "kubernetes.io/pvc-protection" - ], - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/member-id": "10253759161720476298", - "tidb.pingcap.com/pod-name": "test-cluster-pd-1" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:volume.kubernetes.io/selected-node": {} - } - } - }, - "manager": "kube-scheduler", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:accessModes": {}, - "f:capacity": { - ".": {}, - "f:storage": {} - }, - "f:phase": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:39+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - "f:tidb.pingcap.com/pod-name": {} - }, - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/member-id": {}, - "f:tidb.pingcap.com/pod-name": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:22+00:00" - } - ], - "name": "pd-test-cluster-pd-1", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "1439", - "self_link": null, - "uid": "fd9f4138-610b-438b-ac40-fe4c8689b62c" - }, - "spec": { - "access_modes": [ - "ReadWriteOnce" - ], - "data_source": null, - "resources": { - "limits": null, - "requests": { - "storage": "10Gi" - } - }, - "selector": null, - "storage_class_name": "standard", - "volume_mode": "Filesystem", - "volume_name": "pvc-fd9f4138-610b-438b-ac40-fe4c8689b62c" - }, - "status": { - "access_modes": [ - "ReadWriteOnce" - ], - "capacity": { - "storage": "10Gi" - }, - "conditions": null, - "phase": "Bound" - } - }, - "pd-test-cluster-pd-2": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pv.kubernetes.io/bind-completed": "yes", - "pv.kubernetes.io/bound-by-controller": "yes", - "tidb.pingcap.com/pod-name": "test-cluster-pd-2", - "volume.beta.kubernetes.io/storage-provisioner": "rancher.io/local-path", - "volume.kubernetes.io/selected-node": "acto-cluster-0-worker" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:04:34+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": [ - "kubernetes.io/pvc-protection" - ], - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "pd", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/member-id": "5110389971597451409", - "tidb.pingcap.com/pod-name": "test-cluster-pd-2" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:volume.kubernetes.io/selected-node": {} - } - } - }, - "manager": "kube-scheduler", - "operation": "Update", - "time": "2022-07-16T04:04:34+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:accessModes": {}, - "f:capacity": { - ".": {}, - "f:storage": {} - }, - "f:phase": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:04:40+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - "f:tidb.pingcap.com/pod-name": {} - }, - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/member-id": {}, - "f:tidb.pingcap.com/pod-name": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:23+00:00" - } - ], - "name": "pd-test-cluster-pd-2", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "1461", - "self_link": null, - "uid": "7b6511c6-cffc-4090-997f-c4a0bb16e61d" - }, - "spec": { - "access_modes": [ - "ReadWriteOnce" - ], - "data_source": null, - "resources": { - "limits": null, - "requests": { - "storage": "10Gi" - } - }, - "selector": null, - "storage_class_name": "standard", - "volume_mode": "Filesystem", - "volume_name": "pvc-7b6511c6-cffc-4090-997f-c4a0bb16e61d" - }, - "status": { - "access_modes": [ - "ReadWriteOnce" - ], - "capacity": { - "storage": "10Gi" - }, - "conditions": null, - "phase": "Bound" - } - }, - "tikv-test-cluster-tikv-0": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pv.kubernetes.io/bind-completed": "yes", - "pv.kubernetes.io/bound-by-controller": "yes", - "tidb.pingcap.com/pod-name": "test-cluster-tikv-0", - "volume.beta.kubernetes.io/storage-provisioner": "rancher.io/local-path", - "volume.kubernetes.io/selected-node": "acto-cluster-0-worker3" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:02+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": [ - "kubernetes.io/pvc-protection" - ], - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/pod-name": "test-cluster-tikv-0", - "tidb.pingcap.com/store-id": "4" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:volume.kubernetes.io/selected-node": {} - } - } - }, - "manager": "kube-scheduler", - "operation": "Update", - "time": "2022-07-16T04:05:02+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:accessModes": {}, - "f:capacity": { - ".": {}, - "f:storage": {} - }, - "f:phase": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:06+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - "f:tidb.pingcap.com/pod-name": {} - }, - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/pod-name": {}, - "f:tidb.pingcap.com/store-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:24+00:00" - } - ], - "name": "tikv-test-cluster-tikv-0", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "1479", - "self_link": null, - "uid": "ff33fd13-d1db-4a79-a1ea-addae5689248" - }, - "spec": { - "access_modes": [ - "ReadWriteOnce" - ], - "data_source": null, - "resources": { - "limits": null, - "requests": { - "storage": "100Gi" - } - }, - "selector": null, - "storage_class_name": "standard", - "volume_mode": "Filesystem", - "volume_name": "pvc-ff33fd13-d1db-4a79-a1ea-addae5689248" - }, - "status": { - "access_modes": [ - "ReadWriteOnce" - ], - "capacity": { - "storage": "100Gi" - }, - "conditions": null, - "phase": "Bound" - } - }, - "tikv-test-cluster-tikv-1": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pv.kubernetes.io/bind-completed": "yes", - "pv.kubernetes.io/bound-by-controller": "yes", - "tidb.pingcap.com/pod-name": "test-cluster-tikv-1", - "volume.beta.kubernetes.io/storage-provisioner": "rancher.io/local-path", - "volume.kubernetes.io/selected-node": "acto-cluster-0-worker2" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:02+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": [ - "kubernetes.io/pvc-protection" - ], - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/pod-name": "test-cluster-tikv-1", - "tidb.pingcap.com/store-id": "1" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:volume.kubernetes.io/selected-node": {} - } - } - }, - "manager": "kube-scheduler", - "operation": "Update", - "time": "2022-07-16T04:05:02+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:accessModes": {}, - "f:capacity": { - ".": {}, - "f:storage": {} - }, - "f:phase": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:05+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - "f:tidb.pingcap.com/pod-name": {} - }, - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/pod-name": {}, - "f:tidb.pingcap.com/store-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:25+00:00" - } - ], - "name": "tikv-test-cluster-tikv-1", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "1488", - "self_link": null, - "uid": "5ae98b49-58e3-4013-892e-62c1fb952cfe" - }, - "spec": { - "access_modes": [ - "ReadWriteOnce" - ], - "data_source": null, - "resources": { - "limits": null, - "requests": { - "storage": "100Gi" - } - }, - "selector": null, - "storage_class_name": "standard", - "volume_mode": "Filesystem", - "volume_name": "pvc-5ae98b49-58e3-4013-892e-62c1fb952cfe" - }, - "status": { - "access_modes": [ - "ReadWriteOnce" - ], - "capacity": { - "storage": "100Gi" - }, - "conditions": null, - "phase": "Bound" - } - }, - "tikv-test-cluster-tikv-2": { - "api_version": null, - "kind": null, - "metadata": { - "annotations": { - "pv.kubernetes.io/bind-completed": "yes", - "pv.kubernetes.io/bound-by-controller": "yes", - "tidb.pingcap.com/pod-name": "test-cluster-tikv-2", - "volume.beta.kubernetes.io/storage-provisioner": "rancher.io/local-path", - "volume.kubernetes.io/selected-node": "acto-cluster-0-worker" - }, - "cluster_name": null, - "creation_timestamp": "2022-07-16T04:05:02+00:00", - "deletion_grace_period_seconds": null, - "deletion_timestamp": null, - "finalizers": [ - "kubernetes.io/pvc-protection" - ], - "generate_name": null, - "generation": null, - "labels": { - "app.kubernetes.io/component": "tikv", - "app.kubernetes.io/instance": "test-cluster", - "app.kubernetes.io/managed-by": "tidb-operator", - "app.kubernetes.io/name": "tidb-cluster", - "tidb.pingcap.com/cluster-id": "7120816513896392341", - "tidb.pingcap.com/pod-name": "test-cluster-tikv-2", - "tidb.pingcap.com/store-id": "5" - }, - "managed_fields": [ - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - ".": {}, - "f:volume.kubernetes.io/selected-node": {} - } - } - }, - "manager": "kube-scheduler", - "operation": "Update", - "time": "2022-07-16T04:05:02+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:status": { - "f:accessModes": {}, - "f:capacity": { - ".": {}, - "f:storage": {} - }, - "f:phase": {} - } - }, - "manager": "kube-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:07+00:00" - }, - { - "api_version": "v1", - "fields_type": "FieldsV1", - "fields_v1": { - "f:metadata": { - "f:annotations": { - "f:tidb.pingcap.com/pod-name": {} - }, - "f:labels": { - "f:tidb.pingcap.com/cluster-id": {}, - "f:tidb.pingcap.com/pod-name": {}, - "f:tidb.pingcap.com/store-id": {} - } - } - }, - "manager": "tidb-controller-manager", - "operation": "Update", - "time": "2022-07-16T04:05:21+00:00" - } - ], - "name": "tikv-test-cluster-tikv-2", - "namespace": "acto-namespace", - "owner_references": null, - "resource_version": "1413", - "self_link": null, - "uid": "470c768a-e5fa-4cda-a98c-7254bba5a7aa" - }, - "spec": { - "access_modes": [ - "ReadWriteOnce" - ], - "data_source": null, - "resources": { - "limits": null, - "requests": { - "storage": "100Gi" - } - }, - "selector": null, - "storage_class_name": "standard", - "volume_mode": "Filesystem", - "volume_name": "pvc-470c768a-e5fa-4cda-a98c-7254bba5a7aa" - }, - "status": { - "access_modes": [ - "ReadWriteOnce" - ], - "capacity": { - "storage": "100Gi" - }, - "conditions": null, - "phase": "Bound" - } - } - }, - "cronjob": {}, - "ingress": {}, - "pod_disruption_budget": {}, - "custom_resource_spec": { - "configUpdateStrategy": "RollingUpdate", - "discovery": {}, - "enableDynamicConfiguration": true, - "enablePVReclaim": false, - "helper": { - "image": "busybox:1.34.1" - }, - "imagePullPolicy": "IfNotPresent", - "pd": { - "baseImage": "pingcap/pd", - "config": "[dashboard]\n internal-proxy = true\n", - "maxFailoverCount": 0, - "mountClusterClientSecret": true, - "replicas": 3, - "requests": { - "storage": "10Gi" - } - }, - "pvReclaimPolicy": "Retain", - "tidb": { - "baseImage": "pingcap/tidb", - "config": "[performance]\n tcp-keep-alive = true\n", - "maxFailoverCount": 0, - "replicas": 3, - "service": { - "externalTrafficPolicy": "Local", - "type": "NodePort" - }, - "slowLogVolumeName": "lsgqejeydt" - }, - "tikv": { - "baseImage": "pingcap/tikv", - "config": "log-level = \"info\"\n", - "maxFailoverCount": 0, - "mountClusterClientSecret": true, - "replicas": 3, - "requests": { - "storage": "100Gi" - } - }, - "timezone": "UTC", - "tlsCluster": {}, - "version": "v5.4.0" - }, - "custom_resource_status": { - "clusterID": "7120816513896392341", - "conditions": [ - { - "lastTransitionTime": "2022-07-16T04:05:29Z", - "lastUpdateTime": "2022-07-16T04:05:29Z", - "message": "TiDB cluster is fully up and running", - "reason": "Ready", - "status": "True", - "type": "Ready" - } - ], - "pd": { - "image": "pingcap/pd:v5.4.0", - "leader": { - "clientURL": "http://test-cluster-pd-2.test-cluster-pd-peer.acto-namespace.svc:2379", - "health": true, - "id": "5110389971597451409", - "lastTransitionTime": "2022-07-16T04:04:52Z", - "name": "test-cluster-pd-2" - }, - "members": { - "test-cluster-pd-0": { - "clientURL": "http://test-cluster-pd-0.test-cluster-pd-peer.acto-namespace.svc:2379", - "health": true, - "id": "5292350542734693704", - "lastTransitionTime": "2022-07-16T04:05:02Z", - "name": "test-cluster-pd-0" - }, - "test-cluster-pd-1": { - "clientURL": "http://test-cluster-pd-1.test-cluster-pd-peer.acto-namespace.svc:2379", - "health": true, - "id": "10253759161720476298", - "lastTransitionTime": "2022-07-16T04:05:12Z", - "name": "test-cluster-pd-1" - }, - "test-cluster-pd-2": { - "clientURL": "http://test-cluster-pd-2.test-cluster-pd-peer.acto-namespace.svc:2379", - "health": true, - "id": "5110389971597451409", - "lastTransitionTime": "2022-07-16T04:04:52Z", - "name": "test-cluster-pd-2" - } - }, - "phase": "Normal", - "statefulSet": { - "collisionCount": 0, - "currentReplicas": 3, - "currentRevision": "test-cluster-pd-859db88ddf", - "observedGeneration": 1, - "readyReplicas": 3, - "replicas": 3, - "updateRevision": "test-cluster-pd-859db88ddf", - "updatedReplicas": 3 - }, - "synced": true - }, - "pump": {}, - "ticdc": {}, - "tidb": { - "image": "pingcap/tidb:v5.4.0", - "members": { - "test-cluster-tidb-0": { - "health": true, - "lastTransitionTime": "2022-07-16T04:05:29Z", - "name": "test-cluster-tidb-0", - "node": "acto-cluster-0-worker3" - }, - "test-cluster-tidb-1": { - "health": true, - "lastTransitionTime": "2022-07-16T04:05:29Z", - "name": "test-cluster-tidb-1", - "node": "acto-cluster-0-worker2" - }, - "test-cluster-tidb-2": { - "health": true, - "lastTransitionTime": "2022-07-16T04:05:29Z", - "name": "test-cluster-tidb-2", - "node": "acto-cluster-0-worker" - } - }, - "phase": "Normal", - "statefulSet": { - "collisionCount": 0, - "currentReplicas": 3, - "currentRevision": "test-cluster-tidb-788bdc6cfc", - "observedGeneration": 1, - "readyReplicas": 3, - "replicas": 3, - "updateRevision": "test-cluster-tidb-788bdc6cfc", - "updatedReplicas": 3 - } - }, - "tiflash": {}, - "tikv": { - "bootStrapped": true, - "image": "pingcap/tikv:v5.4.0", - "phase": "Normal", - "statefulSet": { - "collisionCount": 0, - "currentReplicas": 3, - "currentRevision": "test-cluster-tikv-5bcd5ddcc", - "observedGeneration": 1, - "readyReplicas": 3, - "replicas": 3, - "updateRevision": "test-cluster-tikv-5bcd5ddcc", - "updatedReplicas": 3 - }, - "stores": { - "1": { - "id": "1", - "ip": "test-cluster-tikv-1.test-cluster-tikv-peer.acto-namespace.svc", - "lastTransitionTime": "2022-07-16T04:05:21Z", - "leaderCount": 16, - "podName": "test-cluster-tikv-1", - "state": "Up" - }, - "4": { - "id": "4", - "ip": "test-cluster-tikv-0.test-cluster-tikv-peer.acto-namespace.svc", - "lastTransitionTime": "2022-07-16T04:05:21Z", - "leaderCount": 7, - "podName": "test-cluster-tikv-0", - "state": "Up" - }, - "5": { - "id": "5", - "ip": "test-cluster-tikv-2.test-cluster-tikv-peer.acto-namespace.svc", - "lastTransitionTime": "2022-07-16T04:05:21Z", - "leaderCount": 6, - "podName": "test-cluster-tikv-2", - "state": "Up" - } - }, - "synced": true - } - } -} \ No newline at end of file diff --git a/test/test_checker.py b/test/test_checker.py deleted file mode 100644 index 0938f8ccc0..0000000000 --- a/test/test_checker.py +++ /dev/null @@ -1,59 +0,0 @@ -''' -Commented out because it is not used in the project. -TODO: refactor to fix the dependency issue - -import json -import sys -import unittest - -import yaml - -from acto.checker import Checker -from acto.common import InvalidInputResult -from acto.snapshot import Snapshot - - -class TestChecker(unittest.TestCase): - - def test_invalid_input_message(self): - checker = Checker({'namespace': ''}, '') - - mutated_0_path = 'mutated-0.yaml' - mutated_1_path = 'mutated-1.yaml' - operator_log_0_path = 'operator-0.log' - operator_log_1_path = 'operator-1.log' - system_state_0_path = 'system-state-000.json' - system_state_1_path = 'system-state-001.json' - cli_output_0_path = 'cli-output-0.log' - cli_output_1_path = 'cli-output-1.log' - - with open(mutated_0_path, 'r') as mutated_0_file, \ - open(mutated_1_path, 'r') as mutated_1_file, \ - open(operator_log_0_path, 'r') as operator_log_0_file, \ - open(operator_log_1_path, 'r') as operator_log_1_file, \ - open(system_state_0_path, 'r') as system_state_0_file, \ - open(system_state_1_path, 'r') as system_state_1_file, \ - open(cli_output_0_path, 'r') as cli_output_0_file, \ - open(cli_output_1_path, 'r') as cli_output_1_file: - - mutated_0 = yaml.load(mutated_0_file, Loader=yaml.FullLoader) - mutated_1 = yaml.load(mutated_1_file, Loader=yaml.FullLoader) - operator_log_0 = operator_log_0_file.read().splitlines() - operator_log_1 = operator_log_1_file.read().splitlines() - system_state_0 = json.load(system_state_0_file) - system_state_1 = json.load(system_state_1_file) - cli_output_0 = json.load(cli_output_0_file) - cli_output_1 = json.load(cli_output_1_file) - - prev_snapshot = Snapshot(mutated_0, cli_output_0, system_state_0, operator_log_0) - curr_snapshot = Snapshot(mutated_1, cli_output_1, system_state_1, operator_log_1) - - self.assertTrue( - isinstance(checker.check_operator_log(curr_snapshot, prev_snapshot), - InvalidInputResult)) - - -if __name__ == '__main__': - unittest.main() - -''' \ No newline at end of file diff --git a/test/test_common.py b/test/test_common.py deleted file mode 100644 index df4fa2ec43..0000000000 --- a/test/test_common.py +++ /dev/null @@ -1,60 +0,0 @@ -''' -Commentted out for now, not working for the current version of project -TODO: refactor to fix the dependency issue - -import json -import unittest - -import yaml - -from acto.checker import Checker -from acto.common import invalid_input_message -from acto.snapshot import Snapshot - - -class TestCommon(unittest.TestCase): - - def test_invalid_input_message(self): - checker = Checker({'namespace': ''}, '') - - message = 'tidb cluster acto-namespace/test-cluster is not valid and must be fixed first, aggregated error: spec.tidb.volumeName: Invalid value: "lsgqejeydt": Can not find volumeName: lsgqejeydt in storageVolumes or additionalVolumes/additionalVolumeMounts' - - mutated_0_path = 'mutated-0.yaml' - mutated_1_path = 'mutated-1.yaml' - operator_log_0_path = 'operator-0.log' - operator_log_1_path = 'operator-1.log' - system_state_0_path = 'system-state-000.json' - system_state_1_path = 'system-state-001.json' - cli_output_0_path = 'cli-output-0.log' - cli_output_1_path = 'cli-output-1.log' - - with open(mutated_0_path, 'r') as mutated_0_file, \ - open(mutated_1_path, 'r') as mutated_1_file, \ - open(operator_log_0_path, 'r') as operator_log_0_file, \ - open(operator_log_1_path, 'r') as operator_log_1_file, \ - open(system_state_0_path, 'r') as system_state_0_file, \ - open(system_state_1_path, 'r') as system_state_1_file, \ - open(cli_output_0_path, 'r') as cli_output_0_file, \ - open(cli_output_1_path, 'r') as cli_output_1_file: - - mutated_0 = yaml.load(mutated_0_file, Loader=yaml.FullLoader) - mutated_1 = yaml.load(mutated_1_file, Loader=yaml.FullLoader) - operator_log_0 = operator_log_0_file.read().splitlines() - operator_log_1 = operator_log_1_file.read().splitlines() - system_state_0 = json.load(system_state_0_file) - system_state_1 = json.load(system_state_1_file) - cli_output_0 = json.load(cli_output_0_file) - cli_output_1 = json.load(cli_output_1_file) - - prev_snapshot = Snapshot(mutated_0, cli_output_0, system_state_0, operator_log_0) - curr_snapshot = Snapshot(mutated_1, cli_output_1, system_state_1, operator_log_1) - - input_delta, _ = checker.get_deltas(curr_snapshot, prev_snapshot) - - self.assertTrue(invalid_input_message(message, input_delta)) - - -if __name__ == '__main__': - unittest.main() - -''' \ No newline at end of file diff --git a/test/test_known_schemas.py b/test/test_known_schemas.py deleted file mode 100644 index 0aef4841a3..0000000000 --- a/test/test_known_schemas.py +++ /dev/null @@ -1,133 +0,0 @@ -import os -import pathlib -import unittest - -import yaml - -from acto.input.get_matched_schemas import field_matched, find_matched_schema -from acto.input.known_schemas import * -from acto.input.valuegenerator import extract_schema_with_value_generator -from acto.schema import extract_schema - -test_dir = pathlib.Path(__file__).parent.resolve() - - -class TestSchema(unittest.TestCase): - - def test_statefulset_match(self): - with open(os.path.join(test_dir, 'rabbitmq_crd.yaml'), 'r') as operator_yaml: - crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) - spec_schema = ObjectSchema( - ['root'], crd['spec']['versions'][0]['schema']['openAPIV3Schema']['properties'] - ['spec']['properties']['override']['properties']['statefulSet']) - - self.assertTrue(StatefulSetSchema.Match(spec_schema)) - - def test_service_match(self): - with open(os.path.join(test_dir, 'rabbitmq_crd.yaml'), 'r') as operator_yaml: - crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) - spec_schema = ObjectSchema( - ['root'], crd['spec']['versions'][0]['schema']['openAPIV3Schema']['properties'] - ['spec']['properties']['override']['properties']['service']) - - self.assertTrue(ServiceSchema.Match(spec_schema)) - - def test_affinity_match(self): - with open(os.path.join(test_dir, 'rabbitmq_crd.yaml'), 'r') as operator_yaml: - crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) - spec_schema = ObjectSchema(['root'], - crd['spec']['versions'][0]['schema']['openAPIV3Schema'] - ['properties']['spec']['properties']['affinity']) - - self.assertTrue(AffinitySchema.Match(spec_schema)) - - def test_tolerations_match(self): - with open(os.path.join(test_dir, 'rabbitmq_crd.yaml'), 'r') as operator_yaml: - crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) - spec_schema = ArraySchema(['root'], - crd['spec']['versions'][0]['schema']['openAPIV3Schema'] - ['properties']['spec']['properties']['tolerations']) - - self.assertTrue(TolerationsSchema.Match(spec_schema)) - - def test_tolerations_not_match(self): - with open(os.path.join(test_dir, 'rabbitmq_crd.yaml'), 'r') as operator_yaml: - crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) - spec_schema = ObjectSchema(['root'], - crd['spec']['versions'][0]['schema']['openAPIV3Schema'] - ['properties']['spec']['properties']['tolerations']['items']) - - self.assertFalse(TolerationsSchema.Match(spec_schema)) - - def test_resources_match(self): - with open(os.path.join(test_dir, 'rabbitmq_crd.yaml'), 'r') as operator_yaml: - crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) - spec_schema = ObjectSchema(['root'], - crd['spec']['versions'][0]['schema']['openAPIV3Schema'] - ['properties']['spec']['properties']['resources']) - - self.assertTrue(ResourceRequirementsSchema.Match(spec_schema)) - - def test_container_match(self): - with open(os.path.join(test_dir, 'rabbitmq_crd.yaml'), 'r') as operator_yaml: - crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) - spec_schema = ObjectSchema( - ['root'], crd['spec']['versions'][0]['schema']['openAPIV3Schema']['properties'] - ['spec']['properties']['override']['properties']['statefulSet']['properties'] - ['spec']['properties']['template']['properties']['spec']['properties']['containers'] - ['items']) - - self.assertTrue(ContainerSchema.Match(spec_schema)) - - with open(os.path.join(test_dir, 'psmdb.percona.com_perconaservermongodbs.yaml'), - 'r') as operator_yaml: - crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) - spec_schema = ObjectSchema( - ['root'], crd['spec']['versions'][-1]['schema']['openAPIV3Schema']['properties'] - ['spec']['properties']['replsets']['items']['properties']['sidecars']['items']) - - self.assertTrue(ContainerSchema.Match(spec_schema)) - - def test_resources_match(self): - with open(os.path.join(test_dir, 'crdb_crd.yaml'), 'r') as operator_yaml: - crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) - tls_schema = ObjectSchema( - ['root'], - crd['spec']['versions'][0]['schema']['openAPIV3Schema']['properties']['spec'] - ['properties']['ingress']['properties']['sql']['properties']['tls']['items']) - - self.assertTrue(IngressTLSSchema.Match(tls_schema)) - - self.assertTrue(field_matched(tls_schema, IngressTLSSchema)) - - def test_pod_spec_match(self): - with open(os.path.join(test_dir, 'cassop_crd.yaml'), 'r') as operator_yaml: - crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) - - spec_schema = extract_schema_with_value_generator([], - crd['spec']['versions'][0]['schema']['openAPIV3Schema']['properties']['spec']['properties']['podTemplateSpec']['properties']['spec']['properties']['containers']['items']['properties']['livenessProbe']) - # tuples = find_all_matched_schemas_type(spec_schema) - # for tuple in tuples: - # print(f'Found matched schema: {tuple[0].path} -> {tuple[1]}') - # k8s_schema = K8sField(tuple[0].path, tuple[1]) - print(LivenessProbeSchema.Match(spec_schema)) - - def test_find_matches(self): - with open(os.path.join(test_dir, 'rabbitmq_crd.yaml'), 'r') as operator_yaml: - crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) - spec_schema = extract_schema([], - crd['spec']['versions'][0]['schema']['openAPIV3Schema']) - print(find_all_matched_schemas(spec_schema)) - - def test_pvc_match(self): - with open(os.path.join(test_dir, 'databases.spotahome.com_redisfailovers.yaml'), 'r') as operator_yaml: - crd = yaml.load(operator_yaml, Loader=yaml.FullLoader) - spec_schema = ObjectSchema( - ['root'], crd['spec']['versions'][0]['schema']['openAPIV3Schema']['properties'] - ['spec']['properties']['redis']['properties']['storage']['properties']['persistentVolumeClaim']) - - self.assertTrue(PersistentVolumeClaimSchema.Match(spec_schema)) - - -if __name__ == '__main__': - unittest.main() \ No newline at end of file