openshift-python-wrapper 4.13.13__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.
Files changed (160) hide show
  1. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/PKG-INFO +1 -1
  2. openshift-python-wrapper-4.13.15/VERSION +1 -0
  3. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/daemonset.py +1 -1
  4. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/image_content_source_policy.py +1 -1
  5. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/job.py +39 -0
  6. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/openshift_python_wrapper.egg-info/PKG-INFO +1 -1
  7. openshift-python-wrapper-4.13.13/VERSION +0 -1
  8. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/LICENSE +0 -0
  9. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/README.md +0 -0
  10. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/__init__.py +0 -0
  11. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/api_server.py +0 -0
  12. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/api_service.py +0 -0
  13. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/backup.py +0 -0
  14. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/benchmark.py +0 -0
  15. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/catalog_source.py +0 -0
  16. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/catalog_source_config.py +0 -0
  17. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/cdi.py +0 -0
  18. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/cdi_config.py +0 -0
  19. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/chaos_engine.py +0 -0
  20. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/chaos_result.py +0 -0
  21. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/cluster_operator.py +0 -0
  22. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/cluster_role.py +0 -0
  23. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/cluster_role_binding.py +0 -0
  24. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/cluster_service_version.py +0 -0
  25. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/cluster_version.py +0 -0
  26. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/configmap.py +0 -0
  27. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/console_cli_download.py +0 -0
  28. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/console_plugin.py +0 -0
  29. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/console_quick_start.py +0 -0
  30. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/constants.py +0 -0
  31. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/controller_revision.py +0 -0
  32. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/cron_job.py +0 -0
  33. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/csi_storage_capacity.py +0 -0
  34. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/csidriver.py +0 -0
  35. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/custom_resource_definition.py +0 -0
  36. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/data_import_cron.py +0 -0
  37. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/data_source.py +0 -0
  38. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/datavolume.py +0 -0
  39. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/deployment.py +0 -0
  40. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/destination_rule.py +0 -0
  41. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/endpoint_slice.py +0 -0
  42. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/endpoints.py +0 -0
  43. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/event.py +0 -0
  44. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/forklift_controller.py +0 -0
  45. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/gateway.py +0 -0
  46. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/hook.py +0 -0
  47. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/host.py +0 -0
  48. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/hostpath_provisioner.py +0 -0
  49. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/hyperconverged.py +0 -0
  50. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/image.py +0 -0
  51. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/image_stream.py +0 -0
  52. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/imagestreamtag.py +0 -0
  53. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/infrastructure.py +0 -0
  54. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/installplan.py +0 -0
  55. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/ip_address_pool.py +0 -0
  56. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/kube_descheduler.py +0 -0
  57. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/kubevirt.py +0 -0
  58. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/kubevirt_common_templates_bundle.py +0 -0
  59. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/kubevirt_metrics_aggregation.py +0 -0
  60. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/kubevirt_node_labeller_bundle.py +0 -0
  61. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/kubevirt_template_validaotr.py +0 -0
  62. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/l2_advertisement.py +0 -0
  63. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/lease.py +0 -0
  64. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/machine.py +0 -0
  65. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/machine_config.py +0 -0
  66. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/machine_config_pool.py +0 -0
  67. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/machine_health_check.py +0 -0
  68. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/machine_set.py +0 -0
  69. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/metallb.py +0 -0
  70. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/migration.py +0 -0
  71. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/migration_policy.py +0 -0
  72. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/mtv.py +0 -0
  73. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/mutating_webhook_config.py +0 -0
  74. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/namespace.py +0 -0
  75. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/network.py +0 -0
  76. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/network_addons_config.py +0 -0
  77. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/network_attachment_definition.py +0 -0
  78. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/network_map.py +0 -0
  79. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/network_policy.py +0 -0
  80. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/nmstate.py +0 -0
  81. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/node.py +0 -0
  82. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/node_health_check.py +0 -0
  83. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/node_maintenance.py +0 -0
  84. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/node_network_configuration_enactment.py +0 -0
  85. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/node_network_configuration_policy.py +0 -0
  86. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/node_network_state.py +0 -0
  87. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/oauth.py +0 -0
  88. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/operator.py +0 -0
  89. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/operator_condition.py +0 -0
  90. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/operator_group.py +0 -0
  91. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/operator_hub.py +0 -0
  92. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/operator_source.py +0 -0
  93. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/package_manifest.py +0 -0
  94. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/peer_authentication.py +0 -0
  95. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/persistent_volume.py +0 -0
  96. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/persistent_volume_claim.py +0 -0
  97. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/pipeline.py +0 -0
  98. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/pipelineruns.py +0 -0
  99. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/plan.py +0 -0
  100. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/pod.py +0 -0
  101. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/pod_disruption_budget.py +0 -0
  102. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/pod_metrics.py +0 -0
  103. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/priority_class.py +0 -0
  104. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/project.py +0 -0
  105. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/prometheus.py +0 -0
  106. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/prometheus_rule.py +0 -0
  107. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/provider.py +0 -0
  108. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/replicaset.py +0 -0
  109. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/resource.py +0 -0
  110. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/restore.py +0 -0
  111. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/rhmi.py +0 -0
  112. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/role.py +0 -0
  113. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/role_binding.py +0 -0
  114. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/route.py +0 -0
  115. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/scheduler.py +0 -0
  116. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/secret.py +0 -0
  117. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/security_context_constraints.py +0 -0
  118. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/service.py +0 -0
  119. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/service_account.py +0 -0
  120. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/service_mesh_control_plane.py +0 -0
  121. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/service_mesh_member_roll.py +0 -0
  122. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/service_monitor.py +0 -0
  123. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/sriov_network.py +0 -0
  124. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/sriov_network_node_policy.py +0 -0
  125. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/sriov_network_node_state.py +0 -0
  126. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/ssp.py +0 -0
  127. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/storage_class.py +0 -0
  128. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/storage_map.py +0 -0
  129. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/storage_profile.py +0 -0
  130. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/subscription.py +0 -0
  131. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/tekton_tasks.py +0 -0
  132. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/template.py +0 -0
  133. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/upload_token_request.py +0 -0
  134. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/utils.py +0 -0
  135. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/validating_webhook_config.py +0 -0
  136. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine.py +0 -0
  137. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_Instance_replica_set.py +0 -0
  138. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_cluster_instance_types.py +0 -0
  139. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_cluster_preferences.py +0 -0
  140. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_export.py +0 -0
  141. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_import.py +0 -0
  142. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_instance.py +0 -0
  143. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_instance_migration.py +0 -0
  144. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_instance_preset.py +0 -0
  145. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_instance_types.py +0 -0
  146. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_preferences.py +0 -0
  147. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_restore.py +0 -0
  148. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_machine_snapshot.py +0 -0
  149. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/virtual_service.py +0 -0
  150. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/vm_import_config.py +0 -0
  151. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/volume_snapshot.py +0 -0
  152. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/ocp_resources/volume_snapshot_class.py +0 -0
  153. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/openshift_python_wrapper.egg-info/SOURCES.txt +0 -0
  154. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/openshift_python_wrapper.egg-info/dependency_links.txt +0 -0
  155. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/openshift_python_wrapper.egg-info/requires.txt +0 -0
  156. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/openshift_python_wrapper.egg-info/top_level.txt +0 -0
  157. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/pyproject.toml +0 -0
  158. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/setup.cfg +0 -0
  159. {openshift-python-wrapper-4.13.13 → openshift-python-wrapper-4.13.15}/tests/test_resources.py +0 -0
  160. {openshift-python-wrapper-4.13.13 → 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.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
@@ -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"),
@@ -8,7 +8,7 @@ class ImageContentSourcePolicy(Resource):
8
8
 
9
9
  api_group = Resource.ApiGroup.OPERATOR_OPENSHIFT_IO
10
10
 
11
- def __init__(self, repository_digest_mirrors, **kwargs):
11
+ def __init__(self, repository_digest_mirrors=None, **kwargs):
12
12
  """
13
13
  Create/Manage ICSP configuration object. API reference:
14
14
  https://docs.openshift.com/container-platform/4.12/rest_api/operator_apis/imagecontentsourcepolicy-operator-openshift-io-v1alpha1.html
@@ -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.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.13