openshift-python-wrapper 4.21.0__tar.gz → 4.22.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/.pre-commit-config.yaml +2 -2
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/PKG-INFO +2 -2
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/cli.py +1 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/core/generator.py +14 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/core/schema.py +86 -33
- openshift_python_wrapper-4.22.0/class_generator/formatters/file_writer.py +71 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/manifests/class_generator_template.j2 +5 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/parsers/explain_parser.py +1 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/parsers/user_code_parser.py +1 -2
- openshift_python_wrapper-4.22.0/class_generator/schema/__cluster_version__.txt +1 -0
- openshift_python_wrapper-4.22.0/class_generator/schema/__resources-mappings.json.gz +0 -0
- openshift_python_wrapper-4.22.0/class_generator/schema/_definitions.json +309537 -0
- openshift_python_wrapper-4.22.0/class_generator/tests/manifests/Deployment/deployment.py +323 -0
- {openshift_python_wrapper-4.21.0/ocp_resources → openshift_python_wrapper-4.22.0/class_generator/tests/manifests/Ingress}/ingress_networking_k8s_io.py +1 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/manifests/Pod/pod.py +256 -92
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/manifests/test_parse_explain.j2 +10 -15
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/test_class_generator.py +4 -6
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/test_cli.py +3 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/test_schema_new_functions.py +173 -11
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/test_user_code_parser.py +42 -2
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/mcp_server/tests/test_server.py +10 -11
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/application_aware_cluster_resource_quota.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/application_aware_resource_quota.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/authorino.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/catalog_source.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/cluster_resource_quota.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/cluster_role.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/cluster_role_binding.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/cluster_user_defined_network.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/config_imageregistry_operator_openshift_io.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/controller_revision.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/cron_job.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/csi_storage_capacity.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/data_import_cron.py +2 -1
- openshift_python_wrapper-4.22.0/ocp_resources/data_protection_application.py +124 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/data_source.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/datavolume.py +14 -3
- openshift_python_wrapper-4.22.0/ocp_resources/deployment.py +385 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/dsc_initialization.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/endpoint_slice.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/endpoints.py +2 -1
- openshift_python_wrapper-4.22.0/ocp_resources/evalhub.py +85 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/event.py +79 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/fence_agent_remediation_templates.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/group.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/guardrails_orchestrator.py +36 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/image_caching_internal_knative_dev.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/image_digest_mirror_set.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/inference_graph.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/inference_service.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/ingress_config_openshift_io.py +1 -0
- {openshift_python_wrapper-4.21.0/class_generator/tests/manifests/Ingress → openshift_python_wrapper-4.22.0/ocp_resources}/ingress_networking_k8s_io.py +9 -23
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/ip_address_pool.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/limit_range.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/llama_stack_distribution.py +10 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/lm_eval_job.py +3 -1
- openshift_python_wrapper-4.22.0/ocp_resources/maa_s_auth_policy.py +68 -0
- openshift_python_wrapper-4.22.0/ocp_resources/maa_s_model.py +53 -0
- openshift_python_wrapper-4.22.0/ocp_resources/maa_s_subscription.py +77 -0
- openshift_python_wrapper-4.22.0/ocp_resources/maas_auth_policy.py +60 -0
- openshift_python_wrapper-4.22.0/ocp_resources/maas_model_ref.py +44 -0
- openshift_python_wrapper-4.22.0/ocp_resources/maas_subscription.py +68 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/mig_analytic.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/mig_cluster.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/mig_migration.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/migration_policy.py +5 -0
- openshift_python_wrapper-4.22.0/ocp_resources/mlflow.py +286 -0
- openshift_python_wrapper-4.22.0/ocp_resources/mlflow_config.py +68 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/model_registry.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/model_registry_modelregistry_opendatahub_io.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/multi_cluster_observability.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/multi_namespace_virtual_machine_storage_migration_plan.py +13 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/multi_network_policy.py +2 -1
- openshift_python_wrapper-4.22.0/ocp_resources/nemo_guardrails.py +68 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/network_attachment_definition.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/node_health_check.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/performance_profile.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/plan.py +13 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/pod.py +275 -91
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/pod_metrics.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/provider.py +9 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/reclaim_space_cron_job.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/reclaim_space_job.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/replica_set.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/resource.py +26 -2
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/resource_quota.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/restore.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/role.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/sealed_secret.py +2 -1
- openshift_python_wrapper-4.22.0/ocp_resources/securesign.py +76 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/security_context_constraints.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/service_mesh_member.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/serving_runtime.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/snapshot.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/ssp.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/storage_class.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/trustyai_service.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/user.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/user_defined_network.py +2 -1
- openshift_python_wrapper-4.22.0/ocp_resources/utils/client_config.py +97 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/utils/resource_constants.py +2 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/utils/utils.py +7 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/virtual_machine_clone.py +8 -2
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/virtual_machine_cluster_instancetype.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/virtual_machine_export.py +2 -1
- openshift_python_wrapper-4.22.0/ocp_resources/virtual_machine_instance.py +696 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/virtual_machine_instance_preset.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/virtual_machine_instance_replica_set.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/virtual_machine_instancetype.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/virtual_machine_restore.py +4 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/virtual_machine_storage_migration_plan.py +11 -0
- openshift_python_wrapper-4.22.0/ocp_resources/virtual_machine_template.py +66 -0
- openshift_python_wrapper-4.22.0/ocp_resources/virtual_machine_template_request.py +54 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/volume_snapshot.py +2 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/volume_snapshot_class.py +2 -1
- openshift_python_wrapper-4.22.0/ocp_resources/vtep.py +71 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/pyproject.toml +5 -2
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/scripts/generate_pytest_test.py +1 -1
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_camelcase_to_snake.py +15 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resource.py +116 -0
- openshift_python_wrapper-4.22.0/uv.lock +2911 -0
- openshift_python_wrapper-4.21.0/.git +0 -1
- openshift_python_wrapper-4.21.0/class_generator/formatters/file_writer.py +0 -36
- openshift_python_wrapper-4.21.0/class_generator/schema/__cluster_version__.txt +0 -1
- openshift_python_wrapper-4.21.0/class_generator/schema/__resources-mappings.json.gz +0 -0
- openshift_python_wrapper-4.21.0/class_generator/schema/_definitions.json +0 -22447
- openshift_python_wrapper-4.21.0/class_generator/tests/manifests/Deployment/deployment.py +0 -110
- openshift_python_wrapper-4.21.0/ocp_resources/deployment.py +0 -170
- openshift_python_wrapper-4.21.0/ocp_resources/virtual_machine_instance.py +0 -340
- openshift_python_wrapper-4.21.0/uv.lock +0 -2643
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/.coderabbit.yaml +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/.dockerignore +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/.flake8 +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/.gitattributes +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/.github/pull_request_template.md +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/.github/weekly-digest.yml +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/.github/workflows/close-stale-issues.yml +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/.gitignore +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/.gitleaks.toml +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/.readthedocs.yaml +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/.release-it.json +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/.sonarcloud.properties +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/CONTRIBUTING.md +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/LICENSE +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/Makefile +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/OWNERS +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/README.md +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/README.md +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/__init__.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/constants.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/core/__init__.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/core/coverage.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/core/discovery.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/exceptions.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/formatters/__init__.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/formatters/template_renderer.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/parsers/__init__.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/parsers/type_parser.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/py.typed +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/manifests/APIServer/api_server.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/manifests/ClusterOperator/cluster_operator.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/manifests/ConfigMap/config_map.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/manifests/DNS/dns_config_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/manifests/DNS/dns_operator_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/manifests/ImageContentSourcePolicy/image_content_source_policy.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/manifests/Ingress/ingress_config_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/manifests/Machine/machine.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/manifests/NMState/nm_state.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/manifests/OAuth/oauth.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/manifests/Pipeline/pipeline.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/manifests/RouteAdvertisements/route_advertisements.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/manifests/Secret/secret.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/manifests/ServiceMeshMember/service_mesh_member.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/manifests/ServingRuntime/serving_runtime.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/test_batch_regeneration.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/test_generation.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/test_resource_discovery.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/test_schema_parsing.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/tests/test_utils.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/utils.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/docs/Makefile +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/docs/conf.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/docs/index.rst +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/docs/modules.rst +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/docs/ocp_resources.rst +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/examples/general.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/examples/node_network_configuration_policy.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/examples/pods.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/examples/resource_list.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/examples/role.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/examples/special_cases.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/examples/validation_demo.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/examples/validation_troubleshooting.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/examples/virtual_machine.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/fake_kubernetes_client/README.md +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/fake_kubernetes_client/__init__.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/fake_kubernetes_client/configuration.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/fake_kubernetes_client/dynamic_client.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/fake_kubernetes_client/exceptions.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/fake_kubernetes_client/kubernetes_client.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/fake_kubernetes_client/resource_field.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/fake_kubernetes_client/resource_instance.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/fake_kubernetes_client/resource_manager.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/fake_kubernetes_client/resource_registry.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/fake_kubernetes_client/resource_storage.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/fake_kubernetes_client/status_schema_parser.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/fake_kubernetes_client/status_templates.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/fake_kubernetes_client/types.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/mcp_server/README.md +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/mcp_server/__init__.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/mcp_server/example_client.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/mcp_server/server-info.json +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/mcp_server/server.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/mcp_server/tests/__init__.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/__init__.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/aaq.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/api_server.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/api_service.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/application_aware_applied_cluster_resource_quota.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/authentication_config_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/authentication_operator_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/backup.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/benchmark.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/bgp_session_state.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/cdi.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/cdi_config.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/chaos_engine.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/chaos_result.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/cluster_claim.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/cluster_deployment.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/cluster_operator.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/cluster_pool.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/cluster_service_version.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/cluster_version.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/config_map.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/config_operator_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/config_samples_operator_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/console_cli_download.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/console_config_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/console_operator_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/console_plugin.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/console_quick_start.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/csi_driver.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/custom_resource_definition.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/daemonset.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/data_science_cluster.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/data_science_pipelines_application.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/destination_rule.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/direct_volume_migration.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/direct_volume_migration_progress.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/dns_config_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/dns_operator_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/exceptions.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/forklift_controller.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/frr_configuration.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/gateway.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/gateway_class.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/gateway_config.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/gateway_gateway_networking_k8s_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/gateway_networking_istio_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/hook.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/host.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/hostpath_provisioner.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/hyperconverged.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/image_config_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/image_content_source_policy.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/image_image_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/image_stream.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/imagestreamtag.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/infrastructure.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/ingress_controller.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/installplan.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/jaeger.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/job.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/kube_descheduler.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/kubelet_config.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/kubevirt.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/l2_advertisement.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/lease.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/llm_inference_service.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/machine.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/machine_config.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/machine_config_pool.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/machine_health_check.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/machine_set.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/managed_cluster.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/maria_db.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/mariadb_operator.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/metallb.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/mig_controller.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/mig_plan.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/migration.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/model_registry_components_platform_opendatahub_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/mtq.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/multi_cluster_hub.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/multi_namespace_virtual_machine_storage_migration.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/mutating_webhook_config.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/namespace.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/network_addons_config.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/network_config_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/network_map.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/network_operator_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/network_policy.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/nm_state.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/node.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/node_config_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/node_maintenance.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/node_network_configuration_enactment.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/node_network_configuration_policy.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/node_network_configuration_policy_latest.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/node_network_state.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/notebook.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/oauth.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/ocs_initialization.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/open_telemetry_collector.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/operator.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/operator_condition.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/operator_group.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/operator_hub.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/operator_source.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/package_manifest.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/peer_authentication.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/persistent_volume.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/persistent_volume_claim.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/pipeline.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/pipeline_run.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/pod_disruption_budget.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/priority_class.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/project_config_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/project_project_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/project_request.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/prometheus.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/prometheus_rule.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/proxy.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/py.typed +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/rate_limit_policy.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/rhmi.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/role_binding.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/route.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/route_advertisements.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/scaled_object.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/scheduler.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/secret.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/self_node_remediation_templates.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/self_subject_review.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/service.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/service_account.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/service_mesh_control_plane.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/service_mesh_member_roll.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/service_monitor.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/service_serving_knative_dev.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/sriov_network.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/sriov_network_node_policy.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/sriov_network_node_state.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/storage_cluster.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/storage_map.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/storage_profile.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/subscription.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/task.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/task_run.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/tekton_tasks.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/template.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/tempo_stack.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/token_rate_limit_policy.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/upload_token_request.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/utils/__init__.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/utils/archive_utils.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/utils/constants.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/utils/schema_validator.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/validating_admission_policy.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/validating_admission_policy_binding.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/validating_webhook_config.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/virtual_machine.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/virtual_machine_cluster_preference.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/virtual_machine_import.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/virtual_machine_instance_migration.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/virtual_machine_migration_resource_quota.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/virtual_machine_preference.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/virtual_machine_snapshot.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/virtual_machine_storage_migration.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/virtual_service.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/ocp_resources/vm_import_config.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/pypi-dist/.gitignore +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/renovate.json +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/scripts/__init__.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/scripts/diff-from-latest-release.sh +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/scripts/diff-from-tag.sh +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/scripts/generate_changelog.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/scripts/get-latest-release.sh +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/sonar-project.properties +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/__init__.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/conftest.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/fixtures/validation_schemas.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/manifests/vm.yaml +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/scripts/__init__.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/scripts/validate_resources.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_api_group_order.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resource_validation.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_aaq.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_api_server.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_authorino.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_cdi.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_cdi_config.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_cluster_resource_quota.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_cluster_user_defined_network.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_config_map.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_console_config_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_console_operator_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_csi_driver.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_data_import_cron.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_data_science_cluster.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_deployment.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_direct_volume_migration.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_direct_volume_migration_progress.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_dns_config_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_dns_operator_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_dsc_initialization.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_group.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_guardrails_orchestrator.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_image_caching_internal_knative_dev.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_image_config_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_image_content_source_policy.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_image_image_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_inference_graph.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_kube_descheduler.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_kubelet_config.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_kubevirt.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_llama_stack_distribution.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_lm_eval_job.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_machine.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_maria_db.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_mariadb_operator.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_mig_analytic.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_mig_cluster.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_mig_migration.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_mig_plan.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_model_registry.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_model_registry_components_platform_opendatahub_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_model_registry_modelregistry_opendatahub_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_mtq.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_namespace.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_network_config_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_network_operator_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_nm_state.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_node.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_node_config_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_node_network_configuration_policy_latest.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_notebook.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_oauth.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_operator.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_pod.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_pod_metrics.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_project_config_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_project_project_openshift_io.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_project_request.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_prometheus.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_replica_set.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_scheduler.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_security_context_constraints.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_self_subject_review.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_service.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_service_mesh_member.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_service_serving_knative_dev.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_serving_runtime.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_snapshot.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_ssp.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_storage_cluster.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_user.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_user_defined_network.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_virtual_machine_cluster_instancetype.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_virtual_machine_cluster_preference.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_virtual_machine_export.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_virtual_machine_instance_migration.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_virtual_machine_instance_preset.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_virtual_machine_instance_replica_set.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_virtual_machine_instancetype.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_virtual_machine_preference.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_volume_snapshot.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_resources/test_volume_snapshot_class.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_schema_loading.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_unittests.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_validate_resources.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_validate_resources_script.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/test_validation_error.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tests/utils.py +0 -0
- {openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/tox.toml +0 -0
|
@@ -45,7 +45,7 @@ repos:
|
|
|
45
45
|
]
|
|
46
46
|
|
|
47
47
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
48
|
-
rev: v0.15.
|
|
48
|
+
rev: v0.15.17
|
|
49
49
|
hooks:
|
|
50
50
|
- id: ruff
|
|
51
51
|
- id: ruff-format
|
|
@@ -56,7 +56,7 @@ repos:
|
|
|
56
56
|
- id: gitleaks
|
|
57
57
|
|
|
58
58
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
59
|
-
rev:
|
|
59
|
+
rev: v2.1.0
|
|
60
60
|
hooks:
|
|
61
61
|
- id: mypy
|
|
62
62
|
exclude: ^(tests/|examples/|docs/)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openshift-python-wrapper
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.22.0
|
|
4
4
|
Summary: Wrapper around https://github.com/kubernetes-client/python
|
|
5
5
|
Project-URL: homepage, https://github.com/RedHatQE/openshift-python-wrapper
|
|
6
6
|
Project-URL: documentation, https://openshift-python-wrapper.readthedocs.io/en/latest/
|
|
@@ -20,7 +20,7 @@ Requires-Dist: deepdiff>=8.0.1
|
|
|
20
20
|
Requires-Dist: fastmcp>=2.10.4
|
|
21
21
|
Requires-Dist: jinja2>=3.1.4
|
|
22
22
|
Requires-Dist: jsonschema>=4.20.0
|
|
23
|
-
Requires-Dist: kubernetes
|
|
23
|
+
Requires-Dist: kubernetes<36,>=31.0.0
|
|
24
24
|
Requires-Dist: packaging>=24.1
|
|
25
25
|
Requires-Dist: pyhelper-utils>=0.0.42
|
|
26
26
|
Requires-Dist: python-benedict>=0.33.2
|
|
@@ -489,7 +489,7 @@ def handle_test_generation(add_tests: bool) -> None:
|
|
|
489
489
|
# Run the generated test file
|
|
490
490
|
LOGGER.info("Running generated tests...")
|
|
491
491
|
test_file = "class_generator/tests/test_class_generator.py"
|
|
492
|
-
exit_code = os.system(f"uv run pytest {test_file}")
|
|
492
|
+
exit_code = os.system(f"uv run --group tests pytest {test_file}")
|
|
493
493
|
|
|
494
494
|
# os.system returns the exit status shifted left by 8 bits
|
|
495
495
|
if exit_code != 0:
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import filecmp
|
|
4
4
|
import os
|
|
5
|
+
import re
|
|
5
6
|
from pathlib import Path
|
|
6
7
|
from typing import Any
|
|
7
8
|
|
|
@@ -55,6 +56,16 @@ def generate_resource_file_from_dict(
|
|
|
55
56
|
|
|
56
57
|
output = "# Generated using https://github.com/RedHatQE/openshift-python-wrapper/blob/main/scripts/resource/README.md\n\n"
|
|
57
58
|
formatted_kind_str = convert_camel_case_to_snake_case(name=resource_dict["kind"])
|
|
59
|
+
|
|
60
|
+
if re.search(r"_[a-z]_", formatted_kind_str):
|
|
61
|
+
msg = (
|
|
62
|
+
f"'{resource_dict['kind']}' produced invalid filename '{formatted_kind_str}.py'.\n"
|
|
63
|
+
f"Add '{resource_dict['kind']}' acronym to 'normalize_acronyms' dict in:\n"
|
|
64
|
+
f" ocp_resources/utils/utils.py -> convert_camel_case_to_snake_case()"
|
|
65
|
+
)
|
|
66
|
+
LOGGER.error(msg)
|
|
67
|
+
raise ValueError(msg)
|
|
68
|
+
|
|
58
69
|
_file_suffix: str = f"{'_' + output_file_suffix if output_file_suffix else ''}"
|
|
59
70
|
|
|
60
71
|
if add_tests:
|
|
@@ -94,8 +105,10 @@ def generate_resource_file_from_dict(
|
|
|
94
105
|
output += rendered
|
|
95
106
|
|
|
96
107
|
if dry_run:
|
|
108
|
+
console = Console()
|
|
109
|
+
console.print(f"\n[bold green]Would create file:[/bold green] {_output_file}")
|
|
97
110
|
_code = Syntax(code=output, lexer="python", line_numbers=True)
|
|
98
|
-
|
|
111
|
+
console.print(_code)
|
|
99
112
|
|
|
100
113
|
else:
|
|
101
114
|
write_and_format_rendered(filepath=_output_file, output=output)
|
{openshift_python_wrapper-4.21.0 → openshift_python_wrapper-4.22.0}/class_generator/core/schema.py
RENAMED
|
@@ -163,6 +163,10 @@ def identify_missing_resources(client: str, existing_resources_mapping: dict[Any
|
|
|
163
163
|
"""
|
|
164
164
|
Identify resources that exist in the cluster but are missing from our mapping.
|
|
165
165
|
|
|
166
|
+
Compares using (group, kind) pairs so that resources with the same kind but
|
|
167
|
+
different API groups (e.g. velero.io/Backup vs postgresql.cnpg.noobaa.io/Backup)
|
|
168
|
+
are tracked independently.
|
|
169
|
+
|
|
166
170
|
Args:
|
|
167
171
|
client: Path to kubectl/oc client binary
|
|
168
172
|
existing_resources_mapping: Current resources mapping
|
|
@@ -172,7 +176,7 @@ def identify_missing_resources(client: str, existing_resources_mapping: dict[Any
|
|
|
172
176
|
"""
|
|
173
177
|
missing_resources: set[str] = set()
|
|
174
178
|
|
|
175
|
-
# Get all available resources from cluster
|
|
179
|
+
# Get all available resources from cluster with their API groups
|
|
176
180
|
cmd = f"{client} api-resources --no-headers"
|
|
177
181
|
success, output, _ = run_command(command=shlex.split(cmd), check=False, log_errors=False)
|
|
178
182
|
|
|
@@ -180,49 +184,75 @@ def identify_missing_resources(client: str, existing_resources_mapping: dict[Any
|
|
|
180
184
|
LOGGER.debug("Failed to get api-resources from cluster")
|
|
181
185
|
return missing_resources
|
|
182
186
|
|
|
183
|
-
#
|
|
184
|
-
|
|
187
|
+
# Build kind -> set of groups from cluster resources
|
|
188
|
+
cluster_kind_groups: dict[str, set[str]] = {}
|
|
185
189
|
lines = output.strip().split("\n")
|
|
186
190
|
|
|
187
191
|
for line in lines:
|
|
188
192
|
parts = [p for p in line.split() if p]
|
|
189
|
-
if parts:
|
|
190
|
-
|
|
191
|
-
cluster_resources.add(kind)
|
|
193
|
+
if len(parts) < 3:
|
|
194
|
+
continue
|
|
192
195
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
# Find APIVERSION column by looking for version patterns
|
|
197
|
+
# (same logic as build_dynamic_resource_to_api_mapping)
|
|
198
|
+
apiversion_idx = None
|
|
199
|
+
for i, part in enumerate(parts):
|
|
200
|
+
if ("/" in part and ("v" in part or "alpha" in part or "beta" in part)) or (
|
|
201
|
+
part.startswith("v") and part[1:].replace(".", "").replace("alpha", "").replace("beta", "").isdigit()
|
|
202
|
+
):
|
|
203
|
+
apiversion_idx = i
|
|
204
|
+
break
|
|
205
|
+
|
|
206
|
+
if apiversion_idx is None:
|
|
198
207
|
continue
|
|
199
208
|
|
|
200
|
-
#
|
|
201
|
-
|
|
202
|
-
if not isinstance(first_schema, dict):
|
|
203
|
-
LOGGER.debug(f"Skipping malformed schema: first_schema is not a dict, got {type(first_schema)}")
|
|
209
|
+
# KIND is 2 columns after APIVERSION (APIVERSION, NAMESPACED, KIND)
|
|
210
|
+
if len(parts) <= apiversion_idx + 2:
|
|
204
211
|
continue
|
|
205
212
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
213
|
+
apiversion = parts[apiversion_idx]
|
|
214
|
+
kind = parts[apiversion_idx + 2]
|
|
215
|
+
|
|
216
|
+
# Extract group from apiversion: "velero.io/v1" -> "velero.io", "v1" -> ""
|
|
217
|
+
group = apiversion.rsplit("/", 1)[0] if "/" in apiversion else ""
|
|
218
|
+
|
|
219
|
+
cluster_kind_groups.setdefault(kind, set()).add(group)
|
|
220
|
+
|
|
221
|
+
# Build kind -> set of groups from existing mappings
|
|
222
|
+
existing_kind_groups: dict[str, set[str]] = {}
|
|
223
|
+
for _, resource_schemas in existing_resources_mapping.items():
|
|
224
|
+
if not isinstance(resource_schemas, list) or not resource_schemas:
|
|
212
225
|
continue
|
|
213
226
|
|
|
214
|
-
#
|
|
215
|
-
for
|
|
216
|
-
if not isinstance(
|
|
217
|
-
LOGGER.debug(f"Skipping malformed gvk item: not a dict, got {type(gvk_item)}")
|
|
227
|
+
# Check ALL schemas in the list, not just the first one
|
|
228
|
+
for schema in resource_schemas:
|
|
229
|
+
if not isinstance(schema, dict):
|
|
218
230
|
continue
|
|
219
231
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
232
|
+
gvk_list = schema.get("x-kubernetes-group-version-kind")
|
|
233
|
+
if not isinstance(gvk_list, list) or not gvk_list:
|
|
234
|
+
continue
|
|
235
|
+
|
|
236
|
+
for gvk_item in gvk_list:
|
|
237
|
+
if not isinstance(gvk_item, dict):
|
|
238
|
+
continue
|
|
239
|
+
|
|
240
|
+
kind = gvk_item.get("kind")
|
|
241
|
+
if not isinstance(kind, str) or not kind.strip():
|
|
242
|
+
continue
|
|
243
|
+
|
|
244
|
+
kind = kind.strip()
|
|
245
|
+
group_raw = gvk_item.get("group", "")
|
|
246
|
+
group = group_raw.strip() if isinstance(group_raw, str) else ""
|
|
247
|
+
|
|
248
|
+
existing_kind_groups.setdefault(kind, set()).add(group)
|
|
249
|
+
|
|
250
|
+
# Find missing resources: kind is missing if any cluster group is not in existing groups
|
|
251
|
+
for kind, cluster_groups in cluster_kind_groups.items():
|
|
252
|
+
existing_groups = existing_kind_groups.get(kind, set())
|
|
253
|
+
if not cluster_groups.issubset(existing_groups):
|
|
254
|
+
missing_resources.add(kind)
|
|
224
255
|
|
|
225
|
-
missing_resources = cluster_resources - existing_kinds
|
|
226
256
|
LOGGER.info(f"Found {len(missing_resources)} missing resources: {sorted(list(missing_resources)[:10])}")
|
|
227
257
|
|
|
228
258
|
return missing_resources
|
|
@@ -661,9 +691,32 @@ def process_schema_definitions(
|
|
|
661
691
|
f"Added new schema version for existing resource: {kind_lower} ({group or 'core'}/{version})"
|
|
662
692
|
)
|
|
663
693
|
else:
|
|
664
|
-
#
|
|
665
|
-
|
|
666
|
-
|
|
694
|
+
# Older cluster: keep existing schemas untouched, but still add
|
|
695
|
+
# missing group/version variants for existing kinds.
|
|
696
|
+
existing_schemas = resources_mapping.get(kind_lower, [])
|
|
697
|
+
variant_exists = False
|
|
698
|
+
for existing_schema in existing_schemas:
|
|
699
|
+
if not isinstance(existing_schema, dict):
|
|
700
|
+
continue
|
|
701
|
+
existing_gvk_list = existing_schema.get("x-kubernetes-group-version-kind") or []
|
|
702
|
+
for existing_gvk in existing_gvk_list:
|
|
703
|
+
if not isinstance(existing_gvk, dict):
|
|
704
|
+
continue
|
|
705
|
+
if existing_gvk.get("group") == group and existing_gvk.get("version") == version:
|
|
706
|
+
variant_exists = True
|
|
707
|
+
break
|
|
708
|
+
if variant_exists:
|
|
709
|
+
break
|
|
710
|
+
|
|
711
|
+
if variant_exists:
|
|
712
|
+
LOGGER.debug(f"Skipping update for existing resource: {kind_lower}")
|
|
713
|
+
continue
|
|
714
|
+
|
|
715
|
+
existing_schemas.append(schema_data)
|
|
716
|
+
updated_resources += 1
|
|
717
|
+
LOGGER.debug(
|
|
718
|
+
f"Added missing schema variant for existing resource: {kind_lower} ({group or 'core'}/{version})"
|
|
719
|
+
)
|
|
667
720
|
|
|
668
721
|
# Also store in definitions for separate definitions file
|
|
669
722
|
definitions[schema_name] = schema_data
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"""File writing utilities for generated code."""
|
|
2
|
+
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
from pyhelper_utils.shell import run_command
|
|
6
|
+
from simple_logger.logger import get_logger
|
|
7
|
+
|
|
8
|
+
LOGGER = get_logger(name=__name__)
|
|
9
|
+
|
|
10
|
+
# Project root directory (contains pyproject.toml and .pre-commit-config.yaml)
|
|
11
|
+
_PROJECT_ROOT = Path(__file__).resolve().parent.parent.parent
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def write_and_format_rendered(filepath: str, output: str) -> None:
|
|
15
|
+
"""
|
|
16
|
+
Write rendered content to file and format with prek, falling back to ruff.
|
|
17
|
+
|
|
18
|
+
Args:
|
|
19
|
+
filepath: Path to write the file to
|
|
20
|
+
output: Content to write
|
|
21
|
+
"""
|
|
22
|
+
with open(filepath, "w", encoding="utf-8") as fd:
|
|
23
|
+
fd.write(output)
|
|
24
|
+
|
|
25
|
+
pre_commit_config = str(_PROJECT_ROOT / ".pre-commit-config.yaml")
|
|
26
|
+
pyproject_toml = str(_PROJECT_ROOT / "pyproject.toml")
|
|
27
|
+
|
|
28
|
+
# Try prek first (runs all pre-commit hooks including ruff)
|
|
29
|
+
prek_success = False
|
|
30
|
+
try:
|
|
31
|
+
rc, stdout, stderr = run_command(
|
|
32
|
+
command=["uvx", "prek", "-c", pre_commit_config, "run", "--files", filepath],
|
|
33
|
+
verify_stderr=False,
|
|
34
|
+
check=False,
|
|
35
|
+
log_errors=False,
|
|
36
|
+
)
|
|
37
|
+
if not rc:
|
|
38
|
+
if stderr:
|
|
39
|
+
LOGGER.warning(f"Prek hooks failed for {filepath}, falling back to ruff.")
|
|
40
|
+
LOGGER.debug(f"prek stderr: {stderr}")
|
|
41
|
+
else:
|
|
42
|
+
prek_success = True
|
|
43
|
+
|
|
44
|
+
if stdout:
|
|
45
|
+
LOGGER.info(f"{filepath} fixed by prek")
|
|
46
|
+
LOGGER.debug(f"prek stdout: {stdout}")
|
|
47
|
+
except Exception as e:
|
|
48
|
+
LOGGER.warning(f"Failed to run prek for {filepath}, falling back to ruff: {e}")
|
|
49
|
+
|
|
50
|
+
if not prek_success:
|
|
51
|
+
_run_ruff_fallback(filepath=filepath, pyproject_toml=pyproject_toml)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def _run_ruff_fallback(filepath: str, pyproject_toml: str) -> None:
|
|
55
|
+
"""Run ruff check --fix and ruff format as fallback when prek fails."""
|
|
56
|
+
for ruff_cmd in (
|
|
57
|
+
["uvx", "ruff", "check", "--fix", "--config", pyproject_toml, filepath],
|
|
58
|
+
["uvx", "ruff", "format", "--config", pyproject_toml, filepath],
|
|
59
|
+
):
|
|
60
|
+
try:
|
|
61
|
+
_, stdout, _ = run_command(
|
|
62
|
+
command=ruff_cmd,
|
|
63
|
+
verify_stderr=False,
|
|
64
|
+
check=False,
|
|
65
|
+
log_errors=False,
|
|
66
|
+
)
|
|
67
|
+
if stdout:
|
|
68
|
+
LOGGER.info(f"{filepath} fixed by ruff")
|
|
69
|
+
LOGGER.debug(f"ruff stdout: {stdout}")
|
|
70
|
+
except Exception as e:
|
|
71
|
+
LOGGER.error(f"Ruff fallback failed for {filepath}: {e}")
|
|
@@ -14,8 +14,12 @@
|
|
|
14
14
|
{% endfor %}
|
|
15
15
|
|
|
16
16
|
from typing import Any
|
|
17
|
-
|
|
17
|
+
|
|
18
|
+
{% if all_required_args %}
|
|
18
19
|
from ocp_resources.exceptions import MissingRequiredArgumentError
|
|
20
|
+
{% endif %}
|
|
21
|
+
from ocp_resources.resource import {{ base_class }}
|
|
22
|
+
|
|
19
23
|
|
|
20
24
|
class {{ kind }}({{ base_class }}):
|
|
21
25
|
"""
|
|
@@ -89,7 +89,7 @@ def parse_explain(kind: str) -> list[dict[str, Any]]:
|
|
|
89
89
|
|
|
90
90
|
resource_dict: dict[str, Any] = {
|
|
91
91
|
"base_class": "NamespacedResource" if namespaced else "Resource",
|
|
92
|
-
"description": _kind_schema.get("description"
|
|
92
|
+
"description": _kind_schema.get("description") or MISSING_DESCRIPTION_STR,
|
|
93
93
|
"fields": [],
|
|
94
94
|
"spec": [],
|
|
95
95
|
}
|
|
@@ -60,8 +60,7 @@ def parse_user_code_from_file(file_path: str) -> tuple[str, str]:
|
|
|
60
60
|
"from typing import Any",
|
|
61
61
|
"from ocp_resources.resource import NamespacedResource",
|
|
62
62
|
"from ocp_resources.resource import Resource",
|
|
63
|
-
"from ocp_resources.
|
|
64
|
-
"from ocp_resources.resource import Resource, MissingRequiredArgumentError",
|
|
63
|
+
"from ocp_resources.exceptions import MissingRequiredArgumentError",
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
for _import in imports:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
v1.35.2
|