AI Slop Code RIsk Monitor

kubernetes-client/python

Official Python client library for kubernetes

36.2 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for kubernetes-client/python, a Python project with 7,679 GitHub stars. SynthScan examined 1,479,095 lines of code across 7512 source files, recording 24208 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 36.2 (High pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

36.2
Adjusted Signal
36.2
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
7.7K
Stars
Python
Language
1.5M
Lines of Code
7.5K
Files
24.2K
Pattern Hits
2026-10-12
Scan Date
1.09
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 16.7/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 6923 finding(s).

Hallucinated Dependency & Supply Chain Risk 17.4/100 · LOW

Are imports declared and package/API names verified? 7417 finding(s).

Agent Over-Engineering Ratio 79.9/100 · CRITICAL

Are wrappers, guards, and repeated structures necessary? 16450 finding(s).

PR Review Velocity Impact 89.1/100 · CRITICAL

Which changes need focused human review? 24208 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 1HIGH 8223MEDIUM 71LOW 15913

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 24208 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Cross-File Repetition8183 hits · 40915 pts
SeverityFileLineSnippetContext
HIGHexamples_asyncio/dynamic-client/service.py0this example demonstrates the following: - creation of a k8s configmap using dynamic-client - list, patch(update), deletSTRING
HIGHexamples/dynamic-client/service.py0this example demonstrates the following: - creation of a k8s configmap using dynamic-client - list, patch(update), deletSTRING
HIGHexamples_asyncio/dynamic-client/configmap.py0this example demonstrates the following: - creation of a k8s configmap using dynamic-client - list, patch(update), deletSTRING
HIGHexamples/dynamic-client/configmap.py0this example demonstrates the following: - creation of a k8s configmap using dynamic-client - list, patch(update), deletSTRING
HIGH…s_asyncio/dynamic-client/namespaced_custom_resource.py0this example demonstrates the following: - creation of a custom resource definition (crd) using dynamic-client - creatioSTRING
HIGHexamples/dynamic-client/namespaced_custom_resource.py0this example demonstrates the following: - creation of a custom resource definition (crd) using dynamic-client - creatioSTRING
HIGH…yncio/dynamic-client/cluster_scoped_custom_resource.py0this example demonstrates the following: - creation of a custom resource definition (crd) using dynamic-client - creatioSTRING
HIGH…mples/dynamic-client/cluster_scoped_custom_resource.py0this example demonstrates the following: - creation of a custom resource definition (crd) using dynamic-client - creatioSTRING
HIGHkubernetes/aio/utils/_retry_base.py0retry backoff parameters. this maps 1:1 to ``k8s.io/apimachinery/pkg/util/wait.backoff`` for the fields used by client-gSTRING
HIGHkubernetes/utils/_retry_base.py0retry backoff parameters. this maps 1:1 to ``k8s.io/apimachinery/pkg/util/wait.backoff`` for the fields used by client-gSTRING
HIGHkubernetes/base/retry.py0retry backoff parameters. this maps 1:1 to ``k8s.io/apimachinery/pkg/util/wait.backoff`` for the fields used by client-gSTRING
HIGHkubernetes/aio/utils/_retry_base.py0return the client-go rest retry-after backoff for ``retries``. ``backoff`` supplies the retry delay parameters. if ``retSTRING
HIGHkubernetes/utils/_retry_base.py0return the client-go rest retry-after backoff for ``retries``. ``backoff`` supplies the retry delay parameters. if ``retSTRING
HIGHkubernetes/base/retry.py0return the client-go rest retry-after backoff for ``retries``. ``backoff`` supplies the retry delay parameters. if ``retSTRING
HIGHkubernetes/aio/utils/_retry_base.py0return the client-go rest retry-after retry ceiling.STRING
HIGHkubernetes/utils/_retry_base.py0return the client-go rest retry-after retry ceiling.STRING
HIGHkubernetes/base/retry.py0return the client-go rest retry-after retry ceiling.STRING
HIGHkubernetes/aio/utils/_retry_base.py0return true if ``error`` represents an http 409 conflict response.STRING
HIGHkubernetes/utils/_retry_base.py0return true if ``error`` represents an http 409 conflict response.STRING
HIGHkubernetes/base/retry.py0return true if ``error`` represents an http 409 conflict response.STRING
HIGHkubernetes/aio/utils/_retry_base.py0return true if ``error`` represents http 429 too many requests.STRING
HIGHkubernetes/utils/_retry_base.py0return true if ``error`` represents http 429 too many requests.STRING
HIGHkubernetes/base/retry.py0return true if ``error`` represents http 429 too many requests.STRING
HIGHkubernetes/aio/utils/_retry_base.py0return true if ``error`` should be retried after retry-after.STRING
HIGHkubernetes/utils/_retry_base.py0return true if ``error`` should be retried after retry-after.STRING
HIGHkubernetes/base/retry.py0return true if ``error`` should be retried after retry-after.STRING
HIGHkubernetes/aio/utils/_retry_base.py0return the retry-after delay in seconds, if ``error`` provides one. client-go accepts integer seconds. invalid, missing,STRING
HIGHkubernetes/utils/_retry_base.py0return the retry-after delay in seconds, if ``error`` provides one. client-go accepts integer seconds. invalid, missing,STRING
HIGHkubernetes/base/retry.py0return the retry-after delay in seconds, if ``error`` provides one. client-go accepts integer seconds. invalid, missing,STRING
HIGH…netes/aio/leaderelection/resourcelock/configmaplock.py0:param name: name of the lock :param namespace: namespace :param identity: a unique identifier that the candidate is usiSTRING
HIGHkubernetes/aio/leaderelection/resourcelock/leaselock.py0:param name: name of the lock :param namespace: namespace :param identity: a unique identifier that the candidate is usiSTRING
HIGHkubernetes/leaderelection/resourcelock/configmaplock.py0:param name: name of the lock :param namespace: namespace :param identity: a unique identifier that the candidate is usiSTRING
HIGHkubernetes/leaderelection/resourcelock/leaselock.py0:param name: name of the lock :param namespace: namespace :param identity: a unique identifier that the candidate is usiSTRING
HIGH…netes/aio/leaderelection/resourcelock/configmaplock.py0:param name: name of the lease object information to get :param namespace: namespace in which the lease object is to be STRING
HIGHkubernetes/aio/leaderelection/resourcelock/baselock.py0:param name: name of the lease object information to get :param namespace: namespace in which the lease object is to be STRING
HIGHkubernetes/leaderelection/resourcelock/configmaplock.py0:param name: name of the lease object information to get :param namespace: namespace in which the lease object is to be STRING
HIGHkubernetes/aio/leaderelection/resourcelock/leaselock.py0:param name: name of the lease object information to get :param namespace: namespace in which the lease object is to be STRING
HIGHkubernetes/leaderelection/resourcelock/leaselock.py0:param name: name of the lease object information to get :param namespace: namespace in which the lease object is to be STRING
HIGH…netes/aio/leaderelection/resourcelock/configmaplock.py0:param election_record: annotation string :param name: name of the configmap object to be created :param namespace: nameSTRING
HIGHkubernetes/aio/leaderelection/resourcelock/baselock.py0:param election_record: annotation string :param name: name of the configmap object to be created :param namespace: nameSTRING
HIGHkubernetes/aio/leaderelection/resourcelock/leaselock.py0:param election_record: annotation string :param name: name of the configmap object to be created :param namespace: nameSTRING
HIGHkubernetes/leaderelection/resourcelock/configmaplock.py0:param election_record: annotation string :param name: name of the configmap object to be created :param namespace: nameSTRING
HIGH…netes/aio/leaderelection/resourcelock/configmaplock.py0:param name: name of the lock to be updated :param namespace: namespace the lock is in :param updated_record: the updateSTRING
HIGHkubernetes/aio/leaderelection/resourcelock/baselock.py0:param name: name of the lock to be updated :param namespace: namespace the lock is in :param updated_record: the updateSTRING
HIGHkubernetes/aio/leaderelection/resourcelock/leaselock.py0:param name: name of the lock to be updated :param namespace: namespace the lock is in :param updated_record: the updateSTRING
HIGHkubernetes/leaderelection/resourcelock/configmaplock.py0:param name: name of the lock to be updated :param namespace: namespace the lock is in :param updated_record: the updateSTRING
HIGHkubernetes/leaderelection/resourcelock/leaselock.py0:param name: name of the lock to be updated :param namespace: namespace the lock is in :param updated_record: the updateSTRING
HIGHkubernetes/aio/client/configuration.py0kubernetes no description provided (generated by openapi generator https://github.com/openapitools/openapi-generator) thSTRING
HIGHkubernetes/aio/client/rest.py0kubernetes no description provided (generated by openapi generator https://github.com/openapitools/openapi-generator) thSTRING
HIGHkubernetes/aio/client/__init__.py0kubernetes no description provided (generated by openapi generator https://github.com/openapitools/openapi-generator) thSTRING
HIGHkubernetes/aio/client/exceptions.py0kubernetes no description provided (generated by openapi generator https://github.com/openapitools/openapi-generator) thSTRING
HIGHkubernetes/aio/client/api_client.py0kubernetes no description provided (generated by openapi generator https://github.com/openapitools/openapi-generator) thSTRING
HIGH…rnetes/aio/client/models/v1_ingress_service_backend.py0kubernetes no description provided (generated by openapi generator https://github.com/openapitools/openapi-generator) thSTRING
HIGH…/client/models/v1beta2_resource_claim_template_spec.py0kubernetes no description provided (generated by openapi generator https://github.com/openapitools/openapi-generator) thSTRING
HIGHkubernetes/aio/client/models/v1_limit_response.py0kubernetes no description provided (generated by openapi generator https://github.com/openapitools/openapi-generator) thSTRING
HIGH…nt/models/v1_mutating_admission_policy_binding_spec.py0kubernetes no description provided (generated by openapi generator https://github.com/openapitools/openapi-generator) thSTRING
HIGHkubernetes/aio/client/models/v1_pod_volume_health.py0kubernetes no description provided (generated by openapi generator https://github.com/openapitools/openapi-generator) thSTRING
HIGH…ernetes/aio/client/models/v1_scale_io_volume_source.py0kubernetes no description provided (generated by openapi generator https://github.com/openapitools/openapi-generator) thSTRING
HIGH…aio/client/models/v1beta1_node_allocatable_overhead.py0kubernetes no description provided (generated by openapi generator https://github.com/openapitools/openapi-generator) thSTRING
HIGHkubernetes/aio/client/models/v1_role_binding.py0kubernetes no description provided (generated by openapi generator https://github.com/openapitools/openapi-generator) thSTRING
8123 more matches not shown…
Unused Imports7405 hits · 5576 pts
SeverityFileLineSnippetContext
LOWexamples/cluster_scoped_custom_object.py54CODE
LOWexamples/job_crud.py19CODE
LOWexamples/job_crud.py22CODE
LOWexamples/remote_cluster.py21CODE
LOWexamples/multiple_clusters.py24CODE
LOWexamples/informer_example.py24CODE
LOWkubernetes/__init__.py19CODE
LOWkubernetes/__init__.py20CODE
LOWkubernetes/__init__.py21CODE
LOWkubernetes/__init__.py22CODE
LOWkubernetes/__init__.py23CODE
LOWkubernetes/__init__.py24CODE
LOWkubernetes/__init__.py25CODE
LOWkubernetes/__init__.py26CODE
LOWkubernetes/dynamic/discovery.py28CODE
LOWkubernetes/dynamic/client.py20CODE
LOWkubernetes/dynamic/client.py22CODE
LOWkubernetes/dynamic/client.py22CODE
LOWkubernetes/dynamic/client.py22CODE
LOWkubernetes/dynamic/client.py22CODE
LOWkubernetes/dynamic/__init__.py15CODE
LOWkubernetes/test/test_apis_alias.py60CODE
LOWkubernetes/config/__init__.py17CODE
LOWkubernetes/config/__init__.py19CODE
LOWkubernetes/config/__init__.py19CODE
LOWkubernetes/config/__init__.py19CODE
LOWkubernetes/config/__init__.py19CODE
LOWkubernetes/config/exec_provider_test.py16CODE
LOWkubernetes/config/kube_config_test.py20CODE
LOWkubernetes/config/incluster_config_test.py18CODE
LOWkubernetes/stream/__init__.py15CODE
LOWkubernetes/stream/__init__.py15CODE
LOWkubernetes/stream/ws_client.py14CODE
LOWkubernetes/stream/ws_client.py19CODE
LOWkubernetes/stream/ws_client.py31CODE
LOWkubernetes/stream/ws_client_test.py28CODE
LOWkubernetes/aio/__init__.py19CODE
LOWkubernetes/aio/__init__.py20CODE
LOWkubernetes/aio/__init__.py21CODE
LOWkubernetes/aio/__init__.py22CODE
LOWkubernetes/aio/__init__.py23CODE
LOWkubernetes/aio/__init__.py24CODE
LOWkubernetes/aio/__init__.py25CODE
LOWkubernetes/aio/dynamic/client.py18CODE
LOWkubernetes/aio/dynamic/client.py20CODE
LOWkubernetes/aio/dynamic/client.py20CODE
LOWkubernetes/aio/dynamic/client.py20CODE
LOWkubernetes/aio/dynamic/client.py20CODE
LOWkubernetes/aio/dynamic/__init__.py15CODE
LOWkubernetes/aio/config/__init__.py17CODE
LOWkubernetes/aio/config/__init__.py19CODE
LOWkubernetes/aio/config/__init__.py19CODE
LOWkubernetes/aio/config/__init__.py19CODE
LOWkubernetes/aio/config/__init__.py19CODE
LOWkubernetes/aio/config/__init__.py19CODE
LOWkubernetes/aio/config/incluster_config_test.py18CODE
LOWkubernetes/aio/stream/__init__.py15CODE
LOWkubernetes/aio/utils/__init__.py15CODE
LOWkubernetes/aio/utils/__init__.py17CODE
LOWkubernetes/aio/utils/__init__.py17CODE
7345 more matches not shown…
Hyper-Verbose Identifiers4777 hits · 4032 pts
SeverityFileLineSnippetContext
LOWexamples/rollout-daemonset.py73def rollout_namespaced_daemon_set(CODE
LOWexamples/pod_portforward.py128 def kubernetes_create_connection(address, *args, **kwargs):CODE
LOW⚡examples/metrics_example.py96def print_filtered_pod_metrics(api_client, namespace, labels):CODE
LOW⚡examples/metrics_example.py123def print_multi_namespace_metrics(api_client, namespaces):CODE
LOWexamples/cronjob_crud.py11def create_namespaced_cron_job(namespace='default', body=None):CODE
LOWexamples/cronjob_crud.py28def delete_namespaced_cron_job(namespace='default', name=None):CODE
LOWexamples/cronjob_crud.py42def patch_namespaced_cron_job(namespace='default', body=None):CODE
LOWexamples/rollout-statefulset.py39def create_stateful_set_object():CODE
LOWexamples/rollout-statefulset.py101def rollout_namespaced_stateful_set(CODE
LOWexamples/dynamic-client/namespaced_custom_resource.py29def list_ingressroute_for_all_namespaces(group, version, plural):CODE
LOWdoc/source/conf.py24def _copy_with_converting_link_to_repo(filename, new_filename):CODE
LOWkubernetes/dynamic/discovery.py156 def get_resources_for_api_version(self, prefix, group, version, preferred):CODE
LOWkubernetes/dynamic/test_discovery.py30 def test_init_cache_from_file(self):CODE
LOWkubernetes/dynamic/test_discovery.py42 def test_cache_decoder_resource_and_subresource(self):CODE
LOWkubernetes/dynamic/test_client.py38 def test_cluster_custom_resources(self):CODE
LOWkubernetes/dynamic/test_client.py137 def test_async_namespaced_custom_resources(self):CODE
LOWkubernetes/dynamic/test_client.py252 def test_namespaced_custom_resources(self):CODE
LOWkubernetes/dynamic/test_client.py405 def test_replication_controller_apis(self):CODE
LOWkubernetes/dynamic/test_client.py498 def test_node_apis_partial_object_metadata(self):CODE
LOWkubernetes/dynamic/test_client.py516 def test_server_side_apply_api(self):CODE
LOWkubernetes/dynamic/test_client.py555 def test_resource_instance_type(self):CODE
LOWkubernetes/dynamic/client_test.py27 def test_request_translates_http_errors(self):CODE
LOWkubernetes/dynamic/client_test.py64 def test_request_preserves_resolved_async_req_response(self):CODE
LOWkubernetes/dynamic/client_test.py106 def test_apply_patch_serializes_object_body(self):CODE
LOWkubernetes/dynamic/client_test.py152 def test_no_proxy_bypasses_configured_proxy(self):CODE
LOWkubernetes/dynamic/client_test.py211 def test_watch_forwards_send_initial_events(self):CODE
LOWkubernetes/dynamic/client_test.py238 def test_request_builds_send_initial_events_query_params(self):CODE
LOW⚡kubernetes/test/test_api_client.py16 def test_context_manager_closes_threadpool(self):CODE
LOW⚡kubernetes/test/test_api_client.py24 def test_atexit_closes_threadpool(self, register):CODE
LOW⚡kubernetes/test/test_api_client.py33 def test_deserialize_dict_syntax_compatibility(self):CODE
LOWkubernetes/test/test_api_client.py71 def test_client_go_read_retries_do_not_override_write_retries(self):CODE
LOW⚡kubernetes/test/test_api_client.py107 def test_auth_settings_with_bearer_token_key(self):CODE
LOW⚡kubernetes/test/test_api_client.py113 def test_auth_settings_with_authorization_key(self):CODE
LOW⚡kubernetes/test/test_api_client.py119 def test_auth_settings_bearer_token_takes_precedence(self):CODE
LOW⚡kubernetes/test/test_api_client.py126 def test_auth_settings_with_no_token(self):CODE
LOW⚡kubernetes/test/test_api_client.py131 def test_auth_settings_with_authorization_key_and_prefix(self):CODE
LOWkubernetes/test/test_api_client.py144 async def test_auth_settings_with_authorization_key_and_prefix(self):CODE
LOWkubernetes/test/test_api_client.py154 async def test_auth_settings_bearer_token_takes_precedence(self):CODE
LOWkubernetes/test/test_apis_alias.py36 def test_from_import_submodule(self):CODE
LOWkubernetes/test/test_apis_alias.py43 def test_every_api_submodule_is_reachable(self):CODE
LOWkubernetes/test/test_apis_alias.py63 def test_non_submodule_names_are_not_imported(self):CODE
LOWkubernetes/test/test_apis_alias.py70 def test_missing_dependency_propagates(self):CODE
LOWkubernetes/test/test_metrics.py26 def test_get_nodes_metrics_success(self, mock_custom_api_class):CODE
LOWkubernetes/test/test_metrics.py58 def test_get_pods_metrics_success(self, mock_custom_api_class):CODE
LOWkubernetes/test/test_metrics.py95 def test_get_pods_metrics_with_label_selector(self, mock_custom_api_class):CODE
LOW⚡kubernetes/test/test_metrics.py113 def test_get_pods_metrics_empty_namespace_raises_error(self):CODE
LOW⚡kubernetes/test/test_metrics.py120 def test_get_pods_metrics_none_namespace_raises_error(self):CODE
LOW⚡kubernetes/test/test_metrics.py128 def test_get_pods_metrics_in_all_namespaces_success(self, mock_get_pods):CODE
LOWkubernetes/test/test_metrics.py147 def test_get_pods_metrics_in_all_namespaces_with_errors(self, mock_get_pods):CODE
LOWkubernetes/test/test_metrics.py167 def test_get_pods_metrics_in_all_namespaces_with_label_selector(self, mock_get_pods):CODE
LOWkubernetes/test/test_typing.py25 def test_root_package_is_marked_as_typed(self):CODE
LOWkubernetes/test/test_typing.py28 def test_synchronous_nested_model_types(self):CODE
LOWkubernetes/test/test_typing.py53 def test_asynchronous_nested_model_types(self):CODE
LOW⚡kubernetes/test/test_informer.py152 def test_remove_unknown_handler_noop(self):CODE
LOW⚡kubernetes/test/test_informer.py155 def test_invalid_event_type_raises(self):CODE
LOW⚡kubernetes/test/test_informer.py159 def test_handler_exception_is_swallowed(self):CODE
LOW⚡kubernetes/test/test_informer.py541 def test_multiple_handlers_all_fire(self):CODE
LOW⚡kubernetes/test/test_informer.py897 def test_same_handler_registered_twice_fires_twice(self):CODE
LOWkubernetes/test/test_informer.py76 def test_remove_nonexistent_is_noop(self):CODE
LOWkubernetes/test/test_informer.py138 def test_add_handler_and_fire(self):CODE
4717 more matches not shown…
Excessive Try-Catch Wrapping1630 hits · 1414 pts
SeverityFileLineSnippetContext
LOWexamples_asyncio/in_cluster_config.py75 except Exception:CODE
LOWexamples/metrics_example.py59 except Exception as e:CODE
MEDIUMexamples/metrics_example.py60 print(f"Error fetching node metrics: {e}")CODE
LOW⚡examples/metrics_example.py92 except Exception as e:CODE
MEDIUM⚡examples/metrics_example.py93 print(f"Error fetching pod metrics: {e}")CODE
LOW⚡examples/metrics_example.py119 except Exception as e:CODE
MEDIUM⚡examples/metrics_example.py120 print(f"Error fetching filtered pod metrics: {e}")CODE
LOWexamples/metrics_example.py148 except Exception as e:CODE
MEDIUMexamples/metrics_example.py149 print(f"Error fetching multi-namespace metrics: {e}")CODE
LOW⚡examples/pod_logs.py49 except Exception as e:CODE
MEDIUM⚡examples/pod_logs.py50 print(f"Error getting logs for pod {pod_name}, container {container_name}: {e}")CODE
LOW⚡examples/pod_logs.py52 except Exception as e:CODE
MEDIUM⚡examples/pod_logs.py53 print(f"Error: {e}")CODE
MEDIUMexamples/pod_logs.py22def list_pods_with_logs():CODE
LOWexamples/apply_from_dict.py19 except Exception as e:CODE
LOWkubernetes/dynamic/discovery.py65 except Exception as e:CODE
LOWkubernetes/dynamic/discovery.py77 except Exception:CODE
MEDIUMkubernetes/dynamic/discovery.py73def _write_cache(self):CODE
MEDIUMkubernetes/test/test_informer.py104def worker(n):CODE
MEDIUMkubernetes/test/test_informer.py1056def worker():CODE
LOWkubernetes/test/test_informer.py108 except Exception as exc:CODE
LOWkubernetes/test/test_informer.py1064 except Exception as exc:CODE
LOWkubernetes/config/kube_config.py473 except Exception as e:CODE
LOWkubernetes/aio/dynamic/discovery.py82 except Exception as e:CODE
LOWkubernetes/aio/dynamic/discovery.py94 except Exception:CODE
MEDIUMkubernetes/aio/dynamic/discovery.py90def _write_cache(self):CODE
LOWkubernetes/aio/config/kube_config.py357 except Exception as e:CODE
MEDIUMkubernetes/aio/config/kube_config.py324def load_from_exec_plugin(self):CODE
LOWkubernetes/aio/utils/retry.py56 except Exception as error:CODE
LOWkubernetes/aio/utils/retry.py98 except Exception as error:CODE
LOWkubernetes/aio/docs/ApiregistrationApi.md51 except Exception as e:CODE
LOWkubernetes/aio/docs/LogsApi.md48 except Exception as e:CODE
LOWkubernetes/aio/docs/LogsApi.md118 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md87 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md174 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md262 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md353 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md445 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md546 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md654 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md763 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md864 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md949 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md1034 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md1133 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md1233 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md1333 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md1427 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md1517 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md1607 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md1697 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md1788 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md1880 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md1966 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md2045 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md2124 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md2203 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md2283 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md2364 except Exception as e:CODE
LOWkubernetes/aio/docs/CertificatesV1Api.md2448 except Exception as e:CODE
1570 more matches not shown…
AI Structural Patterns1805 hits · 944 pts
SeverityFileLineSnippetContext
LOWkubernetes/dynamic/client.py161CODE
LOWkubernetes/dynamic/resource.py25CODE
LOWkubernetes/aio/dynamic/resource.py25CODE
LOWkubernetes/aio/client/configuration.py214CODE
LOWkubernetes/aio/client/api_client.py173CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py67CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py153CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py239CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py409CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py495CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py581CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py751CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py879CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py1007CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py1274CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py1402CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py1530CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py1797CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py1894CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py1991CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py2185CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py2282CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py2379CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py2826CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py2938CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py3050CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py3286CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py3398CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py3510CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py3746CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py3839CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py3932CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py4134CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py4227CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py4320CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py5092CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py5181CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py5270CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py5446CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py5535CODE
LOW…es/aio/client/api/admissionregistration_v1beta1_api.py5624CODE
LOWkubernetes/aio/client/api/node_v1_api.py65CODE
LOWkubernetes/aio/client/api/node_v1_api.py151CODE
LOWkubernetes/aio/client/api/node_v1_api.py237CODE
LOWkubernetes/aio/client/api/node_v1_api.py407CODE
LOWkubernetes/aio/client/api/node_v1_api.py535CODE
LOWkubernetes/aio/client/api/node_v1_api.py663CODE
LOWkubernetes/aio/client/api/node_v1_api.py930CODE
LOWkubernetes/aio/client/api/node_v1_api.py1027CODE
LOWkubernetes/aio/client/api/node_v1_api.py1124CODE
LOWkubernetes/aio/client/api/node_v1_api.py1571CODE
LOWkubernetes/aio/client/api/node_v1_api.py1683CODE
LOWkubernetes/aio/client/api/node_v1_api.py1795CODE
LOWkubernetes/aio/client/api/node_v1_api.py2031CODE
LOWkubernetes/aio/client/api/node_v1_api.py2124CODE
LOWkubernetes/aio/client/api/node_v1_api.py2217CODE
LOWkubernetes/aio/client/api/node_v1_api.py2704CODE
LOWkubernetes/aio/client/api/node_v1_api.py2793CODE
LOWkubernetes/aio/client/api/node_v1_api.py2882CODE
LOW…ernetes/aio/client/api/flowcontrol_apiserver_v1_api.py67CODE
1745 more matches not shown…
Over-Commented Block223 hits · 202 pts
SeverityFileLineSnippetContext
LOWsetup.py1# Copyright 2016 The Kubernetes Authors.COMMENT
LOWsetup-asyncio.py1# Copyright 2026 The Kubernetes Authors.COMMENT
LOWsetup-release.py1# Copyright 2016 The Kubernetes Authors.COMMENT
LOW.readthedocs.yaml21 - cp -r doc/html/* $READTHEDOCS_OUTPUT/html/COMMENT
LOW.readthedocs.yaml41# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.htmlCOMMENT
LOW.readthedocs.yaml61# cat latexmkrcCOMMENT
LOWexamples_asyncio/in_cluster_config.py1# Copyright 2017 The Kubernetes Authors.COMMENT
LOWexamples_asyncio/in_cluster_config.py21# ---COMMENT
LOWexamples_asyncio/dynamic-client/accept_header.py1# Copyright 2021 The Kubernetes Authors.COMMENT
LOWexamples_asyncio/dynamic-client/service.py1# Copyright 2021 The Kubernetes Authors.COMMENT
LOW…s_asyncio/dynamic-client/deployment_rolling_restart.py1# Copyright 2021 The Kubernetes Authors.COMMENT
LOW…s_asyncio/dynamic-client/namespaced_custom_resource.py1# Copyright 2021 The Kubernetes Authors.COMMENT
LOW…yncio/dynamic-client/cluster_scoped_custom_resource.py1# Copyright 2021 The Kubernetes Authors.COMMENT
LOWexamples_asyncio/dynamic-client/configmap.py1# Copyright 2021 The Kubernetes Authors.COMMENT
LOWexamples_asyncio/dynamic-client/request_timeout.py1# Copyright 2023 The Kubernetes Authors.COMMENT
LOWexamples_asyncio/dynamic-client/node.py1# Copyright 2021 The Kubernetes Authors.COMMENT
LOW…mples_asyncio/dynamic-client/replication_controller.py1# Copyright 2021 The Kubernetes Authors.COMMENT
LOWexamples/cluster_scoped_custom_object.py1# Copyright 2021 The Kubernetes Authors.COMMENT
LOWexamples/enable_debug_logging.py1# Copyright 2025 The Kubernetes Authors.COMMENT
LOWexamples/pod_config_list.py1# Copyright 2016 The Kubernetes Authors.COMMENT
LOWexamples/api_discovery.py1# Copyright 2016 The Kubernetes Authors.COMMENT
LOWexamples/ingress_create.py1# Copyright 2019 The Kubernetes Authors.COMMENT
LOWexamples/job_crud.py1# Copyright 2016 The Kubernetes Authors.COMMENT
LOWexamples/node_labels.py1# Copyright 2016 The Kubernetes Authors.COMMENT
LOWexamples/deployment_crud.py1# Copyright 2016 The Kubernetes Authors.COMMENT
LOWexamples/namespaced_custom_object.py1# Copyright 2019 The Kubernetes Authors.COMMENT
LOWexamples/__init__.py1# Copyright 2016 The Kubernetes Authors.COMMENT
LOWexamples/in_cluster_config.py1# Copyright 2017 The Kubernetes Authors.COMMENT
LOWexamples/out_of_cluster_config.py1# Copyright 2016 The Kubernetes Authors.COMMENT
LOWexamples/pod_portforward.py1# Copyright 2020 The Kubernetes Authors.COMMENT
LOWexamples/pod_portforward.py21import timeCOMMENT
LOWexamples/pod_portforward.py41# Below also is an example of monkey patching the socket.create_connectionCOMMENT
LOWexamples/metrics_example.py1#!/usr/bin/env pythonCOMMENT
LOWexamples/pod_logs.py1# Copyright 2025 The Kubernetes Authors.COMMENT
LOWexamples/pod_exec.py1# Copyright 2019 The Kubernetes Authors.COMMENT
LOWexamples/pick_kube_config_context.py1# Copyright 2016 The Kubernetes Authors.COMMENT
LOWexamples/remote_cluster.py1# Copyright 2018 The Kubernetes Authors.COMMENT
LOWexamples/multiple_clusters.py1# Copyright 2016 The Kubernetes Authors.COMMENT
LOWexamples/deployment_create.py1# Copyright 2016 The Kubernetes Authors.COMMENT
LOWexamples/informer_example.py1# Copyright 2026 The Kubernetes Authors.COMMENT
LOWexamples/dynamic-client/accept_header.py1# Copyright 2021 The Kubernetes Authors.COMMENT
LOWexamples/dynamic-client/service.py1# Copyright 2021 The Kubernetes Authors.COMMENT
LOWexamples/dynamic-client/deployment_rolling_restart.py1# Copyright 2021 The Kubernetes Authors.COMMENT
LOWexamples/dynamic-client/namespaced_custom_resource.py1# Copyright 2021 The Kubernetes Authors.COMMENT
LOW…mples/dynamic-client/cluster_scoped_custom_resource.py1# Copyright 2021 The Kubernetes Authors.COMMENT
LOWexamples/dynamic-client/configmap.py1# Copyright 2021 The Kubernetes Authors.COMMENT
LOWexamples/dynamic-client/request_timeout.py1# Copyright 2023 The Kubernetes Authors.COMMENT
LOWexamples/dynamic-client/node.py1# Copyright 2021 The Kubernetes Authors.COMMENT
LOWexamples/dynamic-client/replication_controller.py1# Copyright 2021 The Kubernetes Authors.COMMENT
LOWexamples/watch/pod_namespace_watch.py1# Copyright 2016 The Kubernetes Authors.COMMENT
LOWexamples/watch/watch_recovery.py1# Copyright 2025 The Kubernetes Authors.COMMENT
LOWscripts/update-pycodestyle.sh1#!/bin/bashCOMMENT
LOWscripts/update-client.sh1#!/bin/bashCOMMENT
LOWscripts/constants.py1# Copyright 2016 The Kubernetes Authors.COMMENT
LOWscripts/kube-init.sh1#!/bin/bashCOMMENT
LOWscripts/cherry_pick_pull.sh1#!/bin/bashCOMMENT
LOWscripts/update-client-asyncio.sh1#!/bin/bashCOMMENT
LOWscripts/release.sh1#!/bin/bashCOMMENT
LOWscripts/release.sh21# API change happened in a k8s patch release, or we want to include some newCOMMENT
LOWscripts/release.sh41# section that reflect the master branch stateCOMMENT
163 more matches not shown…
Self-Referential Comments51 hits · 151 pts
SeverityFileLineSnippetContext
MEDIUMexamples_asyncio/watch_ns_pods.py37 # Define the tasks to watch namespaces and pods.COMMENT
MEDIUMexamples_asyncio/dynamic-client/accept_header.py29 # Creating a dynamic clientCOMMENT
MEDIUMexamples_asyncio/dynamic-client/accept_header.py37 # Creating a custom headerCOMMENT
MEDIUMexamples_asyncio/dynamic-client/service.py30 # Creating a dynamic clientCOMMENT
MEDIUM…s_asyncio/dynamic-client/deployment_rolling_restart.py33 # Creating a dynamic clientCOMMENT
MEDIUM…s_asyncio/dynamic-client/namespaced_custom_resource.py46 # Creating a dynamic clientCOMMENT
MEDIUM…s_asyncio/dynamic-client/namespaced_custom_resource.py59 # Creating a Namespaced CRD named "ingressroutes.apps.example.com"COMMENT
MEDIUM…s_asyncio/dynamic-client/namespaced_custom_resource.py137 # Creating a custom resource (CR) `ingress-route-*`, using the above CRD `ingressroutes.apps.example.com`COMMENT
MEDIUM…yncio/dynamic-client/cluster_scoped_custom_resource.py33 # Creating a dynamic clientCOMMENT
MEDIUM…yncio/dynamic-client/cluster_scoped_custom_resource.py44 # Creating a Namespaced CRD named "ingressroutes.apps.example.com"COMMENT
MEDIUM…yncio/dynamic-client/cluster_scoped_custom_resource.py123 # Creating a custom resource (CR) `ingress-route-*`, using the above CRD `ingressroutes.apps.example.com`COMMENT
MEDIUMexamples_asyncio/dynamic-client/configmap.py30 # Creating a dynamic clientCOMMENT
MEDIUMexamples_asyncio/dynamic-client/request_timeout.py30 # Creating a dynamic clientCOMMENT
MEDIUMexamples_asyncio/dynamic-client/node.py29 # Creating a dynamic clientCOMMENT
MEDIUM…mples_asyncio/dynamic-client/replication_controller.py28 # Creating a dynamic clientCOMMENT
MEDIUMexamples/enable_debug_logging.py50 # Create the deploymentCOMMENT
MEDIUMexamples/annotate_deployment.py41 # Create the Deployment in default namespaceCOMMENT
MEDIUMexamples/job_crud.py39 # Create the specification of deploymentCOMMENT
MEDIUMexamples/job_crud.py100 # Create a job object with client-python API. The job weCOMMENT
MEDIUMexamples/rollout-daemonset.py41 # Create the Daemonset in default namespaceCOMMENT
MEDIUMexamples/deployment_crud.py49 # Create the specification of deploymentCOMMENT
MEDIUMexamples/deployment_crud.py156 # Create a deployment object with client-python API. The deployment weCOMMENT
MEDIUMexamples/remote_cluster.py25 # Define the bearer token we are going to use to authenticate.COMMENT
MEDIUMexamples/remote_cluster.py30 # Create a configuration objectCOMMENT
MEDIUMexamples/remote_cluster.py47 # Create a ApiClient with our configCOMMENT
MEDIUMexamples/rollout-statefulset.py34 # Create the service in specified namespaceCOMMENT
MEDIUMexamples/rollout-statefulset.py69 # Create the Statefulset in default namespaceCOMMENT
MEDIUMexamples/dynamic-client/accept_header.py24 # Creating a dynamic clientCOMMENT
MEDIUMexamples/dynamic-client/accept_header.py32 # Creating a custom headerCOMMENT
MEDIUMexamples/dynamic-client/service.py26 # Creating a dynamic clientCOMMENT
MEDIUMexamples/dynamic-client/deployment_rolling_restart.py29 # Creating a dynamic clientCOMMENT
MEDIUMexamples/dynamic-client/namespaced_custom_resource.py64 # Creating a dynamic clientCOMMENT
MEDIUMexamples/dynamic-client/namespaced_custom_resource.py76 # Creating a Namespaced CRD named "ingressroutes.apps.example.com"COMMENT
MEDIUMexamples/dynamic-client/namespaced_custom_resource.py152 # Creating a custom resource (CR) `ingress-route-*`, using the above CRD `ingressroutes.apps.example.com`COMMENT
MEDIUM…mples/dynamic-client/cluster_scoped_custom_resource.py30 # Creating a dynamic clientCOMMENT
MEDIUM…mples/dynamic-client/cluster_scoped_custom_resource.py40 # Creating a Namespaced CRD named "ingressroutes.apps.example.com"COMMENT
MEDIUM…mples/dynamic-client/cluster_scoped_custom_resource.py118 # Creating a custom resource (CR) `ingress-route-*`, using the above CRD `ingressroutes.apps.example.com`COMMENT
MEDIUMexamples/dynamic-client/configmap.py26 # Creating a dynamic clientCOMMENT
MEDIUMexamples/dynamic-client/request_timeout.py26 # Creating a dynamic clientCOMMENT
MEDIUMexamples/dynamic-client/node.py25 # Creating a dynamic clientCOMMENT
MEDIUMexamples/dynamic-client/replication_controller.py24 # Creating a dynamic clientCOMMENT
MEDIUMexamples/yaml_dir/pod.yml12 # Define the environment variableCOMMENT
MEDIUMexamples/yaml_dir/configmap-demo-pod.yml31 # Define the environment variableCOMMENT
MEDIUMscripts/release.sh103# Create a local branchCOMMENT
MEDIUMdoc/html/usage.html135 <span class="c1"># Create the specification of deployment</span>CODE
MEDIUMdoc/html/usage.html242 <span class="c1"># Create a deployment object with client-python API. The deployment we</span>CODE
MEDIUMkubernetes/stream/ws_client_test.py38 # Creating a kubeconfigCOMMENT
MEDIUMkubernetes/aio/dynamic/discovery_test.py82 # Create a mock client with the necessary attributesCOMMENT
MEDIUMkubernetes/aio/utils/_retry_base.py20# This module contains common pieces for 1:1 Python implementations of theCOMMENT
MEDIUMkubernetes/utils/_retry_base.py20# This module contains common pieces for 1:1 Python implementations of theCOMMENT
MEDIUMkubernetes/base/retry.py20# This module contains common pieces for 1:1 Python implementations of theCOMMENT
Empty Error Handlers24 hits · 120 pts
SeverityFileLineSnippetContext
HIGHexamples/informer_example.py67except KeyboardInterrupt:CODE
HIGHkubernetes/dynamic/discovery.py77except Exception:CODE
HIGHkubernetes/config/kube_config.py58except OSError:CODE
HIGHkubernetes/config/incluster_config_test.py135except ConfigException:CODE
HIGHkubernetes/stream/ws_client_test.py34except ImportError:CODE
HIGHkubernetes/aio/dynamic/discovery.py94except Exception:CODE
HIGHkubernetes/aio/config/kube_config.py50except OSError:CODE
HIGHkubernetes/aio/config/incluster_config_test.py128except ConfigException:CODE
HIGHkubernetes/aio/leaderelection/resourcelock/leaselock.py164except ValueError:CODE
HIGHkubernetes/aio/e2e_test/base.py43except ConnectionRefusedError:CODE
HIGHkubernetes/aio/client/exceptions.py128except Exception:CODE
HIGHkubernetes/informer/informer.py133except (KeyError, ValueError):CODE
HIGHkubernetes/e2e_test/test_utils.py630except:CODE
HIGHkubernetes/e2e_test/test_utils.py637except:CODE
HIGH…bernetes/e2e_test/test_issue_2387_proxy_ssl_context.py66except OSError:CODE
HIGH…bernetes/e2e_test/test_issue_2387_proxy_ssl_context.py72except OSError:CODE
HIGHkubernetes/e2e_test/test_informer.py48except Exception:CODE
HIGHkubernetes/e2e_test/base.py40except urllib3.exceptions.HTTPError:CODE
HIGHkubernetes/watch/watch_test.py451except KeyError:CODE
HIGHkubernetes/watch/watch_test.py502except client.rest.ApiException:CODE
HIGHkubernetes/watch/watch_test.py529except client.rest.ApiException:CODE
HIGHkubernetes/watch/watch.py109except Exception:CODE
HIGHkubernetes/client/rest.py85except ValueError:CODE
HIGHkubernetes/client/exceptions.py128except Exception:CODE
Cross-Language Confusion11 hits · 62 pts
SeverityFileLineSnippetContext
HIGH⚡kubernetes/aio/watch/watch_test.py415 '{"creationTimestamp":null}, "spec": 'CODE
HIGH⚡kubernetes/aio/watch/watch_test.py416 '{"containers":null}}}}}',CODE
HIGHkubernetes/aio/client/models/v1_validation_rule.py111 rule: StrictStr = Field(description="Rule represents the expression which will be evaluated by CEL. ref: https://gitCODE
HIGH…els/v1_pod_failure_policy_on_exit_codes_requirement.py106 container_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("containerName", "container_CODE
HIGHkubernetes/aio/client/models/v1_success_policy_rule.py106 succeeded_count: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("succeededCount", "succeedeCODE
HIGHkubernetes/aio/client/models/v1_success_policy_rule.py107 succeeded_indexes: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("succeededIndexes", "succCODE
HIGH⚡kubernetes/watch/watch_test.py417 '"metadata":{},"spec":{"containers":null}}},"status":{}}}',CODE
HIGHkubernetes/client/models/v1_validation_rule.py111 rule: StrictStr = Field(description="Rule represents the expression which will be evaluated by CEL. ref: https://gitCODE
HIGH…els/v1_pod_failure_policy_on_exit_codes_requirement.py106 container_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("containerName", "container_CODE
HIGHkubernetes/client/models/v1_success_policy_rule.py106 succeeded_count: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("succeededCount", "succeedeCODE
HIGHkubernetes/client/models/v1_success_policy_rule.py107 succeeded_indexes: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("succeededIndexes", "succCODE
Deep Nesting53 hits · 50 pts
SeverityFileLineSnippetContext
LOWexamples_asyncio/pod_exec.py64CODE
LOWexamples/pod_logs_non_blocking.py17CODE
LOWexamples/pod_portforward.py60CODE
LOWexamples/pod_portforward.py128CODE
LOWexamples/metrics_example.py123CODE
LOWexamples/pod_logs.py22CODE
LOWkubernetes/dynamic/discovery.py112CODE
LOWkubernetes/dynamic/discovery.py254CODE
LOWkubernetes/dynamic/discovery.py303CODE
LOWkubernetes/dynamic/discovery.py364CODE
LOWkubernetes/dynamic/discovery.py389CODE
LOWkubernetes/test/test_generated_api.py318CODE
LOWkubernetes/test/test_generated_api.py363CODE
LOWkubernetes/test/test_generated_api.py482CODE
LOWkubernetes/config/kube_config.py439CODE
LOWkubernetes/config/exec_provider.py71CODE
LOWkubernetes/config/kube_config_test.py377CODE
LOWkubernetes/config/kube_config_test.py404CODE
LOWkubernetes/stream/ws_client.py526CODE
LOWkubernetes/stream/ws_client.py632CODE
LOWkubernetes/stream/ws_client.py52CODE
LOWkubernetes/stream/ws_client.py104CODE
LOWkubernetes/stream/ws_client.py213CODE
LOWkubernetes/stream/ws_client.py424CODE
LOWkubernetes/aio/dynamic/discovery.py130CODE
LOWkubernetes/aio/dynamic/discovery.py280CODE
LOWkubernetes/aio/dynamic/discovery.py328CODE
LOWkubernetes/aio/dynamic/discovery.py391CODE
LOWkubernetes/aio/dynamic/discovery.py416CODE
LOWkubernetes/aio/test/test_generated_api.py152CODE
LOWkubernetes/aio/config/kube_config.py324CODE
LOWkubernetes/aio/config/kube_config_test.py294CODE
LOWkubernetes/aio/config/kube_config_test.py319CODE
LOWkubernetes/aio/stream/ws_client.py99CODE
LOWkubernetes/aio/client/rest.py166CODE
LOWkubernetes/aio/client/api_client.py317CODE
LOWkubernetes/aio/client/api_client.py373CODE
LOWkubernetes/aio/client/api_client.py466CODE
LOWkubernetes/aio/client/api_client.py521CODE
LOWkubernetes/aio/client/api_client.py558CODE
LOWkubernetes/aio/client/api_client.py602CODE
LOWkubernetes/informer/informer.py238CODE
LOWkubernetes/e2e_test/test_client.py319CODE
LOWkubernetes/watch/watch.py136CODE
LOWkubernetes/watch/watch.py171CODE
LOWkubernetes/client/rest.py62CODE
LOWkubernetes/client/rest.py193CODE
LOWkubernetes/client/api_client.py389CODE
LOWkubernetes/client/api_client.py445CODE
LOWkubernetes/client/api_client.py538CODE
LOWkubernetes/client/api_client.py593CODE
LOWkubernetes/client/api_client.py630CODE
LOWkubernetes/client/api_client.py674CODE
Modern Structural Boilerplate26 hits · 26 pts
SeverityFileLineSnippetContext
LOWkubernetes/dynamic/client.py36__all__ = [CODE
LOWkubernetes/config/__init__.py23__all__ = [CODE
LOWkubernetes/stream/__init__.py17__all__ = [CODE
LOWkubernetes/aio/__init__.py27__all__ = ["client", "config", "dynamic", "leaderelection", "stream", "utils", "watch"]CODE
LOWkubernetes/aio/dynamic/discovery.py37logger = logging.getLogger(__name__)CODE
LOWkubernetes/aio/dynamic/client.py36__all__ = [CODE
LOWkubernetes/aio/config/kube_config.py42logger = logging.getLogger(__name__)CODE
LOWkubernetes/aio/config/__init__.py25__all__ = [CODE
LOWkubernetes/aio/stream/__init__.py17__all__ = [CODE
LOWkubernetes/aio/utils/__init__.py28__all__ = [CODE
LOWkubernetes/aio/leaderelection/leaderelection.py29logger = logging.getLogger(__name__)CODE
LOW…netes/aio/leaderelection/resourcelock/configmaplock.py27logger = logging.getLogger(__name__)CODE
LOWkubernetes/aio/leaderelection/resourcelock/leaselock.py26logger = logging.getLogger(__name__)CODE
LOWkubernetes/aio/watch/__init__.py17__all__ = [CODE
LOWkubernetes/aio/client/configuration.py437 def set_default(cls, default: Optional[Self]) -> None:CODE
LOWkubernetes/aio/client/__init__.py20__all__ = [CODE
LOWkubernetes/aio/client/models/__init__.py15__all__ = [CODE
LOWkubernetes/aio/client/api/__init__.py3__all__ = [CODE
LOWkubernetes/utils/__init__.py30__all__ = [CODE
LOWkubernetes/informer/__init__.py18__all__ = [CODE
LOWkubernetes/informer/informer.py31logger = logging.getLogger(__name__)CODE
LOWkubernetes/watch/__init__.py17__all__ = [CODE
LOWkubernetes/client/configuration.py440 def set_default(cls, default: Optional[Self]) -> None:CODE
LOWkubernetes/client/__init__.py20__all__ = [CODE
LOWkubernetes/client/models/__init__.py15__all__ = [CODE
LOWkubernetes/client/api/__init__.py3__all__ = [CODE
Decorative Section Separators5 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUM⚡kubernetes/test/test_informer.py536 # ------------------------------------------------------------------COMMENT
MEDIUM⚡kubernetes/test/test_informer.py539 # ------------------------------------------------------------------COMMENT
MEDIUM⚡kubernetes/test/test_informer.py893 # ------------------------------------------------------------------COMMENT
MEDIUM⚡kubernetes/test/test_informer.py895 # ------------------------------------------------------------------COMMENT
MEDIUMkubernetes/e2e_test/test_informer.py69 # -------------------------------------------------------COMMENT
Docstring Block Structure4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHkubernetes/utils/metrics.py33 Fetch current resource usage for all cluster nodes. Retrieves CPU and memory consumption metrics from the STRING
HIGHkubernetes/utils/metrics.py82 Fetch current resource usage for pods in a namespace. Retrieves CPU and memory consumption metrics from thSTRING
HIGHkubernetes/utils/duration.py32 Parse GEP-2257 Duration format to a datetime.timedelta object. The GEP-2257 Duration format is a restricted foSTRING
HIGHkubernetes/utils/duration.py84 Format a datetime.timedelta object to GEP-2257 Duration format. The GEP-2257 Duration format is a restricted fSTRING
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALexamples/pod_logs_non_blocking.py32 resp._fp.fp.raw._sock.settimeout(1)CODE
Redundant / Tautological Comments6 hits · 9 pts
SeverityFileLineSnippetContext
LOWscripts/release.sh221# Check if there is any API change, then commitCOMMENT
LOWkubernetes/dynamic/discovery.py264 # Check if we've requested resources for this groupCOMMENT
LOWkubernetes/aio/dynamic/discovery.py289 # Check if we've requested resources for this groupCOMMENT
LOWkubernetes/aio/leaderelection/leaderelection.py133 # Check if lock is createdCOMMENT
LOWkubernetes/leaderelection/leaderelection.py123 # Check if lock is createdCOMMENT
LOWkubernetes/watch/watch_test.py593 # Print outputsCOMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHkubernetes/aio/client/rest.py252 # Content-Type which generated by aiohttpCOMMENT
Modern AI Meta-Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMkubernetes/aio/docs/V1StatefulSetOrdinals.md9**start** | **int** | start is the number representing the first replica&#39;s index. It may be used to number replicas CODE
MEDIUMkubernetes/docs/V1StatefulSetOrdinals.md9**start** | **int** | start is the number representing the first replica&#39;s index. It may be used to number replicas CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/release.sh63# Usage:COMMENT