8000 Merge pull request #1083 from roycaihw/enable-debug · kubernetes-client/python@f493272 · GitHub
[go: up one dir, main page]

Skip to content

Commit f493272

Browse files
authored
Merge pull request #1083 from roycaihw/enable-debug
Add example code for enabling debugging
2 parents 390f3cf + de596e9 commit f493272

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/deployment_crud.py

Lines changed: 6 additions & 0 deletions
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)
0