From de596e931743b210f4628d92dbcdd2ee2e7bc321 Mon Sep 17 00:00:00 2001 From: Haowei Cai Date: Tue, 18 Feb 2020 12:41:51 -0800 Subject: [PATCH] debug log example --- examples/deployment_crud.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/deployment_crud.py b/examples/deployment_crud.py index a25bb518aa..191a235529 100644 --- a/examples/deployment_crud.py +++ b/examples/deployment_crud.py @@ -82,6 +82,12 @@ def main(): # default location. config.load_kube_config() apps_v1 = client.AppsV1Api() + + # Uncomment the following lines to enable debug logging + # c = client.Configuration() + # c.debug = True + # apps_v1 = client.AppsV1Api(api_client=client.ApiClient(configuration=c)) + # Create a deployment object with client-python API. The deployment we # created is same as the `nginx-deployment.yaml` in the /examples folder. deployment = create_deployment_object()