File tree Expand file tree Collapse file tree
tests/templates/kuttl/smoke Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -217,6 +217,16 @@ pub fn build_airflow_statefulset_envs(
217217 }
218218 }
219219
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+
220230 tracing:: debug!( "Env-var set [{:?}]" , env) ;
221231 transform_map_to_vec ( env)
222232}
Original file line number Diff line number Diff line change @@ -79,11 +79,3 @@ status:
7979 expectedPods: 1
8080 currentHealthy: 1
8181 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