openshift-python-wrapper 4.20.4__tar.gz → 4.21.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.20.4 → openshift_python_wrapper-4.21.0}/.coderabbit.yaml +12 -1
- openshift_python_wrapper-4.21.0/.git +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/.pre-commit-config.yaml +5 -5
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/OWNERS +0 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/PKG-INFO +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/README.md +43 -6
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/cli.py +83 -13
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/core/coverage.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/core/discovery.py +2 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/core/generator.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/core/schema.py +251 -63
- openshift_python_wrapper-4.21.0/class_generator/exceptions.py +11 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/formatters/template_renderer.py +2 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/parsers/explain_parser.py +2 -9
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/parsers/type_parser.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/parsers/user_code_parser.py +6 -6
- openshift_python_wrapper-4.21.0/class_generator/schema/__cluster_version__.txt +1 -0
- 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 +22447 -0
- {openshift_python_wrapper-4.20.4/ocp_resources → openshift_python_wrapper-4.21.0/class_generator/tests/manifests/APIServer}/api_server.py +6 -4
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/manifests/ClusterOperator/cluster_operator.py +4 -4
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/manifests/ConfigMap/config_map.py +2 -0
- {openshift_python_wrapper-4.20.4/ocp_resources → openshift_python_wrapper-4.21.0/class_generator/tests/manifests/DNS}/dns_config_openshift_io.py +2 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/manifests/DNS/dns_operator_openshift_io.py +15 -8
- openshift_python_wrapper-4.21.0/class_generator/tests/manifests/Deployment/deployment.py +110 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/manifests/ImageContentSourcePolicy/image_content_source_policy.py +2 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/manifests/Ingress/ingress_config_openshift_io.py +2 -0
- {openshift_python_wrapper-4.20.4/ocp_resources → openshift_python_wrapper-4.21.0/class_generator/tests/manifests/Ingress}/ingress_networking_k8s_io.py +25 -9
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/manifests/Machine/machine.py +2 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/manifests/NMState/nm_state.py +20 -0
- {openshift_python_wrapper-4.20.4/ocp_resources → openshift_python_wrapper-4.21.0/class_generator/tests/manifests/OAuth}/oauth.py +2 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/manifests/Pipeline/pipeline.py +2 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/manifests/Pod/pod.py +111 -245
- {openshift_python_wrapper-4.20.4/ocp_resources → openshift_python_wrapper-4.21.0/class_generator/tests/manifests/RouteAdvertisements}/route_advertisements.py +3 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/manifests/Secret/secret.py +2 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/manifests/ServiceMeshMember/service_mesh_member.py +3 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/manifests/ServingRuntime/serving_runtime.py +3 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/test_batch_regeneration.py +2 -4
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/test_class_generator.py +19 -21
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/test_cli.py +44 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/test_resource_discovery.py +2 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/test_schema_new_functions.py +233 -31
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/test_user_code_parser.py +2 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/utils.py +22 -21
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/examples/pods.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/examples/resource_list.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/examples/validation_demo.py +4 -3
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/fake_kubernetes_client/dynamic_client.py +5 -5
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/fake_kubernetes_client/exceptions.py +1 -5
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/fake_kubernetes_client/kubernetes_client.py +14 -14
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/fake_kubernetes_client/resource_field.py +3 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/fake_kubernetes_client/resource_instance.py +31 -30
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/fake_kubernetes_client/resource_manager.py +12 -14
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/fake_kubernetes_client/resource_registry.py +11 -11
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/fake_kubernetes_client/resource_storage.py +9 -13
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/fake_kubernetes_client/status_schema_parser.py +4 -4
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/fake_kubernetes_client/status_templates.py +6 -6
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/mcp_server/example_client.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/mcp_server/server.py +11 -5
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/mcp_server/tests/test_server.py +0 -4
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/aaq.py +1 -0
- {openshift_python_wrapper-4.20.4/class_generator/tests/manifests/APIServer → openshift_python_wrapper-4.21.0/ocp_resources}/api_server.py +1 -0
- openshift_python_wrapper-4.21.0/ocp_resources/authentication_config_openshift_io.py +106 -0
- openshift_python_wrapper-4.21.0/ocp_resources/authentication_operator_openshift_io.py +87 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/authorino.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/backup.py +0 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/catalog_source.py +3 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/cdi.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/chaos_engine.py +0 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/chaos_result.py +0 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/cluster_resource_quota.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/cluster_role.py +0 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/cluster_role_binding.py +0 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/cluster_user_defined_network.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/config_imageregistry_operator_openshift_io.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/config_operator_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/config_samples_operator_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/console_config_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/console_operator_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/csi_driver.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/daemonset.py +4 -4
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/data_import_cron.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/data_science_cluster.py +1 -0
- openshift_python_wrapper-4.21.0/ocp_resources/data_science_pipelines_application.py +118 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/data_source.py +18 -6
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/datavolume.py +19 -9
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/destination_rule.py +0 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/direct_volume_migration.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/direct_volume_migration_progress.py +1 -0
- {openshift_python_wrapper-4.20.4/class_generator/tests/manifests/DNS → openshift_python_wrapper-4.21.0/ocp_resources}/dns_config_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/dns_operator_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/dsc_initialization.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/event.py +52 -25
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/exceptions.py +6 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/frr_configuration.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/gateway.py +0 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/gateway_class.py +2 -1
- openshift_python_wrapper-4.21.0/ocp_resources/gateway_config.py +62 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/gateway_gateway_networking_k8s_io.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/gateway_networking_istio_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/group.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/hostpath_provisioner.py +1 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/image_config_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/image_content_source_policy.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/image_image_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/inference_graph.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/ingress_config_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4/class_generator/tests/manifests/Ingress → openshift_python_wrapper-4.21.0/ocp_resources}/ingress_networking_k8s_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/jaeger.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/kube_descheduler.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/kubelet_config.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/kubevirt.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/llama_stack_distribution.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/llm_inference_service.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/lm_eval_job.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/machine_set.py +3 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/maria_db.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/mariadb_operator.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/mig_analytic.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/mig_cluster.py +2 -1
- openshift_python_wrapper-4.21.0/ocp_resources/mig_controller.py +55 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/mig_migration.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/mig_plan.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/model_registry_components_platform_opendatahub_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/model_registry_modelregistry_opendatahub_io.py +2 -1
- openshift_python_wrapper-4.21.0/ocp_resources/multi_namespace_virtual_machine_storage_migration.py +51 -0
- openshift_python_wrapper-4.21.0/ocp_resources/multi_namespace_virtual_machine_storage_migration_plan.py +44 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/namespace.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/network_config_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/network_operator_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/network_policy.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/nm_state.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/node_config_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/node_network_configuration_policy.py +5 -5
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/notebook.py +1 -0
- {openshift_python_wrapper-4.20.4/class_generator/tests/manifests/OAuth → openshift_python_wrapper-4.21.0/ocp_resources}/oauth.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/open_telemetry_collector.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/operator.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/peer_authentication.py +0 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/persistent_volume.py +0 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/persistent_volume_claim.py +1 -3
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/pipeline.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/pipeline_run.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/plan.py +40 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/pod.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/pod_metrics.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/project_config_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/project_project_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/prometheus.py +1 -0
- openshift_python_wrapper-4.21.0/ocp_resources/rate_limit_policy.py +81 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/replica_set.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/resource.py +115 -56
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/restore.py +0 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/rhmi.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/role.py +1 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/role_binding.py +1 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/route.py +1 -2
- {openshift_python_wrapper-4.20.4/class_generator/tests/manifests/RouteAdvertisements → openshift_python_wrapper-4.21.0/ocp_resources}/route_advertisements.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/scaled_object.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/scheduler.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/security_context_constraints.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/self_subject_review.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/service.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/service_account.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/service_mesh_control_plane.py +0 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/service_mesh_member.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/service_mesh_member_roll.py +0 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/serving_runtime.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/snapshot.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/sriov_network_node_state.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/ssp.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/storage_class.py +0 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/storage_cluster.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/storage_profile.py +0 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/task.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/task_run.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/template.py +14 -5
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/tempo_stack.py +2 -1
- openshift_python_wrapper-4.21.0/ocp_resources/token_rate_limit_policy.py +81 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/upload_token_request.py +1 -3
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/user.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/utils/resource_constants.py +2 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/utils/schema_validator.py +4 -4
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/utils/utils.py +2 -2
- openshift_python_wrapper-4.21.0/ocp_resources/validating_admission_policy.py +124 -0
- openshift_python_wrapper-4.21.0/ocp_resources/validating_admission_policy_binding.py +108 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/virtual_machine_cluster_instancetype.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/virtual_machine_cluster_preference.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/virtual_machine_export.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/virtual_machine_import.py +6 -7
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/virtual_machine_instance.py +6 -3
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/virtual_machine_instance_migration.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/virtual_machine_instance_preset.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/virtual_machine_instance_replica_set.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/virtual_machine_instancetype.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/virtual_machine_preference.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/virtual_machine_restore.py +2 -4
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/virtual_machine_snapshot.py +2 -4
- openshift_python_wrapper-4.21.0/ocp_resources/virtual_machine_storage_migration.py +45 -0
- openshift_python_wrapper-4.21.0/ocp_resources/virtual_machine_storage_migration_plan.py +44 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/virtual_service.py +0 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/volume_snapshot.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/volume_snapshot_class.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/pyproject.toml +8 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/renovate.json +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/conftest.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/scripts/generate_pytest_test.py +3 -3
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/scripts/validate_resources.py +4 -3
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_api_group_order.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resource.py +2 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resource_validation.py +2 -7
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_aaq.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_api_server.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_authorino.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_cdi.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_cdi_config.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_cluster_resource_quota.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_cluster_user_defined_network.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_config_map.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_console_config_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_console_operator_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_csi_driver.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_data_import_cron.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_data_science_cluster.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_deployment.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_direct_volume_migration.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_direct_volume_migration_progress.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_dns_config_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_dns_operator_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_dsc_initialization.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_group.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_guardrails_orchestrator.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_image_caching_internal_knative_dev.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_image_config_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_image_content_source_policy.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_image_image_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_inference_graph.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_kube_descheduler.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_kubelet_config.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_kubevirt.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_llama_stack_distribution.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_lm_eval_job.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_machine.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_maria_db.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_mariadb_operator.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_mig_analytic.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_mig_cluster.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_mig_migration.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_mig_plan.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_model_registry.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_model_registry_components_platform_opendatahub_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_model_registry_modelregistry_opendatahub_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_mtq.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_namespace.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_network_config_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_network_operator_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_nm_state.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_node.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_node_config_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_node_network_configuration_policy_latest.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_notebook.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_oauth.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_operator.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_pod.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_pod_metrics.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_project_config_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_project_project_openshift_io.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_project_request.py +2 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_prometheus.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_replica_set.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_scheduler.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_security_context_constraints.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_self_subject_review.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_service.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_service_mesh_member.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_service_serving_knative_dev.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_serving_runtime.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_snapshot.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_ssp.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_storage_cluster.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_user.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_user_defined_network.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_virtual_machine_cluster_instancetype.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_virtual_machine_cluster_preference.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_virtual_machine_export.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_virtual_machine_instance_migration.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_virtual_machine_instance_preset.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_virtual_machine_instance_replica_set.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_virtual_machine_instancetype.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_virtual_machine_preference.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_volume_snapshot.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_resources/test_volume_snapshot_class.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_unittests.py +1 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/utils.py +1 -1
- openshift_python_wrapper-4.21.0/uv.lock +2643 -0
- openshift_python_wrapper-4.20.4/.git +0 -1
- openshift_python_wrapper-4.20.4/VERSION +0 -1
- openshift_python_wrapper-4.20.4/class_generator/schema/__cluster_version__.txt +0 -1
- openshift_python_wrapper-4.20.4/class_generator/schema/__resources-mappings.json.gz +0 -0
- openshift_python_wrapper-4.20.4/class_generator/schema/_definitions.json +0 -331315
- openshift_python_wrapper-4.20.4/class_generator/tests/manifests/Deployment/deployment.py +0 -315
- openshift_python_wrapper-4.20.4/uv.lock +0 -2312
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/.dockerignore +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/.flake8 +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/.gitattributes +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/.github/pull_request_template.md +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/.github/weekly-digest.yml +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/.github/workflows/close-stale-issues.yml +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/.gitignore +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/.gitleaks.toml +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/.readthedocs.yaml +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/.release-it.json +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/.sonarcloud.properties +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/CONTRIBUTING.md +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/LICENSE +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/Makefile +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/README.md +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/__init__.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/constants.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/core/__init__.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/formatters/__init__.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/formatters/file_writer.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/manifests/class_generator_template.j2 +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/parsers/__init__.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/py.typed +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/manifests/test_parse_explain.j2 +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/test_generation.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/test_schema_parsing.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/tests/test_utils.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/docs/Makefile +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/docs/conf.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/docs/index.rst +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/docs/modules.rst +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/docs/ocp_resources.rst +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/examples/general.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/examples/node_network_configuration_policy.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/examples/role.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/examples/special_cases.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/examples/validation_troubleshooting.py +2 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/examples/virtual_machine.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/fake_kubernetes_client/README.md +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/fake_kubernetes_client/__init__.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/fake_kubernetes_client/configuration.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/fake_kubernetes_client/types.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/mcp_server/README.md +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/mcp_server/__init__.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/mcp_server/server-info.json +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/mcp_server/tests/__init__.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/__init__.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/api_service.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/application_aware_applied_cluster_resource_quota.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/application_aware_cluster_resource_quota.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/application_aware_resource_quota.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/benchmark.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/bgp_session_state.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/cdi_config.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/cluster_claim.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/cluster_deployment.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/cluster_operator.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/cluster_pool.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/cluster_service_version.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/cluster_version.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/config_map.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/console_cli_download.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/console_plugin.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/console_quick_start.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/controller_revision.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/cron_job.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/csi_storage_capacity.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/custom_resource_definition.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/deployment.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/endpoint_slice.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/endpoints.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/fence_agent_remediation_templates.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/forklift_controller.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/guardrails_orchestrator.py +2 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/hook.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/host.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/hyperconverged.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/image_caching_internal_knative_dev.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/image_digest_mirror_set.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/image_stream.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/imagestreamtag.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/inference_service.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/infrastructure.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/ingress_controller.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/installplan.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/ip_address_pool.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/job.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/l2_advertisement.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/lease.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/limit_range.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/machine.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/machine_config.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/machine_config_pool.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/machine_health_check.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/managed_cluster.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/metallb.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/migration.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/migration_policy.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/model_registry.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/mtq.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/multi_cluster_hub.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/multi_cluster_observability.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/multi_network_policy.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/mutating_webhook_config.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/network_addons_config.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/network_attachment_definition.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/network_map.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/node.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/node_health_check.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/node_maintenance.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/node_network_configuration_enactment.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/node_network_configuration_policy_latest.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/node_network_state.py +2 -2
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/ocs_initialization.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/operator_condition.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/operator_group.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/operator_hub.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/operator_source.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/package_manifest.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/performance_profile.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/pod_disruption_budget.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/priority_class.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/project_request.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/prometheus_rule.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/provider.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/proxy.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/py.typed +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/reclaim_space_cron_job.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/reclaim_space_job.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/resource_quota.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/sealed_secret.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/secret.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/self_node_remediation_templates.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/service_monitor.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/service_serving_knative_dev.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/sriov_network.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/sriov_network_node_policy.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/storage_map.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/subscription.py +1 -1
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/tekton_tasks.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/trustyai_service.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/user_defined_network.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/utils/__init__.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/utils/archive_utils.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/utils/constants.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/validating_webhook_config.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/virtual_machine.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/virtual_machine_clone.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/virtual_machine_migration_resource_quota.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/ocp_resources/vm_import_config.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/pypi-dist/.gitignore +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/scripts/__init__.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/scripts/diff-from-latest-release.sh +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/scripts/diff-from-tag.sh +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/scripts/generate_changelog.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/scripts/get-latest-release.sh +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/sonar-project.properties +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/__init__.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/fixtures/validation_schemas.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/manifests/vm.yaml +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/scripts/__init__.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_camelcase_to_snake.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_schema_loading.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_validate_resources.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_validate_resources_script.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tests/test_validation_error.py +0 -0
- {openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/tox.toml +0 -0
|
@@ -16,7 +16,18 @@ reviews:
|
|
|
16
16
|
changed_files_summary: true
|
|
17
17
|
labeling_instructions: []
|
|
18
18
|
path_filters: ["!class_generator/schema/**"]
|
|
19
|
-
path_instructions:
|
|
19
|
+
path_instructions:
|
|
20
|
+
- path: "**/ocp_resources/**"
|
|
21
|
+
instructions: |
|
|
22
|
+
SKIP reviewing any code between the markers:
|
|
23
|
+
- Start: `# Generated using https://github.com/RedHatQE/openshift-python-wrapper/blob/main/class_generator/README.md`
|
|
24
|
+
- End: `# End of generated code`
|
|
25
|
+
|
|
26
|
+
This is auto-generated code from the class-generator tool.
|
|
27
|
+
Only review code OUTSIDE these markers.
|
|
28
|
+
If someone modifies generated code directly, flag it as a violation -
|
|
29
|
+
changes should be made to the class-generator instead.
|
|
30
|
+
|
|
20
31
|
abort_on_close: true
|
|
21
32
|
auto_review:
|
|
22
33
|
enabled: true
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
gitdir: /tmp/github-webhook-openshift-python-wrapper-qfydzbjt/.git/worktrees/github-webhook-openshift-python-wrapper-qfydzbjt-worktree-f1795452-1e5c-44b1-82d7-e389b023db2c
|
|
@@ -10,7 +10,7 @@ ci:
|
|
|
10
10
|
|
|
11
11
|
repos:
|
|
12
12
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
13
|
-
rev:
|
|
13
|
+
rev: v6.0.0
|
|
14
14
|
hooks:
|
|
15
15
|
- id: check-merge-conflict
|
|
16
16
|
- id: debug-statements
|
|
@@ -23,7 +23,7 @@ repos:
|
|
|
23
23
|
- id: check-toml
|
|
24
24
|
|
|
25
25
|
- repo: https://github.com/PyCQA/flake8
|
|
26
|
-
rev:
|
|
26
|
+
rev: 7.3.0
|
|
27
27
|
hooks:
|
|
28
28
|
- id: flake8
|
|
29
29
|
args: [--config=.flake8]
|
|
@@ -45,18 +45,18 @@ repos:
|
|
|
45
45
|
]
|
|
46
46
|
|
|
47
47
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
48
|
-
rev: v0.
|
|
48
|
+
rev: v0.15.0
|
|
49
49
|
hooks:
|
|
50
50
|
- id: ruff
|
|
51
51
|
- id: ruff-format
|
|
52
52
|
|
|
53
53
|
- repo: https://github.com/gitleaks/gitleaks
|
|
54
|
-
rev: v8.
|
|
54
|
+
rev: v8.30.0
|
|
55
55
|
hooks:
|
|
56
56
|
- id: gitleaks
|
|
57
57
|
|
|
58
58
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
59
|
-
rev: v1.
|
|
59
|
+
rev: v1.19.1
|
|
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.21.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/
|
{openshift_python_wrapper-4.20.4 → openshift_python_wrapper-4.21.0}/class_generator/README.md
RENAMED
|
@@ -155,18 +155,55 @@ class-generator --kind Pod --add-tests
|
|
|
155
155
|
|
|
156
156
|
## Update schema files
|
|
157
157
|
|
|
158
|
-
|
|
159
|
-
- Kubernetes/Openshift cluster
|
|
160
|
-
- [oc](https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/stable/) or [kubectl](https://kubernetes.io/docs/tasks/tools/) (latest version)
|
|
161
|
-
- [uv](https://github.com/astral-sh/uv)
|
|
158
|
+
Schema files contain resource definitions used by the class generator. You can update these from a connected Kubernetes/OpenShift cluster.
|
|
162
159
|
|
|
163
|
-
|
|
160
|
+
### Dependencies
|
|
161
|
+
|
|
162
|
+
- Kubernetes/OpenShift cluster
|
|
163
|
+
- [oc](https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/stable/) or [kubectl](https://kubernetes.io/docs/tasks/tools/) (latest version)
|
|
164
|
+
- [uv](https://github.com/astral-sh/uv)
|
|
165
|
+
|
|
166
|
+
### Setup
|
|
167
|
+
|
|
168
|
+
Clone this repository:
|
|
164
169
|
|
|
165
170
|
```bash
|
|
166
171
|
git clone https://github.com/RedHatQE/openshift-python-wrapper.git
|
|
167
172
|
cd openshift-python-wrapper
|
|
168
173
|
```
|
|
169
174
|
|
|
170
|
-
|
|
175
|
+
Login to the cluster using admin user and password.
|
|
176
|
+
|
|
177
|
+
### Full schema update
|
|
178
|
+
|
|
179
|
+
Update the entire schema from the connected cluster:
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
class-generator --update-schema
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
This fetches all resource schemas from the cluster and updates the local cache.
|
|
186
|
+
|
|
187
|
+
**Note:** If connected to an older cluster, existing schemas are preserved and only missing resources are added.
|
|
188
|
+
|
|
189
|
+
### Single resource schema update
|
|
190
|
+
|
|
191
|
+
Update the schema for a single resource without affecting others:
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
class-generator --update-schema-for LlamaStackDistribution
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
This is useful when:
|
|
198
|
+
|
|
199
|
+
- Connected to an older cluster but need to update a specific CRD
|
|
200
|
+
- A new operator was installed and you need its resource schema
|
|
201
|
+
- You want to refresh just one resource without a full update
|
|
202
|
+
|
|
203
|
+
After updating the schema, regenerate the class:
|
|
171
204
|
|
|
205
|
+
```bash
|
|
206
|
+
class-generator --kind LlamaStackDistribution --overwrite
|
|
172
207
|
```
|
|
208
|
+
|
|
209
|
+
**Note:** `--update-schema` and `--update-schema-for` are mutually exclusive. Use one or the other, not both.
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
"""Command-line interface for the class generator."""
|
|
2
2
|
|
|
3
3
|
import fnmatch
|
|
4
|
+
import logging
|
|
5
|
+
import os
|
|
4
6
|
import shutil
|
|
5
7
|
import sys
|
|
6
8
|
from datetime import datetime
|
|
7
9
|
from pathlib import Path
|
|
8
10
|
from typing import Any
|
|
9
11
|
|
|
10
|
-
import logging
|
|
11
|
-
|
|
12
12
|
import cloup
|
|
13
|
-
from cloup.constraints import If, IsSet, accept_none, require_one
|
|
13
|
+
from cloup.constraints import If, IsSet, accept_none, mutually_exclusive, require_one
|
|
14
14
|
from simple_logger.logger import get_logger
|
|
15
15
|
|
|
16
16
|
from class_generator.constants import TESTS_MANIFESTS_DIR
|
|
17
17
|
from class_generator.core.coverage import analyze_coverage, generate_report
|
|
18
18
|
from class_generator.core.discovery import discover_generated_resources
|
|
19
19
|
from class_generator.core.generator import class_generator
|
|
20
|
-
from class_generator.core.schema import
|
|
20
|
+
from class_generator.core.schema import (
|
|
21
|
+
ClusterVersionError,
|
|
22
|
+
update_kind_schema,
|
|
23
|
+
update_single_resource_schema,
|
|
24
|
+
)
|
|
25
|
+
from class_generator.exceptions import ResourceNotFoundError
|
|
21
26
|
from class_generator.tests.test_generation import generate_class_generator_tests
|
|
22
27
|
from class_generator.utils import execute_parallel_tasks
|
|
23
28
|
from ocp_resources.utils.utils import convert_camel_case_to_snake_case
|
|
@@ -28,16 +33,25 @@ LOGGER = get_logger(name=__name__)
|
|
|
28
33
|
def validate_actions(
|
|
29
34
|
kind: str | None,
|
|
30
35
|
update_schema: bool,
|
|
36
|
+
update_schema_for: str | None,
|
|
31
37
|
discover_missing: bool,
|
|
32
38
|
coverage_report: bool,
|
|
33
39
|
generate_missing: bool,
|
|
34
40
|
regenerate_all: bool,
|
|
35
41
|
) -> None:
|
|
36
42
|
"""Validate that at least one action is specified."""
|
|
37
|
-
actions = [
|
|
43
|
+
actions = [
|
|
44
|
+
kind,
|
|
45
|
+
update_schema,
|
|
46
|
+
update_schema_for,
|
|
47
|
+
discover_missing,
|
|
48
|
+
coverage_report,
|
|
49
|
+
generate_missing,
|
|
50
|
+
regenerate_all,
|
|
51
|
+
]
|
|
38
52
|
if not any(actions):
|
|
39
53
|
LOGGER.error(
|
|
40
|
-
"At least one action must be specified (--kind, --update-schema, --discover-missing, --coverage-report, --generate-missing, or --regenerate-all)"
|
|
54
|
+
"At least one action must be specified (--kind, --update-schema, --update-schema-for, --discover-missing, --coverage-report, --generate-missing, or --regenerate-all)"
|
|
41
55
|
)
|
|
42
56
|
sys.exit(1)
|
|
43
57
|
|
|
@@ -57,7 +71,7 @@ def handle_schema_update(update_schema: bool, generate_missing: bool) -> bool:
|
|
|
57
71
|
LOGGER.info("Updating resource schema...")
|
|
58
72
|
try:
|
|
59
73
|
update_kind_schema()
|
|
60
|
-
except (
|
|
74
|
+
except (OSError, RuntimeError, ClusterVersionError) as e:
|
|
61
75
|
LOGGER.exception(f"Failed to update schema: {e}")
|
|
62
76
|
sys.exit(1)
|
|
63
77
|
|
|
@@ -70,6 +84,33 @@ def handle_schema_update(update_schema: bool, generate_missing: bool) -> bool:
|
|
|
70
84
|
return True
|
|
71
85
|
|
|
72
86
|
|
|
87
|
+
def handle_single_schema_update(update_schema_for: str | None) -> bool:
|
|
88
|
+
"""
|
|
89
|
+
Handle single resource schema update operations.
|
|
90
|
+
|
|
91
|
+
Args:
|
|
92
|
+
update_schema_for: The kind name to update schema for, or None
|
|
93
|
+
|
|
94
|
+
Returns:
|
|
95
|
+
True if processing should continue, False if it should exit
|
|
96
|
+
"""
|
|
97
|
+
if update_schema_for:
|
|
98
|
+
LOGGER.info(f"Updating schema for single resource: {update_schema_for}")
|
|
99
|
+
try:
|
|
100
|
+
update_single_resource_schema(kind=update_schema_for)
|
|
101
|
+
except ResourceNotFoundError as e:
|
|
102
|
+
LOGGER.error(f"Resource not found: {e}")
|
|
103
|
+
sys.exit(1)
|
|
104
|
+
except (OSError, RuntimeError) as e:
|
|
105
|
+
LOGGER.exception(f"Failed to update schema for {update_schema_for}: {e}")
|
|
106
|
+
sys.exit(1)
|
|
107
|
+
|
|
108
|
+
LOGGER.info(f"Schema updated for {update_schema_for}.")
|
|
109
|
+
return False
|
|
110
|
+
|
|
111
|
+
return True
|
|
112
|
+
|
|
113
|
+
|
|
73
114
|
def handle_coverage_analysis_and_reporting(
|
|
74
115
|
coverage_report: bool,
|
|
75
116
|
discover_missing: bool,
|
|
@@ -251,9 +292,9 @@ def handle_regenerate_all(
|
|
|
251
292
|
return resource_kind, False, str(e)
|
|
252
293
|
|
|
253
294
|
# Process results from parallel execution
|
|
254
|
-
def process_regeneration_result(
|
|
295
|
+
def process_regeneration_result(_resource: dict[str, Any], result: tuple[str, bool, str | None]) -> None:
|
|
255
296
|
nonlocal success_count, error_count
|
|
256
|
-
|
|
297
|
+
_resource_kind, success, _error = result
|
|
257
298
|
if success:
|
|
258
299
|
success_count += 1
|
|
259
300
|
else:
|
|
@@ -391,7 +432,7 @@ def handle_normal_kind_generation(
|
|
|
391
432
|
return kind_to_generate, False, str(e)
|
|
392
433
|
|
|
393
434
|
# Process results from parallel execution
|
|
394
|
-
def process_generation_result(
|
|
435
|
+
def process_generation_result(_kind_to_generate: str, result: tuple[str, bool, str | None]) -> None:
|
|
395
436
|
nonlocal success_count, error_count, failed_kinds
|
|
396
437
|
kind_name, success, error = result
|
|
397
438
|
if success:
|
|
@@ -447,8 +488,6 @@ def handle_test_generation(add_tests: bool) -> None:
|
|
|
447
488
|
|
|
448
489
|
# Run the generated test file
|
|
449
490
|
LOGGER.info("Running generated tests...")
|
|
450
|
-
import os
|
|
451
|
-
|
|
452
491
|
test_file = "class_generator/tests/test_class_generator.py"
|
|
453
492
|
exit_code = os.system(f"uv run pytest {test_file}")
|
|
454
493
|
|
|
@@ -493,6 +532,17 @@ def handle_test_generation(add_tests: bool) -> None:
|
|
|
493
532
|
is_flag=True,
|
|
494
533
|
show_default=True,
|
|
495
534
|
)
|
|
535
|
+
@cloup.option(
|
|
536
|
+
"--update-schema-for",
|
|
537
|
+
type=cloup.STRING,
|
|
538
|
+
help="""
|
|
539
|
+
\b
|
|
540
|
+
Update schema for a single resource kind only, without affecting other resources.
|
|
541
|
+
Useful when connected to an older cluster but needing to update a specific CRD.
|
|
542
|
+
Example: --update-schema-for LlamaStackDistribution
|
|
543
|
+
Cannot be used together with --update-schema.
|
|
544
|
+
""",
|
|
545
|
+
)
|
|
496
546
|
@cloup.option(
|
|
497
547
|
"--discover-missing",
|
|
498
548
|
help="Discover resources in the cluster that don't have wrapper classes",
|
|
@@ -557,6 +607,20 @@ def handle_test_generation(add_tests: bool) -> None:
|
|
|
557
607
|
"regenerate_all",
|
|
558
608
|
],
|
|
559
609
|
)
|
|
610
|
+
@cloup.constraint(
|
|
611
|
+
mutually_exclusive,
|
|
612
|
+
["update_schema", "update_schema_for"],
|
|
613
|
+
)
|
|
614
|
+
@cloup.constraint(
|
|
615
|
+
If(IsSet("update_schema_for"), then=accept_none),
|
|
616
|
+
[
|
|
617
|
+
"kind",
|
|
618
|
+
"discover_missing",
|
|
619
|
+
"coverage_report",
|
|
620
|
+
"generate_missing",
|
|
621
|
+
"regenerate_all",
|
|
622
|
+
],
|
|
623
|
+
)
|
|
560
624
|
@cloup.constraint(
|
|
561
625
|
If(IsSet("backup"), then=require_one),
|
|
562
626
|
["regenerate_all", "overwrite"],
|
|
@@ -579,6 +643,7 @@ def main(
|
|
|
579
643
|
filter: str | None,
|
|
580
644
|
json_output: bool,
|
|
581
645
|
update_schema: bool,
|
|
646
|
+
update_schema_for: str | None,
|
|
582
647
|
verbose: bool,
|
|
583
648
|
) -> None:
|
|
584
649
|
"""Generate Python module for K8S resource."""
|
|
@@ -612,13 +677,18 @@ def main(
|
|
|
612
677
|
validate_actions(
|
|
613
678
|
kind=kind,
|
|
614
679
|
update_schema=update_schema,
|
|
680
|
+
update_schema_for=update_schema_for,
|
|
615
681
|
discover_missing=discover_missing,
|
|
616
682
|
coverage_report=coverage_report,
|
|
617
683
|
generate_missing=generate_missing,
|
|
618
684
|
regenerate_all=regenerate_all,
|
|
619
685
|
)
|
|
620
686
|
|
|
621
|
-
# Handle schema update
|
|
687
|
+
# Handle single resource schema update (if specified)
|
|
688
|
+
if not handle_single_schema_update(update_schema_for=update_schema_for):
|
|
689
|
+
return
|
|
690
|
+
|
|
691
|
+
# Handle full schema update
|
|
622
692
|
if not handle_schema_update(update_schema=update_schema, generate_missing=generate_missing):
|
|
623
693
|
return
|
|
624
694
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Discovery functions for finding cluster resources and generated files."""
|
|
2
2
|
|
|
3
|
+
from concurrent.futures import Future, ThreadPoolExecutor, as_completed
|
|
3
4
|
from pathlib import Path
|
|
4
5
|
from typing import Any
|
|
5
|
-
from concurrent.futures import ThreadPoolExecutor, as_completed, Future
|
|
6
6
|
|
|
7
7
|
from kubernetes.dynamic import DynamicClient
|
|
8
8
|
from simple_logger.logger import get_logger
|
|
@@ -221,7 +221,7 @@ def discover_generated_resources() -> list[dict[str, Any]]:
|
|
|
221
221
|
for info in resource_infos:
|
|
222
222
|
# Read file to check for user code
|
|
223
223
|
try:
|
|
224
|
-
with open(info.file_path,
|
|
224
|
+
with open(info.file_path, encoding="utf-8") as f:
|
|
225
225
|
content = f.read()
|
|
226
226
|
except FileNotFoundError:
|
|
227
227
|
LOGGER.warning(f"File not found: {info.file_path}, skipping...")
|
|
@@ -155,7 +155,7 @@ def class_generator(
|
|
|
155
155
|
LOGGER.info("Updating schema")
|
|
156
156
|
try:
|
|
157
157
|
update_kind_schema()
|
|
158
|
-
except (
|
|
158
|
+
except (OSError, RuntimeError) as e:
|
|
159
159
|
error_msg = f"Failed to update schema: {e}"
|
|
160
160
|
LOGGER.error(error_msg)
|
|
161
161
|
raise RuntimeError(error_msg) from e
|