Merge pull request #1083 from roycaihw/enable-debug

Add example code for enabling debugging
This commit is contained in:
Kubernetes Prow Robot 2020-02-18 16:14:25 -08:00 committed by GitHub
commit f493272827
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()