Skip to content

Commit de596e9

Browse files
committed
debug log example
1 parent 390f3cf commit de596e9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/deployment_crud.py

+6
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ def main():
8282
# default location.
8383
config.load_kube_config()
8484
apps_v1 = client.AppsV1Api()
85+
86+
# Uncomment the following lines to enable debug logging
87+
# c = client.Configuration()
88+
# c.debug = True
89+
# apps_v1 = client.AppsV1Api(api_client=client.ApiClient(configuration=c))
90+
8591
# Create a deployment object with client-python API. The deployment we
8692
# created is same as the `nginx-deployment.yaml` in the /examples folder.
8793
deployment = create_deployment_object()

0 commit comments

Comments
 (0)