File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 resources: {}
3636 resourcesPreset: "nano"
3737EOF
38- sleep 5
38+ # Wait for the operator to materialise the HelmRelease before kubectl wait
39+ # kicks in (kubectl wait errors immediately if the object does not exist yet).
40+ timeout 60 sh -ec " until kubectl -n tenant-test get hr clickhouse-$name >/dev/null 2>&1; do sleep 2; done"
3941 kubectl -n tenant-test wait hr clickhouse-$name --timeout=20s --for=condition=ready
4042 timeout 180 sh -ec " until kubectl -n tenant-test get svc chendpoint-clickhouse-$name -o jsonpath='{.spec.ports[*].port}' | grep -q '8123 9000'; do sleep 10; done"
4143 kubectl -n tenant-test wait statefulset.apps/chi-clickhouse-$name -clickhouse-0-0 --timeout=120s --for=jsonpath=' {.status.replicas}' =1
Original file line number Diff line number Diff line change 1818 - example.com
1919EOF
2020
21- sleep 5
21+ # Wait for the operator to materialise the HelmRelease before kubectl wait
22+ # kicks in (kubectl wait errors immediately if the object does not exist yet).
23+ timeout 60 sh -ec " until kubectl -n tenant-test get hr ${name} >/dev/null 2>&1; do sleep 2; done"
2224 kubectl -n tenant-test wait hr ${name} --timeout=120s --for=condition=ready
2325 kubectl -n tenant-test wait hr ${name} -system --timeout=120s --for=condition=ready
2426 timeout 60 sh -ec " until kubectl -n tenant-test get deploy -l app.kubernetes.io/instance=${name} -system -o jsonpath='{.items[0].status.readyReplicas}' | grep -q '1'; do sleep 5; done"
4143 - example.org
4244EOF
4345
44- sleep 5
46+ # Wait for the operator to materialise the HelmRelease before kubectl wait
47+ # kicks in (kubectl wait errors immediately if the object does not exist yet).
48+ timeout 60 sh -ec " until kubectl -n tenant-test get hr ${name} >/dev/null 2>&1; do sleep 2; done"
4549 kubectl -n tenant-test wait hr ${name} --timeout=120s --for=condition=ready
4650 kubectl -n tenant-test wait hr ${name} -system --timeout=120s --for=condition=ready
4751 timeout 60 sh -ec " until kubectl -n tenant-test get deploy -l app.kubernetes.io/instance=${name} -system -o jsonpath='{.items[0].status.readyReplicas}' | grep -q '1'; do sleep 5; done"
Original file line number Diff line number Diff line change 4242 imageType: "unified"
4343 automaticReplacements: true
4444EOF
45- sleep 15
45+ # Wait for the operator to materialise the HelmRelease before kubectl wait
46+ # kicks in (kubectl wait errors immediately if the object does not exist yet).
47+ timeout 60 sh -ec " until kubectl -n tenant-test get hr foundationdb-$name >/dev/null 2>&1; do sleep 2; done"
4648
4749 # Wait for HelmRelease to be ready
4850 kubectl -n tenant-test wait hr foundationdb-$name --timeout=300s --for=condition=ready
Original file line number Diff line number Diff line change 3838 size: 1Gi
3939 replicas: 1
4040EOF
41- sleep 5
41+ # Wait for the operator to materialise the HelmRelease before kubectl wait
42+ # kicks in (kubectl wait errors immediately if the object does not exist yet).
43+ timeout 60 sh -ec " until kubectl -n tenant-test get hr $release >/dev/null 2>&1; do sleep 2; done"
4244 kubectl -n tenant-test wait hr $release --timeout=60s --for=condition=ready
4345
4446 # Wait for COSI to provision bucket
Original file line number Diff line number Diff line change 3939 partitions: 1
4040 replicas: 2
4141EOF
42- sleep 5
42+ # Wait for the operator to materialise the HelmRelease before kubectl wait
43+ # kicks in (kubectl wait errors immediately if the object does not exist yet).
44+ timeout 60 sh -ec " until kubectl -n tenant-test get hr kafka-$name >/dev/null 2>&1; do sleep 2; done"
4345 kubectl -n tenant-test wait hr kafka-$name --timeout=30s --for=condition=ready
4446 kubectl wait kafkas -n tenant-test test --timeout=300s --for=condition=ready
4547 timeout 60 sh -ec " until kubectl -n tenant-test get pvc data-kafka-$name -zookeeper-0; do sleep 10; done"
Original file line number Diff line number Diff line change 3535 resources: {}
3636 resourcesPreset: "nano"
3737EOF
38- sleep 5
38+ # Wait for the operator to materialise the HelmRelease before kubectl wait
39+ # kicks in (kubectl wait errors immediately if the object does not exist yet).
40+ timeout 60 sh -ec " until kubectl -n tenant-test get hr mariadb-$name >/dev/null 2>&1; do sleep 2; done"
3941 kubectl -n tenant-test wait hr mariadb-$name --timeout=30s --for=condition=ready
4042 timeout 80 sh -ec " until kubectl -n tenant-test get svc mariadb-$name -o jsonpath='{.spec.ports[0].port}' | grep -q '3306'; do sleep 10; done"
4143 timeout 80 sh -ec " until kubectl -n tenant-test get endpoints mariadb-$name -o jsonpath='{.subsets[*].addresses[*].ip}' | grep -q '[0-9]'; do sleep 10; done"
Original file line number Diff line number Diff line change 2626 backup:
2727 enabled: false
2828EOF
29- sleep 5
29+ # Wait for the operator to materialise the HelmRelease before kubectl wait
30+ # kicks in (kubectl wait errors immediately if the object does not exist yet).
31+ timeout 60 sh -ec " until kubectl -n tenant-test get hr mongodb-$name >/dev/null 2>&1; do sleep 2; done"
3032 # Wait for HelmRelease
3133 kubectl -n tenant-test wait hr mongodb-$name --timeout=60s --for=condition=ready
3234 # Wait for MongoDB service (port 27017)
Original file line number Diff line number Diff line change 1818 external: false
1919 ui: true
2020EOF
21- sleep 5
21+ # Wait for the operator to materialise the HelmRelease before kubectl wait
22+ # kicks in (kubectl wait errors immediately if the object does not exist yet).
23+ timeout 60 sh -ec " until kubectl -n tenant-test get hr openbao-$name >/dev/null 2>&1; do sleep 2; done"
2224 kubectl -n tenant-test wait hr openbao-$name --timeout=60s --for=condition=ready
2325 kubectl -n tenant-test wait hr openbao-$name -system --timeout=120s --for=condition=ready
2426
Original file line number Diff line number Diff line change 4040 resources: {}
4141 resourcesPreset: "nano"
4242EOF
43- sleep 5
43+ # Wait for the operator to materialise the HelmRelease before kubectl wait
44+ # kicks in (kubectl wait errors immediately if the object does not exist yet).
45+ timeout 60 sh -ec " until kubectl -n tenant-test get hr postgres-$name >/dev/null 2>&1; do sleep 2; done"
4446 kubectl -n tenant-test wait hr postgres-$name --timeout=100s --for=condition=ready
4547 kubectl -n tenant-test wait job.batch postgres-$name -init-job --timeout=50s --for=condition=Complete
4648 timeout 40 sh -ec " until kubectl -n tenant-test get svc postgres-$name -r -o jsonpath='{.spec.ports[0].port}' | grep -q '5432'; do sleep 10; done"
Original file line number Diff line number Diff line change 1717 resources: {}
1818 external: false
1919EOF
20- sleep 5
20+ # Wait for the operator to materialise the HelmRelease before kubectl wait
21+ # kicks in (kubectl wait errors immediately if the object does not exist yet).
22+ timeout 60 sh -ec " until kubectl -n tenant-test get hr qdrant-$name >/dev/null 2>&1; do sleep 2; done"
2123 kubectl -n tenant-test wait hr qdrant-$name --timeout=60s --for=condition=ready
2224 kubectl -n tenant-test wait hr qdrant-$name -system --timeout=120s --for=condition=ready
2325 kubectl -n tenant-test wait sts qdrant-$name --timeout=90s --for=jsonpath=' {.status.readyReplicas}' =1
You can’t perform that action at this time.
0 commit comments