File tree Expand file tree Collapse file tree 3 files changed +18
-8
lines changed
tests/templates/kuttl/smoke Expand file tree Collapse file tree 3 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,16 @@ pub fn build_airflow_statefulset_envs(
217
217
}
218
218
}
219
219
220
+ // Needed for the `containerdebug` process to log it's tracing information to.
221
+ env. insert (
222
+ "CONTAINERDEBUG_LOG_DIRECTORY" . to_string ( ) ,
223
+ EnvVar {
224
+ name : "CONTAINERDEBUG_LOG_DIRECTORY" . to_string ( ) ,
225
+ value : Some ( format ! ( "{STACKABLE_LOG_DIR}/containerdebug" ) ) ,
226
+ value_from : None ,
227
+ } ,
228
+ ) ;
229
+
220
230
tracing:: debug!( "Env-var set [{:?}]" , env) ;
221
231
transform_map_to_vec ( env)
222
232
}
Original file line number Diff line number Diff line change @@ -79,11 +79,3 @@ status:
79
79
expectedPods: 1
80
80
currentHealthy: 1
81
81
disruptionsAllowed: 1
82
- ---
83
- # This test checks if the containerdebug-state.json file is present and valid
84
- apiVersion: kuttl.dev/v1beta1
85
- kind: TestAssert
86
- timeout: 600
87
- commands:
88
- - script: kubectl exec -n $NAMESPACE --container airflow airflow-scheduler-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status
89
- - script: kubectl exec -n $NAMESPACE --container airflow airflow-webserver-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status
Original file line number Diff line number Diff line change
1
+ ---
2
+ # This test checks if the containerdebug-state.json file is present and valid
3
+ apiVersion : kuttl.dev/v1beta1
4
+ kind : TestAssert
5
+ timeout : 600
6
+ commands :
7
+ - script : kubectl exec -n $NAMESPACE --container airflow airflow-scheduler-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status '"valid JSON"'
8
+ - script : kubectl exec -n $NAMESPACE --container airflow airflow-webserver-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status '"valid JSON"'
You can’t perform that action at this time.
0 commit comments