openshift-python-wrapper 4.13.10__tar.gz → 4.13.12__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.10 → openshift-python-wrapper-4.13.12}/PKG-INFO +1 -1
  2. openshift-python-wrapper-4.13.12/VERSION +1 -0
  3. openshift-python-wrapper-4.13.12/ocp_resources/pipeline.py +58 -0
  4. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/resource.py +3 -0
  5. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/openshift_python_wrapper.egg-info/PKG-INFO +1 -1
  6. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/openshift_python_wrapper.egg-info/SOURCES.txt +1 -0
  7. openshift-python-wrapper-4.13.10/VERSION +0 -1
  8. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/LICENSE +0 -0
  9. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/README.md +0 -0
  10. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/__init__.py +0 -0
  11. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/api_server.py +0 -0
  12. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/api_service.py +0 -0
  13. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/backup.py +0 -0
  14. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/benchmark.py +0 -0
  15. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/catalog_source.py +0 -0
  16. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/catalog_source_config.py +0 -0
  17. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/cdi.py +0 -0
  18. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/cdi_config.py +0 -0
  19. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/chaos_engine.py +0 -0
  20. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/chaos_result.py +0 -0
  21. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/cluster_operator.py +0 -0
  22. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/cluster_role.py +0 -0
  23. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/cluster_role_binding.py +0 -0
  24. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/cluster_service_version.py +0 -0
  25. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/cluster_version.py +0 -0
  26. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/configmap.py +0 -0
  27. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/console_cli_download.py +0 -0
  28. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/console_plugin.py +0 -0
  29. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/console_quick_start.py +0 -0
  30. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/constants.py +0 -0
  31. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/controller_revision.py +0 -0
  32. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/cron_job.py +0 -0
  33. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/csi_storage_capacity.py +0 -0
  34. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/csidriver.py +0 -0
  35. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/custom_resource_definition.py +0 -0
  36. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/daemonset.py +0 -0
  37. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/data_import_cron.py +0 -0
  38. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/data_source.py +0 -0
  39. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/datavolume.py +0 -0
  40. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/deployment.py +0 -0
  41. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/destination_rule.py +0 -0
  42. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/endpoint_slice.py +0 -0
  43. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/endpoints.py +0 -0
  44. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/event.py +0 -0
  45. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/forklift_controller.py +0 -0
  46. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/gateway.py +0 -0
  47. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/hook.py +0 -0
  48. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/host.py +0 -0
  49. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/hostpath_provisioner.py +0 -0
  50. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/hyperconverged.py +0 -0
  51. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/image.py +0 -0
  52. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/image_content_source_policy.py +0 -0
  53. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/image_stream.py +0 -0
  54. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/imagestreamtag.py +0 -0
  55. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/infrastructure.py +0 -0
  56. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/installplan.py +0 -0
  57. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/ip_address_pool.py +0 -0
  58. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/job.py +0 -0
  59. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/kube_descheduler.py +0 -0
  60. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/kubevirt.py +0 -0
  61. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/kubevirt_common_templates_bundle.py +0 -0
  62. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/kubevirt_metrics_aggregation.py +0 -0
  63. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/kubevirt_node_labeller_bundle.py +0 -0
  64. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/kubevirt_template_validaotr.py +0 -0
  65. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/l2_advertisement.py +0 -0
  66. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/lease.py +0 -0
  67. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/machine.py +0 -0
  68. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/machine_config.py +0 -0
  69. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/machine_config_pool.py +0 -0
  70. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/machine_health_check.py +0 -0
  71. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/machine_set.py +0 -0
  72. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/metallb.py +0 -0
  73. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/migration.py +0 -0
  74. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/migration_policy.py +0 -0
  75. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/mtv.py +0 -0
  76. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/mutating_webhook_config.py +0 -0
  77. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/namespace.py +0 -0
  78. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/network.py +0 -0
  79. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/network_addons_config.py +0 -0
  80. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/network_attachment_definition.py +0 -0
  81. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/network_map.py +0 -0
  82. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/network_policy.py +0 -0
  83. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/nmstate.py +0 -0
  84. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/node.py +0 -0
  85. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/node_health_check.py +0 -0
  86. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/node_maintenance.py +0 -0
  87. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/node_network_configuration_enactment.py +0 -0
  88. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/node_network_configuration_policy.py +0 -0
  89. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/node_network_state.py +0 -0
  90. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/oauth.py +0 -0
  91. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/operator.py +0 -0
  92. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/operator_condition.py +0 -0
  93. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/operator_group.py +0 -0
  94. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/operator_hub.py +0 -0
  95. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/operator_source.py +0 -0
  96. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/package_manifest.py +0 -0
  97. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/peer_authentication.py +0 -0
  98. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/persistent_volume.py +0 -0
  99. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/persistent_volume_claim.py +0 -0
  100. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/pipelineruns.py +0 -0
  101. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/plan.py +0 -0
  102. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/pod.py +0 -0
  103. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/pod_disruption_budget.py +0 -0
  104. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/pod_metrics.py +0 -0
  105. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/priority_class.py +0 -0
  106. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/project.py +0 -0
  107. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/prometheus.py +0 -0
  108. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/prometheus_rule.py +0 -0
  109. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/provider.py +0 -0
  110. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/replicaset.py +0 -0
  111. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/restore.py +0 -0
  112. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/rhmi.py +0 -0
  113. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/role.py +0 -0
  114. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/role_binding.py +0 -0
  115. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/route.py +0 -0
  116. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/scheduler.py +0 -0
  117. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/secret.py +0 -0
  118. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/security_context_constraints.py +0 -0
  119. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/service.py +0 -0
  120. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/service_account.py +0 -0
  121. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/service_mesh_control_plane.py +0 -0
  122. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/service_mesh_member_roll.py +0 -0
  123. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/service_monitor.py +0 -0
  124. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/sriov_network.py +0 -0
  125. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/sriov_network_node_policy.py +0 -0
  126. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/sriov_network_node_state.py +0 -0
  127. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/ssp.py +0 -0
  128. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/storage_class.py +0 -0
  129. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/storage_map.py +0 -0
  130. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/storage_profile.py +0 -0
  131. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/subscription.py +0 -0
  132. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/tekton_tasks.py +0 -0
  133. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/template.py +0 -0
  134. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/upload_token_request.py +0 -0
  135. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/utils.py +0 -0
  136. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/validating_webhook_config.py +0 -0
  137. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/virtual_machine.py +0 -0
  138. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/virtual_machine_Instance_replica_set.py +0 -0
  139. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/virtual_machine_cluster_instance_types.py +0 -0
  140. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/virtual_machine_cluster_preferences.py +0 -0
  141. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/virtual_machine_export.py +0 -0
  142. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/virtual_machine_import.py +0 -0
  143. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/virtual_machine_instance.py +0 -0
  144. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/virtual_machine_instance_migration.py +0 -0
  145. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/virtual_machine_instance_preset.py +0 -0
  146. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/virtual_machine_instance_types.py +0 -0
  147. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/virtual_machine_preferences.py +0 -0
  148. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/virtual_machine_restore.py +0 -0
  149. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/virtual_machine_snapshot.py +0 -0
  150. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/virtual_service.py +0 -0
  151. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/vm_import_config.py +0 -0
  152. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/volume_snapshot.py +0 -0
  153. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/ocp_resources/volume_snapshot_class.py +0 -0
  154. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/openshift_python_wrapper.egg-info/dependency_links.txt +0 -0
  155. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/openshift_python_wrapper.egg-info/requires.txt +0 -0
  156. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/openshift_python_wrapper.egg-info/top_level.txt +0 -0
  157. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/pyproject.toml +0 -0
  158. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/setup.cfg +0 -0
  159. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/tests/test_resources.py +0 -0
  160. {openshift-python-wrapper-4.13.10 → openshift-python-wrapper-4.13.12}/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.10
3
+ Version: 4.13.12
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.12
@@ -0,0 +1,58 @@
1
+ # API reference: https://tekton.dev/docs/pipelines/pipelines/
2
+
3
+ from ocp_resources.resource import NamespacedResource
4
+
5
+
6
+ class Pipeline(NamespacedResource):
7
+ api_group = NamespacedResource.ApiGroup.TEKTON_DEV
8
+
9
+ def __init__(
10
+ self,
11
+ name=None,
12
+ namespace=None,
13
+ tasks=None,
14
+ params=None,
15
+ final_parallel_tasks=None,
16
+ client=None,
17
+ yaml_file=None,
18
+ **kwargs,
19
+ ):
20
+ """
21
+ Args:
22
+ name (str): Name of the pipeline
23
+ namespace (str): Namespace of the pipeline
24
+ tasks (str, optional): actions to perform in pipeline
25
+ client: (DynamicClient): DynamicClient to use.
26
+ params (dict, optional): params to support pipelines.
27
+ params can be set/changed based on tasks.
28
+ example: 'spec': {'params': [{'name': 'sourceTemplateName','type': 'string','default':'openshift'},
29
+ {'name': 'sourceTemplateNamespace', 'type':'string', 'description': 'Namespace pf template'}]}
30
+ final_parallel_tasks (list, optional): a list of one or more to be executed in parallel after all other
31
+ tasks have completed in parallel.
32
+ spec section can't be empty. It requires at least one optional field.
33
+ """
34
+ super().__init__(
35
+ name=name,
36
+ namespace=namespace,
37
+ client=client,
38
+ **kwargs,
39
+ )
40
+ # TODO: Add a check for tasks when bug https://issues.redhat.com/browse/SRVKP-3019 is resolved.
41
+ self.tasks = tasks
42
+ self.params = params
43
+ self.final_parallel_tasks = final_parallel_tasks
44
+
45
+ def to_dict(self):
46
+ super().to_dict()
47
+ if not self.yaml_file:
48
+ if not (self.tasks or self.params or self.final_parallel_tasks):
49
+ raise ValueError(
50
+ "spec is expected to have at least one of the optional fields, got none"
51
+ )
52
+ self.res["spec"] = {}
53
+ if self.params:
54
+ self.res["spec"]["params"] = self.params
55
+ if self.tasks:
56
+ self.res["spec"]["tasks"] = self.tasks
57
+ if self.final_parallel_tasks:
58
+ self.res["spec"]["finally"] = self.final_parallel_tasks
@@ -325,6 +325,7 @@ class Resource:
325
325
  context=None,
326
326
  label=None,
327
327
  timeout_seconds=TIMEOUT_1MINUTE,
328
+ api_group=None,
328
329
  ):
329
330
  """
330
331
  Create an API resource
@@ -343,8 +344,10 @@ class Resource:
343
344
  context (str): Context name for connecting to remote cluster.
344
345
  timeout_seconds (int): timeout for a get api call, call out be terminated after this many seconds
345
346
  label (dict): Resource labels
347
+ api_group (str): Resource API group; will overwrite API group definition in resource class
346
348
 
347
349
  """
350
+ self.api_group = api_group or self.api_group
348
351
  if not self.api_group and not self.api_version:
349
352
  raise NotImplementedError(
350
353
  "Subclasses of Resource require self.api_group or self.api_version to be defined"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openshift-python-wrapper
3
- Version: 4.13.10
3
+ Version: 4.13.12
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
@@ -92,6 +92,7 @@ ocp_resources/package_manifest.py
92
92
  ocp_resources/peer_authentication.py
93
93
  ocp_resources/persistent_volume.py
94
94
  ocp_resources/persistent_volume_claim.py
95
+ ocp_resources/pipeline.py
95
96
  ocp_resources/pipelineruns.py
96
97
  ocp_resources/plan.py
97
98
  ocp_resources/pod.py
@@ -1 +0,0 @@
1
- 4.13.10