Commit b9b8bc3
authored
fix(driver-kubernetes): propagate log_level as OPENSHELL_LOG_LEVEL env var (#1310)
The sandbox_to_k8s_spec function was inserting logLevel and environment
fields at the Sandbox CR spec level. Neither field exists in the
agents.x-k8s.io/v1alpha1 CRD schema, so Kubernetes silently dropped them
and the log_level value never reached the sandbox pod.
Remove the dead CR-level insertions. Build a merged environment map that
includes OPENSHELL_LOG_LEVEL when log_level is set, and pass it to
sandbox_template_to_k8s so the value flows through build_env_list into
the pod container spec.
Add a unit test verifying OPENSHELL_LOG_LEVEL appears in the container
env and that logLevel is absent from the CR spec.
Fixes #12651 parent 59475aa commit b9b8bc3
1 file changed
Lines changed: 22 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
981 | 981 | | |
982 | 982 | | |
983 | 983 | | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
984 | 992 | | |
985 | 993 | | |
986 | 994 | | |
| |||
999 | 1007 | | |
1000 | 1008 | | |
1001 | 1009 | | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
| 1010 | + | |
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
| 1014 | + | |
1021 | 1015 | | |
1022 | 1016 | | |
1023 | 1017 | | |
| |||
1044 | 1038 | | |
1045 | 1039 | | |
1046 | 1040 | | |
1047 | | - | |
1048 | | - | |
| 1041 | + | |
1049 | 1042 | | |
1050 | 1043 | | |
1051 | 1044 | | |
1052 | 1045 | | |
1053 | | - | |
1054 | | - | |
| 1046 | + | |
| 1047 | + | |
1055 | 1048 | | |
1056 | 1049 | | |
1057 | 1050 | | |
| |||
2312 | 2305 | | |
2313 | 2306 | | |
2314 | 2307 | | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
2315 | 2317 | | |
0 commit comments