openshift-python-wrapper 4.13.1__tar.gz → 4.13.3__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.1 → openshift-python-wrapper-4.13.3}/PKG-INFO +5 -7
- openshift-python-wrapper-4.13.3/VERSION +1 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/chaos_engine.py +0 -1
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/constants.py +0 -1
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/event.py +0 -1
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/logger.py +0 -1
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/machine_set.py +0 -1
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/migration_policy.py +0 -1
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/network_attachment_definition.py +0 -1
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/node_network_state.py +0 -2
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/resource.py +0 -2
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/role_binding.py +0 -1
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/utils.py +0 -1
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/openshift_python_wrapper.egg-info/PKG-INFO +5 -7
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/openshift_python_wrapper.egg-info/SOURCES.txt +2 -5
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/openshift_python_wrapper.egg-info/top_level.txt +0 -1
- openshift-python-wrapper-4.13.3/pyproject.toml +63 -0
- openshift-python-wrapper-4.13.3/setup.cfg +4 -0
- openshift-python-wrapper-4.13.1/pyproject.toml +0 -2
- openshift-python-wrapper-4.13.1/setup.cfg +0 -21
- openshift-python-wrapper-4.13.1/setup.py +0 -21
- openshift-python-wrapper-4.13.1/tests/__init__.py +0 -0
- openshift-python-wrapper-4.13.1/tests/utils.py +0 -45
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/LICENSE +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/README.md +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/__init__.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/api_server.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/api_service.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/backup.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/benchmark.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/catalog_source.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/catalog_source_config.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/cdi.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/cdi_config.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/chaos_result.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/cluster_operator.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/cluster_role.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/cluster_role_binding.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/cluster_service_version.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/cluster_version.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/configmap.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/console_cli_download.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/console_plugin.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/console_quick_start.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/controller_revision.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/csidriver.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/custom_resource_definition.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/daemonset.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/data_import_cron.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/data_source.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/datavolume.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/deployment.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/destination_rule.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/endpoints.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/forklift_controller.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/gateway.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/hook.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/host.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/hostpath_provisioner.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/hyperconverged.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/image.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/image_content_source_policy.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/image_stream.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/imagestreamtag.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/infrastructure.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/installplan.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/ip_address_pool.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/job.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/kube_descheduler.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/kubevirt.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/kubevirt_common_templates_bundle.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/kubevirt_metrics_aggregation.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/kubevirt_node_labeller_bundle.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/kubevirt_template_validaotr.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/l2_advertisement.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/machine.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/machine_config.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/machine_config_pool.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/machine_health_check.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/metallb.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/migration.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/mtv.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/mutating_webhook_config.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/namespace.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/network.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/network_addons_config.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/network_map.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/network_policy.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/nmstate.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/node.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/node_health_check.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/node_maintenance.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/node_network_configuration_enactment.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/node_network_configuration_policy.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/oauth.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/operator_condition.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/operator_group.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/operator_hub.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/operator_source.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/package_manifest.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/peer_authentication.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/persistent_volume.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/persistent_volume_claim.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/pipelineruns.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/plan.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/pod.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/pod_disruption_budget.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/priority_class.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/project.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/prometheus.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/prometheus_rule.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/provider.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/replicaset.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/restore.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/role.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/route.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/scheduler.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/secret.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/security_context_constraints.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/service.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/service_account.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/service_mesh_control_plane.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/service_mesh_member_roll.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/service_monitor.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/sriov_network.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/sriov_network_node_policy.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/sriov_network_node_state.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/ssp.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/storage_class.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/storage_map.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/storage_profile.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/subscription.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/tekton_tasks.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/template.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/upload_token_request.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/validating_webhook_config.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_Instance_replica_set.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_cluster_instance_types.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_cluster_preferences.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_export.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_import.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_instance.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_instance_migration.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_instance_preset.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_instance_types.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_preferences.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_restore.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_snapshot.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_service.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/vm_import_config.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/volume_snapshot.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/volume_snapshot_class.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/openshift_python_wrapper.egg-info/dependency_links.txt +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/openshift_python_wrapper.egg-info/requires.txt +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/tests/test_resources.py +0 -0
- {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/tests/test_validate_resources.py +0 -0
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: openshift-python-wrapper
|
|
3
|
-
Version: 4.13.
|
|
3
|
+
Version: 4.13.3
|
|
4
4
|
Summary: Wrapper around https://github.com/openshift/openshift-restclient-python
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Author-email: myakove@redhat.com
|
|
9
|
-
License: apache-2.0
|
|
5
|
+
Author-email: Meni Yakove <myakove@gmail.com>, Ruth Netser <rnetser@gmail.com>
|
|
6
|
+
Project-URL: Homepage, https://github.com/RedHatQE/openshift-python-wrapper
|
|
7
|
+
Project-URL: Download, https://pypi.org/project/openshift-python-wrapper/
|
|
10
8
|
Project-URL: Bug Tracker, https://github.com/RedHatQE/openshift-python-wrapper/issues
|
|
11
9
|
Project-URL: Documentation, https://openshift-python-wrapper.readthedocs.io/en/latest/
|
|
12
10
|
Keywords: Openshift,Kubevirt,CNV
|
|
13
11
|
Classifier: Programming Language :: Python :: 3
|
|
14
12
|
Classifier: Operating System :: OS Independent
|
|
15
|
-
Requires-Python: >=3.
|
|
13
|
+
Requires-Python: >=3.7
|
|
16
14
|
Description-Content-Type: text/markdown
|
|
17
15
|
License-File: LICENSE
|
|
18
16
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4.13.3
|
|
@@ -6,7 +6,6 @@ from ocp_resources.constants import TIMEOUT_4MINUTES
|
|
|
6
6
|
from ocp_resources.resource import Resource
|
|
7
7
|
from ocp_resources.utils import TimeoutSampler
|
|
8
8
|
|
|
9
|
-
|
|
10
9
|
SLEEP = 1
|
|
11
10
|
|
|
12
11
|
|
|
@@ -34,7 +33,6 @@ class NodeNetworkState(Resource):
|
|
|
34
33
|
self.desired_state = status.get("desiredState", {"interfaces": []})
|
|
35
34
|
|
|
36
35
|
def set_interface(self, interface):
|
|
37
|
-
|
|
38
36
|
# First drop the interface is's already in the list
|
|
39
37
|
interfaces = [
|
|
40
38
|
iface
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/resource.py
RENAMED
|
@@ -29,7 +29,6 @@ from ocp_resources.utils import (
|
|
|
29
29
|
skip_existing_resource_creation_teardown,
|
|
30
30
|
)
|
|
31
31
|
|
|
32
|
-
|
|
33
32
|
LOGGER = get_logger(__name__)
|
|
34
33
|
MAX_SUPPORTED_API_VERSION = "v2"
|
|
35
34
|
|
|
@@ -752,7 +751,6 @@ class Resource:
|
|
|
752
751
|
def retry_cluster_exceptions(
|
|
753
752
|
func, exceptions_dict=DEFAULT_CLUSTER_RETRY_EXCEPTIONS, **kwargs
|
|
754
753
|
):
|
|
755
|
-
|
|
756
754
|
sampler = TimeoutSampler(
|
|
757
755
|
wait_timeout=10,
|
|
758
756
|
sleep=1,
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: openshift-python-wrapper
|
|
3
|
-
Version: 4.13.
|
|
3
|
+
Version: 4.13.3
|
|
4
4
|
Summary: Wrapper around https://github.com/openshift/openshift-restclient-python
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Author-email: myakove@redhat.com
|
|
9
|
-
License: apache-2.0
|
|
5
|
+
Author-email: Meni Yakove <myakove@gmail.com>, Ruth Netser <rnetser@gmail.com>
|
|
6
|
+
Project-URL: Homepage, https://github.com/RedHatQE/openshift-python-wrapper
|
|
7
|
+
Project-URL: Download, https://pypi.org/project/openshift-python-wrapper/
|
|
10
8
|
Project-URL: Bug Tracker, https://github.com/RedHatQE/openshift-python-wrapper/issues
|
|
11
9
|
Project-URL: Documentation, https://openshift-python-wrapper.readthedocs.io/en/latest/
|
|
12
10
|
Keywords: Openshift,Kubevirt,CNV
|
|
13
11
|
Classifier: Programming Language :: Python :: 3
|
|
14
12
|
Classifier: Operating System :: OS Independent
|
|
15
|
-
Requires-Python: >=3.
|
|
13
|
+
Requires-Python: >=3.7
|
|
16
14
|
Description-Content-Type: text/markdown
|
|
17
15
|
License-File: LICENSE
|
|
18
16
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
LICENSE
|
|
2
2
|
README.md
|
|
3
|
+
VERSION
|
|
3
4
|
pyproject.toml
|
|
4
|
-
setup.cfg
|
|
5
|
-
setup.py
|
|
6
5
|
ocp_resources/__init__.py
|
|
7
6
|
ocp_resources/api_server.py
|
|
8
7
|
ocp_resources/api_service.py
|
|
@@ -147,7 +146,5 @@ openshift_python_wrapper.egg-info/SOURCES.txt
|
|
|
147
146
|
openshift_python_wrapper.egg-info/dependency_links.txt
|
|
148
147
|
openshift_python_wrapper.egg-info/requires.txt
|
|
149
148
|
openshift_python_wrapper.egg-info/top_level.txt
|
|
150
|
-
tests/__init__.py
|
|
151
149
|
tests/test_resources.py
|
|
152
|
-
tests/test_validate_resources.py
|
|
153
|
-
tests/utils.py
|
|
150
|
+
tests/test_validate_resources.py
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
[tool.black]
|
|
2
|
+
line-length = 88
|
|
3
|
+
target_version = ['py37', 'py38', 'py39', 'py310', "py311"]
|
|
4
|
+
exclude = '''
|
|
5
|
+
(
|
|
6
|
+
/(
|
|
7
|
+
| \.git
|
|
8
|
+
| \.venv
|
|
9
|
+
| \.mypy_cache
|
|
10
|
+
| \.tox
|
|
11
|
+
)/
|
|
12
|
+
)
|
|
13
|
+
'''
|
|
14
|
+
|
|
15
|
+
[tool.isort]
|
|
16
|
+
line_length = 88
|
|
17
|
+
profile = "black"
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
[build-system]
|
|
21
|
+
requires = ["setuptools>=61.2"]
|
|
22
|
+
build-backend = "setuptools.build_meta"
|
|
23
|
+
|
|
24
|
+
[project]
|
|
25
|
+
name = "openshift-python-wrapper"
|
|
26
|
+
authors = [
|
|
27
|
+
{name = "Meni Yakove", email = "myakove@gmail.com"},
|
|
28
|
+
{name = "Ruth Netser", email = "rnetser@gmail.com"}
|
|
29
|
+
]
|
|
30
|
+
description = "Wrapper around https://github.com/openshift/openshift-restclient-python"
|
|
31
|
+
classifiers = [
|
|
32
|
+
"Programming Language :: Python :: 3",
|
|
33
|
+
"Operating System :: OS Independent",
|
|
34
|
+
]
|
|
35
|
+
requires-python = ">=3.7"
|
|
36
|
+
keywords = ["Openshift", "Kubevirt", "CNV"]
|
|
37
|
+
dependencies = [
|
|
38
|
+
"openshift",
|
|
39
|
+
"xmltodict",
|
|
40
|
+
"urllib3",
|
|
41
|
+
"colorlog",
|
|
42
|
+
"packaging",
|
|
43
|
+
]
|
|
44
|
+
dynamic = ["version"]
|
|
45
|
+
# ...
|
|
46
|
+
[tool.setuptools.dynamic]
|
|
47
|
+
version = {file = "VERSION"}
|
|
48
|
+
|
|
49
|
+
[project.readme]
|
|
50
|
+
file = "README.md"
|
|
51
|
+
content-type = "text/markdown"
|
|
52
|
+
|
|
53
|
+
[project.urls]
|
|
54
|
+
Homepage = "https://github.com/RedHatQE/openshift-python-wrapper"
|
|
55
|
+
Download = "https://pypi.org/project/openshift-python-wrapper/"
|
|
56
|
+
"Bug Tracker" = "https://github.com/RedHatQE/openshift-python-wrapper/issues"
|
|
57
|
+
Documentation = "https://openshift-python-wrapper.readthedocs.io/en/latest/"
|
|
58
|
+
|
|
59
|
+
[tool.setuptools]
|
|
60
|
+
include-package-data = true
|
|
61
|
+
|
|
62
|
+
[tool.setuptools.packages.find]
|
|
63
|
+
include = ["ocp_resources"]
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
[metadata]
|
|
2
|
-
name = openshift-python-wrapper
|
|
3
|
-
version = 4.13.1
|
|
4
|
-
author = Meni Yakove, Ruth Netser
|
|
5
|
-
author_email = myakove@redhat.com
|
|
6
|
-
description = Wrapper around https://github.com/openshift/openshift-restclient-python
|
|
7
|
-
long_description = file: README.md
|
|
8
|
-
long_description_content_type = text/markdown
|
|
9
|
-
url = https://github.com/RedHatQE/openshift-python-wrapper
|
|
10
|
-
download_url = https://github.com/RedHatQE/openshift-python-wrapper/archive/refs/tags/v4.13.1.tar.gz
|
|
11
|
-
project_urls =
|
|
12
|
-
Bug Tracker = https://github.com/RedHatQE/openshift-python-wrapper/issues
|
|
13
|
-
Documentation = https://openshift-python-wrapper.readthedocs.io/en/latest/
|
|
14
|
-
classifiers =
|
|
15
|
-
Programming Language :: Python :: 3
|
|
16
|
-
Operating System :: OS Independent
|
|
17
|
-
|
|
18
|
-
[egg_info]
|
|
19
|
-
tag_build =
|
|
20
|
-
tag_date = 0
|
|
21
|
-
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#! /usr/bin/python
|
|
2
|
-
# -*- coding: utf-8 -*-
|
|
3
|
-
|
|
4
|
-
from setuptools import find_packages, setup
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
setup(
|
|
8
|
-
name="openshift-python-wrapper",
|
|
9
|
-
license="apache-2.0",
|
|
10
|
-
keywords=["Openshift", "Kubevirt", "CNV"],
|
|
11
|
-
packages=find_packages(),
|
|
12
|
-
include_package_data=True,
|
|
13
|
-
install_requires=[
|
|
14
|
-
"openshift",
|
|
15
|
-
"xmltodict",
|
|
16
|
-
"urllib3",
|
|
17
|
-
"colorlog",
|
|
18
|
-
"packaging",
|
|
19
|
-
],
|
|
20
|
-
python_requires=">=3.6",
|
|
21
|
-
)
|
|
File without changes
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import re
|
|
2
|
-
|
|
3
|
-
import jinja2
|
|
4
|
-
import yaml
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class MissingTemplateVariables(Exception):
|
|
8
|
-
def __init__(self, var, template):
|
|
9
|
-
self.var = var
|
|
10
|
-
self.template = template
|
|
11
|
-
|
|
12
|
-
def __str__(self):
|
|
13
|
-
return f"Missing variables {self.var} for template {self.template}"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
def generate_yaml_from_template(**kwargs):
|
|
17
|
-
"""
|
|
18
|
-
Generate JSON from yaml file_
|
|
19
|
-
|
|
20
|
-
Keyword Args:
|
|
21
|
-
name (str):
|
|
22
|
-
image (str):
|
|
23
|
-
|
|
24
|
-
Returns:
|
|
25
|
-
dict: Generated from template file
|
|
26
|
-
|
|
27
|
-
Raises:
|
|
28
|
-
MissingTemplateVariables: If not all template variables exists
|
|
29
|
-
|
|
30
|
-
Examples:
|
|
31
|
-
generate_yaml_from_template(file_='path/to/file/name', name='vm-name-1')
|
|
32
|
-
"""
|
|
33
|
-
file_ = "tests/manifests/vm.yaml"
|
|
34
|
-
with open(file_, "r") as stream:
|
|
35
|
-
data = stream.read()
|
|
36
|
-
|
|
37
|
-
# Find all template variables
|
|
38
|
-
template_vars = [i.split()[1] for i in re.findall(r"{{ .* }}", data)]
|
|
39
|
-
for var in template_vars:
|
|
40
|
-
if var not in kwargs.keys():
|
|
41
|
-
raise MissingTemplateVariables(var=var, template=file_)
|
|
42
|
-
|
|
43
|
-
template = jinja2.Template(source=data)
|
|
44
|
-
out = template.render(**kwargs)
|
|
45
|
-
return yaml.safe_load(stream=out)
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/__init__.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/api_server.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/api_service.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/benchmark.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/catalog_source.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/cdi_config.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/chaos_result.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/cluster_role.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/cluster_version.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/configmap.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/console_plugin.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/csidriver.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/daemonset.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/data_source.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/datavolume.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/deployment.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/endpoints.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/gateway.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/hyperconverged.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/image_stream.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/imagestreamtag.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/infrastructure.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/installplan.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/ip_address_pool.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/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.1 → openshift-python-wrapper-4.13.3}/ocp_resources/machine.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/machine_config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/metallb.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/migration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/namespace.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/network.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/network_map.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/network_policy.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/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
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/operator_group.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/operator_hub.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/operator_source.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/pipelineruns.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/priority_class.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/project.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/prometheus.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/prometheus_rule.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/provider.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/replicaset.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/restore.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/scheduler.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/service.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/service_account.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/service_monitor.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/sriov_network.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/storage_class.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/storage_map.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/storage_profile.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/subscription.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/tekton_tasks.py
RENAMED
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/template.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine.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
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_service.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/volume_snapshot.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/tests/test_validate_resources.py
RENAMED
|
File without changes
|