File tree 3 files changed +17
-39
lines changed
3 files changed +17
-39
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,15 @@ All notable changes to this project will be documented in this file.
21
21
### Fixed
22
22
23
23
- Add a startupProbe, which checks via ` /v1/info ` that the coordinator/worker have finished starting.
24
- Also migrate the other probes from ` tcpSocket ` to ` httpGet ` on ` /v1/info ` ([ #715 ] ).
24
+ Also migrate the other probes from ` tcpSocket ` to ` httpGet ` on ` /v1/info ` ([ #715 ] , [ # 717 ] ).
25
25
26
26
[ #676 ] : https://github.com/stackabletech/trino-operator/pull/676
27
27
[ #677 ] : https://github.com/stackabletech/trino-operator/pull/677
28
28
[ #687 ] : https://github.com/stackabletech/trino-operator/pull/687
29
29
[ #694 ] : https://github.com/stackabletech/trino-operator/pull/694
30
30
[ #695 ] : https://github.com/stackabletech/trino-operator/pull/695
31
31
[ #715 ] : https://github.com/stackabletech/trino-operator/pull/715
32
+ [ #717 ] : https://github.com/stackabletech/trino-operator/pull/717
32
33
33
34
## [ 24.11.1] - 2025-01-10
34
35
Original file line number Diff line number Diff line change @@ -1545,14 +1545,20 @@ fn http_get_probe(trino: &v1alpha1::TrinoCluster) -> HTTPGetAction {
1545
1545
/// This probe works on coordinators and workers.
1546
1546
fn finished_starting_probe ( trino : & v1alpha1:: TrinoCluster ) -> ExecAction {
1547
1547
let port = trino. exposed_port ( ) ;
1548
+ let schema = if trino. expose_https_port ( ) {
1549
+ "https"
1550
+ } else {
1551
+ "http"
1552
+ } ;
1553
+
1548
1554
ExecAction {
1549
1555
command : Some ( vec ! [
1550
1556
"/bin/bash" . to_string( ) ,
1551
1557
"-x" . to_string( ) ,
1552
1558
"-euo" . to_string( ) ,
1553
1559
"pipefail" . to_string( ) ,
1554
1560
"-c" . to_string( ) ,
1555
- format!( "curl --fail --insecure https ://127.0.0.1:{port}/v1/info | grep --silent '\\ \" starting\\ \" :false'" ) ,
1561
+ format!( "curl --fail --insecure {schema} ://127.0.0.1:{port}/v1/info | grep --silent '\\ \" starting\\ \" :false'" ) ,
1556
1562
] ) ,
1557
1563
}
1558
1564
}
You can’t perform that action at this time.
0 commit comments