openshift-python-wrapper 4.13.14__tar.gz → 4.13.15__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.13.14 → openshift-python-wrapper-4.13.15}/PKG-INFO +1 -1
- openshift-python-wrapper-4.13.15/VERSION +1 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/daemonset.py +1 -1
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/job.py +39 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/openshift_python_wrapper.egg-info/PKG-INFO +1 -1
- openshift-python-wrapper-4.13.14/VERSION +0 -1
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/LICENSE +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/README.md +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/__init__.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/api_server.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/api_service.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/backup.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/benchmark.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/catalog_source.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/catalog_source_config.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/cdi.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/cdi_config.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/chaos_engine.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/chaos_result.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/cluster_operator.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/cluster_role.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/cluster_role_binding.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/cluster_service_version.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/cluster_version.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/configmap.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/console_cli_download.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/console_plugin.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/console_quick_start.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/constants.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/controller_revision.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/cron_job.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/csi_storage_capacity.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/csidriver.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/custom_resource_definition.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/data_import_cron.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/data_source.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/datavolume.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/deployment.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/destination_rule.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/endpoint_slice.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/endpoints.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/event.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/forklift_controller.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/gateway.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/hook.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/host.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/hostpath_provisioner.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/hyperconverged.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/image.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/image_content_source_policy.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/image_stream.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/imagestreamtag.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/infrastructure.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/installplan.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/ip_address_pool.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/kube_descheduler.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/kubevirt.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/kubevirt_common_templates_bundle.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/kubevirt_metrics_aggregation.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/kubevirt_node_labeller_bundle.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/kubevirt_template_validaotr.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/l2_advertisement.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/lease.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/machine.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/machine_config.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/machine_config_pool.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/machine_health_check.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/machine_set.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/metallb.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/migration.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/migration_policy.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/mtv.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/mutating_webhook_config.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/namespace.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/network.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/network_addons_config.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/network_attachment_definition.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/network_map.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/network_policy.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/nmstate.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/node.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/node_health_check.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/node_maintenance.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/node_network_configuration_enactment.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/node_network_configuration_policy.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/node_network_state.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/oauth.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/operator.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/operator_condition.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/operator_group.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/operator_hub.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/operator_source.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/package_manifest.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/peer_authentication.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/persistent_volume.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/persistent_volume_claim.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/pipeline.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/pipelineruns.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/plan.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/pod.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/pod_disruption_budget.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/pod_metrics.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/priority_class.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/project.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/prometheus.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/prometheus_rule.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/provider.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/replicaset.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/resource.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/restore.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/rhmi.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/role.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/role_binding.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/route.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/scheduler.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/secret.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/security_context_constraints.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/service.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/service_account.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/service_mesh_control_plane.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/service_mesh_member_roll.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/service_monitor.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/sriov_network.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/sriov_network_node_policy.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/sriov_network_node_state.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/ssp.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/storage_class.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/storage_map.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/storage_profile.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/subscription.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/tekton_tasks.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/template.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/upload_token_request.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/utils.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/validating_webhook_config.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_Instance_replica_set.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_cluster_instance_types.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_cluster_preferences.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_export.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_import.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_instance.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_instance_migration.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_instance_preset.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_instance_types.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_preferences.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_restore.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_snapshot.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_service.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/vm_import_config.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/volume_snapshot.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/volume_snapshot_class.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/openshift_python_wrapper.egg-info/SOURCES.txt +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/openshift_python_wrapper.egg-info/dependency_links.txt +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/openshift_python_wrapper.egg-info/requires.txt +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/openshift_python_wrapper.egg-info/top_level.txt +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/pyproject.toml +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/setup.cfg +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/tests/test_resources.py +0 -0
- {openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/tests/test_validate_resources.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: openshift-python-wrapper
|
|
3
|
-
Version: 4.13.
|
|
3
|
+
Version: 4.13.15
|
|
4
4
|
Summary: Wrapper around https://github.com/openshift/openshift-restclient-python
|
|
5
5
|
Author-email: Meni Yakove <myakove@gmail.com>, Ruth Netser <rnetser@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/RedHatQE/openshift-python-wrapper
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4.13.15
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/daemonset.py
RENAMED
|
@@ -54,7 +54,7 @@ class DaemonSet(NamespacedResource):
|
|
|
54
54
|
Returns:
|
|
55
55
|
bool: True if delete succeeded, False otherwise.
|
|
56
56
|
"""
|
|
57
|
-
super().delete(
|
|
57
|
+
return super().delete(
|
|
58
58
|
wait=wait,
|
|
59
59
|
timeout=timeout,
|
|
60
60
|
body=kubernetes.client.V1DeleteOptions(propagation_policy="Foreground"),
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import kubernetes
|
|
2
|
+
|
|
1
3
|
from ocp_resources.constants import TIMEOUT_4MINUTES
|
|
2
4
|
from ocp_resources.resource import NamespacedResource
|
|
3
5
|
|
|
@@ -5,6 +7,23 @@ from ocp_resources.resource import NamespacedResource
|
|
|
5
7
|
class Job(NamespacedResource):
|
|
6
8
|
"""
|
|
7
9
|
Job object.
|
|
10
|
+
|
|
11
|
+
Args:
|
|
12
|
+
name (str): Job name.
|
|
13
|
+
namespace (str): Namespace name.
|
|
14
|
+
client (DynamicClient): Dynamic client for connecting to a remote cluster.
|
|
15
|
+
teardown (bool): Indicates if this resource would need to be deleted.
|
|
16
|
+
privileged_client (DynamicClient): Instance of Dynamic client.
|
|
17
|
+
yaml_file (str): Yaml file for the resource.
|
|
18
|
+
delete_timeout (int): Timeout associated with delete action.
|
|
19
|
+
backoff_limit (int): The number of retries for a job.
|
|
20
|
+
restart_policy (str): The restart policy of the pod.
|
|
21
|
+
service_account (str): Optional. Service account name.
|
|
22
|
+
containers (list): List of containers belonging to the pod that the job will create.
|
|
23
|
+
background_propagation_policy (str): Control how object dependents will be deleted when an object is
|
|
24
|
+
deleted (for example the pods left behind when you delete a Job). Options are: "Background",
|
|
25
|
+
"Foreground" and "Orphan". Read more here:
|
|
26
|
+
https://kubernetes.io/docs/concepts/architecture/garbage-collection/#cascading-deletion
|
|
8
27
|
"""
|
|
9
28
|
|
|
10
29
|
api_group = NamespacedResource.ApiGroup.BATCH
|
|
@@ -25,6 +44,7 @@ class Job(NamespacedResource):
|
|
|
25
44
|
restart_policy=None,
|
|
26
45
|
service_account=None,
|
|
27
46
|
containers=None,
|
|
47
|
+
background_propagation_policy=None,
|
|
28
48
|
**kwargs,
|
|
29
49
|
):
|
|
30
50
|
super().__init__(
|
|
@@ -41,6 +61,7 @@ class Job(NamespacedResource):
|
|
|
41
61
|
self.backoff_limit = backoff_limit
|
|
42
62
|
self.service_account = service_account
|
|
43
63
|
self.containers = containers
|
|
64
|
+
self.background_propagation_policy = background_propagation_policy
|
|
44
65
|
|
|
45
66
|
def to_dict(self):
|
|
46
67
|
super().to_dict()
|
|
@@ -63,3 +84,21 @@ class Job(NamespacedResource):
|
|
|
63
84
|
self.res["spec"]["template"]["spec"][
|
|
64
85
|
"restartPolicy"
|
|
65
86
|
] = self.restart_policy
|
|
87
|
+
|
|
88
|
+
def delete(self, wait=False, timeout=TIMEOUT_4MINUTES, body=None):
|
|
89
|
+
"""
|
|
90
|
+
Delete Job object
|
|
91
|
+
|
|
92
|
+
Args:
|
|
93
|
+
wait (bool): True to wait for Job to be deleted.
|
|
94
|
+
timeout (int): Time to wait for resource deletion.
|
|
95
|
+
body (dict): Content to send to delete().
|
|
96
|
+
|
|
97
|
+
Returns:
|
|
98
|
+
bool: True if delete succeeded, False otherwise.
|
|
99
|
+
"""
|
|
100
|
+
if not body and self.background_propagation_policy:
|
|
101
|
+
body = kubernetes.client.V1DeleteOptions(
|
|
102
|
+
propagation_policy=self.background_propagation_policy
|
|
103
|
+
)
|
|
104
|
+
return super().delete(wait=wait, timeout=timeout, body=body)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: openshift-python-wrapper
|
|
3
|
-
Version: 4.13.
|
|
3
|
+
Version: 4.13.15
|
|
4
4
|
Summary: Wrapper around https://github.com/openshift/openshift-restclient-python
|
|
5
5
|
Author-email: Meni Yakove <myakove@gmail.com>, Ruth Netser <rnetser@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/RedHatQE/openshift-python-wrapper
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
4.13.14
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/__init__.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/api_server.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/api_service.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/backup.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/benchmark.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/cdi_config.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/chaos_engine.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/chaos_result.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/cluster_role.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/configmap.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/cron_job.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/csidriver.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/data_source.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/datavolume.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/deployment.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/endpoints.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/event.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/gateway.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/image.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/image_stream.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/installplan.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/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-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/lease.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/machine.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/machine_set.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/metallb.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/migration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/namespace.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/network.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/network_map.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/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-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/oauth.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/operator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/operator_hub.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/pipeline.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/pipelineruns.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/pod_metrics.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/project.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/prometheus.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/provider.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/replicaset.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/resource.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/restore.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/role_binding.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/route.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/scheduler.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/secret.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/service.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/sriov_network.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/storage_class.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/storage_map.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/subscription.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/tekton_tasks.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/ocp_resources/template.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.14 → openshift-python-wrapper-4.13.15}/tests/test_resources.py
RENAMED
|
File without changes
|
|
File without changes
|