diff --git a/charms/istio-pilot/src/charm.py b/charms/istio-pilot/src/charm.py index b1162c2f..ad329831 100755 --- a/charms/istio-pilot/src/charm.py +++ b/charms/istio-pilot/src/charm.py @@ -193,6 +193,7 @@ def _istioctl_extra_flags(self): # Extra flags to pass to the istioctl install command # These flags will configure the container images used by the control plane + # As well as set the access log files for help during debugging extra_flags = [ "--set", f"values.pilot.image={pilot_image}", @@ -204,6 +205,8 @@ def _istioctl_extra_flags(self): f"values.global.proxy.image={global_proxy_image}", "--set", f"values.global.proxy_init.image={global_proxy_init_image}", + "--set", + "meshConfig.accessLogFile=/dev/stdout", ] # The following are a set of flags that configure the CNI behaviour diff --git a/charms/istio-pilot/tests/unit/test_charm.py b/charms/istio-pilot/tests/unit/test_charm.py index ba65d4a3..878b8b9e 100644 --- a/charms/istio-pilot/tests/unit/test_charm.py +++ b/charms/istio-pilot/tests/unit/test_charm.py @@ -1323,6 +1323,8 @@ def test_upgrade_successful( "values.global.proxy.image=proxyv2", "--set", "values.global.proxy_init.image=proxyv2", + "--set", + "meshConfig.accessLogFile=/dev/stdout", ], ) mocked_istioctl.upgrade.assert_called_with()