openshift-python-wrapper 10.0.29__tar.gz → 10.0.31__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-10.0.29 → openshift_python_wrapper-10.0.31}/PKG-INFO +1 -1
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/datavolume.py +6 -3
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/resource.py +28 -12
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/pyproject.toml +1 -1
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/LICENSE +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/README.md +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/__init__.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/aaq.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/api_server.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/api_service.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/backup.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/benchmark.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/catalog_source.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/cdi.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/cdi_config.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/chaos_engine.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/chaos_result.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/cluster_operator.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/cluster_role.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/cluster_role_binding.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/cluster_service_version.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/cluster_version.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/configmap.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/console_cli_download.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/console_plugin.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/console_quick_start.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/constants.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/controller_revision.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/cron_job.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/csi_storage_capacity.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/csidriver.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/custom_resource_definition.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/daemonset.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/data_import_cron.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/data_source.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/deployment.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/destination_rule.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/dns.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/endpoint_slice.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/endpoints.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/event.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/forklift_controller.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/gateway.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/group.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/hook.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/host.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/hostpath_provisioner.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/hyperconverged.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/image.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/image_content_source_policy.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/image_digest_mirror_set.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/image_stream.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/imagestreamtag.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/infrastructure.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/installplan.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/ip_address_pool.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/job.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/kube_descheduler.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/kubevirt.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/kubevirt_common_templates_bundle.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/kubevirt_metrics_aggregation.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/kubevirt_node_labeller_bundle.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/kubevirt_template_validaotr.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/l2_advertisement.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/lease.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/limit_range.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/machine.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/machine_config.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/machine_config_pool.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/machine_health_check.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/machine_set.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/managed_cluster.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/metallb.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/migration.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/migration_policy.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/mtq.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/mtv.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/multi_cluster_hub.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/multi_cluster_observability.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/multi_network_policy.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/mutating_webhook_config.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/namespace.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/network.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/network_addons_config.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/network_attachment_definition.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/network_map.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/network_policy.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/nmstate.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/node.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/node_health_check.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/node_maintenance.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/node_network_configuration_enactment.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/node_network_configuration_policy.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/node_network_state.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/oauth.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/ocs_initialization.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/operator.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/operator_condition.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/operator_group.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/operator_hub.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/operator_source.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/package_manifest.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/peer_authentication.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/performance_profile.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/persistent_volume.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/persistent_volume_claim.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/pipeline.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/pipelineruns.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/plan.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/pod.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/pod_disruption_budget.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/pod_metrics.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/priority_class.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/project.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/prometheus.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/prometheus_rule.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/provider.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/replicaset.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/resource_quota.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/restore.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/rhmi.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/role.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/role_binding.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/route.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/scheduler.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/secret.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/security_context_constraints.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/service.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/service_account.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/service_mesh_control_plane.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/service_mesh_member_roll.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/service_monitor.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/sriov_network.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/sriov_network_node_policy.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/sriov_network_node_state.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/ssp.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/storage_class.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/storage_map.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/storage_profile.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/subscription.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/task_run.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/tekton_tasks.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/template.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/upload_token_request.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/utils.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/validating_webhook_config.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/virtual_machine.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/virtual_machine_Instance_replica_set.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/virtual_machine_clone.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/virtual_machine_cluster_instance_types.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/virtual_machine_cluster_preferences.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/virtual_machine_export.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/virtual_machine_import.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/virtual_machine_instance.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/virtual_machine_instance_migration.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/virtual_machine_instance_preset.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/virtual_machine_instance_types.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/virtual_machine_migration_resource_quota.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/virtual_machine_preferences.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/virtual_machine_restore.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/virtual_machine_snapshot.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/virtual_service.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/vm_import_config.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/volume_snapshot.py +0 -0
- {openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/volume_snapshot_class.py +0 -0
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/datavolume.py
RENAMED
|
@@ -273,6 +273,7 @@ class DataVolume(NamespacedResource):
|
|
|
273
273
|
self,
|
|
274
274
|
timeout=TIMEOUT_10MINUTES,
|
|
275
275
|
failure_timeout=TIMEOUT_2MINUTES,
|
|
276
|
+
dv_garbage_collection_enabled=False,
|
|
276
277
|
stop_status_func=None,
|
|
277
278
|
*stop_status_func_args,
|
|
278
279
|
**stop_status_func_kwargs,
|
|
@@ -283,6 +284,7 @@ class DataVolume(NamespacedResource):
|
|
|
283
284
|
Args:
|
|
284
285
|
timeout (int): Time to wait for the DataVolume to succeed.
|
|
285
286
|
failure_timeout (int): Time to wait for the DataVolume to have not Pending/None status
|
|
287
|
+
dv_garbage_collection_enabled (bool, default: False): if True, expect that DV will disappear after success
|
|
286
288
|
stop_status_func (function): function that is called inside the TimeoutSampler
|
|
287
289
|
if it returns True - stop the Sampler and raise TimeoutExpiredError
|
|
288
290
|
Example:
|
|
@@ -308,8 +310,10 @@ class DataVolume(NamespacedResource):
|
|
|
308
310
|
wait_timeout=timeout,
|
|
309
311
|
func=lambda: self.exists,
|
|
310
312
|
):
|
|
311
|
-
# DV reach
|
|
312
|
-
if sample
|
|
313
|
+
# DV reach success if the status is Succeeded, or if DV garbage collection enabled and the DV does not exist
|
|
314
|
+
if sample and sample.get("status", {}).get("phase") == self.Status.SUCCEEDED:
|
|
315
|
+
break
|
|
316
|
+
elif sample is None and dv_garbage_collection_enabled:
|
|
313
317
|
break
|
|
314
318
|
elif stop_status_func and stop_status_func(*stop_status_func_args, **stop_status_func_kwargs):
|
|
315
319
|
raise TimeoutExpiredError(
|
|
@@ -319,7 +323,6 @@ class DataVolume(NamespacedResource):
|
|
|
319
323
|
f" {status_of_dv_str} {sample.status}"
|
|
320
324
|
)
|
|
321
325
|
)
|
|
322
|
-
|
|
323
326
|
except TimeoutExpiredError:
|
|
324
327
|
self.logger.error(f"{status_of_dv_str} {sample.status}")
|
|
325
328
|
raise
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/resource.py
RENAMED
|
@@ -10,7 +10,6 @@ from signal import SIGINT, signal
|
|
|
10
10
|
import kubernetes
|
|
11
11
|
import yaml
|
|
12
12
|
from benedict import benedict
|
|
13
|
-
from kubernetes.dynamic import DynamicClient
|
|
14
13
|
from kubernetes.dynamic.exceptions import (
|
|
15
14
|
ConflictError,
|
|
16
15
|
MethodNotAllowedError,
|
|
@@ -20,6 +19,7 @@ from kubernetes.dynamic.exceptions import (
|
|
|
20
19
|
from kubernetes.dynamic.resource import ResourceField
|
|
21
20
|
from packaging.version import Version
|
|
22
21
|
from simple_logger.logger import get_logger
|
|
22
|
+
from urllib3.exceptions import MaxRetryError
|
|
23
23
|
|
|
24
24
|
from ocp_resources.constants import (
|
|
25
25
|
DEFAULT_CLUSTER_RETRY_EXCEPTIONS,
|
|
@@ -61,10 +61,14 @@ def _get_api_version(dyn_client, api_group, kind):
|
|
|
61
61
|
return res.group_version
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
def get_client(config_file=None, config_dict=None, context=None):
|
|
64
|
+
def get_client(config_file=None, config_dict=None, context=None, **kwargs):
|
|
65
65
|
"""
|
|
66
66
|
Get a kubernetes client.
|
|
67
67
|
|
|
68
|
+
|
|
69
|
+
This function is a replica of `ocp_utilities.infra.get_client` which cannot be imported as ocp_utilities imports
|
|
70
|
+
from ocp_resources.
|
|
71
|
+
|
|
68
72
|
Pass either config_file or config_dict.
|
|
69
73
|
If none of them are passed, client will be created from default OS kubeconfig
|
|
70
74
|
(environment variable or .kube folder).
|
|
@@ -77,19 +81,31 @@ def get_client(config_file=None, config_dict=None, context=None):
|
|
|
77
81
|
Returns:
|
|
78
82
|
DynamicClient: a kubernetes client.
|
|
79
83
|
"""
|
|
84
|
+
# Ref: https://github.com/kubernetes-client/python/blob/v26.1.0/kubernetes/base/config/kube_config.py
|
|
80
85
|
if config_dict:
|
|
81
|
-
return DynamicClient(
|
|
82
|
-
client=kubernetes.config.new_client_from_config_dict(
|
|
83
|
-
config_dict=config_dict,
|
|
84
|
-
context=context,
|
|
85
|
-
)
|
|
86
|
+
return kubernetes.dynamic.DynamicClient(
|
|
87
|
+
client=kubernetes.config.new_client_from_config_dict(config_dict=config_dict, context=context, **kwargs)
|
|
86
88
|
)
|
|
87
|
-
|
|
88
|
-
client
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
try:
|
|
90
|
+
# Ref: https://github.com/kubernetes-client/python/blob/v26.1.0/kubernetes/base/config/__init__.py
|
|
91
|
+
LOGGER.info("Trying to get client via new_client_from_config")
|
|
92
|
+
|
|
93
|
+
# kubernetes.config.kube_config.load_kube_config sets KUBE_CONFIG_DEFAULT_LOCATION during module import.
|
|
94
|
+
# If `KUBECONFIG` environment variable is set via code, the `KUBE_CONFIG_DEFAULT_LOCATION` will be None since
|
|
95
|
+
# is populated during import which comes before setting the variable in code.
|
|
96
|
+
config_file = config_file or os.environ.get("KUBECONFIG", "~/.kube/config")
|
|
97
|
+
return kubernetes.dynamic.DynamicClient(
|
|
98
|
+
client=kubernetes.config.new_client_from_config(config_file=config_file, context=context, **kwargs)
|
|
99
|
+
)
|
|
100
|
+
except MaxRetryError:
|
|
101
|
+
# Ref: https://github.com/kubernetes-client/python/blob/v26.1.0/kubernetes/base/config/incluster_config.py
|
|
102
|
+
LOGGER.info("Trying to get client via incluster_config")
|
|
103
|
+
return kubernetes.dynamic.DynamicClient(
|
|
104
|
+
client=kubernetes.config.incluster_config.load_incluster_config(
|
|
105
|
+
client_configuration=kwargs.get("client_configuration"),
|
|
106
|
+
try_refresh_token=kwargs.get("try_refresh_token", True),
|
|
107
|
+
)
|
|
91
108
|
)
|
|
92
|
-
)
|
|
93
109
|
|
|
94
110
|
|
|
95
111
|
def sub_resource_level(current_class, owner_class, parent_class):
|
|
@@ -9,7 +9,7 @@ exclude = [".git", ".venv", ".mypy_cache", ".tox", "__pycache__"]
|
|
|
9
9
|
|
|
10
10
|
[tool.poetry]
|
|
11
11
|
name = "openshift-python-wrapper"
|
|
12
|
-
version = "10.0.
|
|
12
|
+
version = "10.0.31"
|
|
13
13
|
description = "Wrapper around https://github.com/kubernetes-client/python"
|
|
14
14
|
authors = ["Meni Yakove <myakove@gmail.com>", "Ruth Netser <rnetser@gmail.com>"]
|
|
15
15
|
readme = "README.md"
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/api_server.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/api_service.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/backup.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/benchmark.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/cdi_config.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/chaos_engine.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/chaos_result.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/cluster_role.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/configmap.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/cron_job.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/csidriver.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/daemonset.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/data_source.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/deployment.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/endpoints.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/event.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/gateway.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/group.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/image.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/image_stream.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/installplan.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/kubevirt.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/lease.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/limit_range.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/machine.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/machine_set.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/metallb.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/migration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/namespace.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/network.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/network_map.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/nmstate.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/oauth.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/operator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/operator_hub.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/pipeline.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/pipelineruns.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/pod_metrics.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/project.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/prometheus.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/provider.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/replicaset.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/restore.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/role_binding.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/route.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/scheduler.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/secret.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/service.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/sriov_network.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/storage_class.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/storage_map.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/subscription.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/task_run.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/tekton_tasks.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/template.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.29 → openshift_python_wrapper-10.0.31}/ocp_resources/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|