openshift-python-wrapper 10.0.44__tar.gz → 10.0.48__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/PKG-INFO +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/backup.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/catalog_source.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/cluster_claim.py +2 -3
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/cluster_deployment.py +0 -2
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/cluster_pool.py +0 -2
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/cluster_role.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/cluster_role_binding.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/configmap.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/constants.py +11 -8
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/controller_revision.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/cron_job.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/csi_storage_capacity.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/data_import_cron.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/data_source.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/datavolume.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/endpoint_slice.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/endpoints.py +3 -2
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/group.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/hook.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/host.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/hostpath_provisioner.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/hyperconverged.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/image_content_source_policy.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/image_digest_mirror_set.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/image_stream.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/ip_address_pool.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/job.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/kube_descheduler.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/l2_advertisement.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/lease.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/limit_range.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/machine_config_pool.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/machine_health_check.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/machine_set.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/metallb.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/migration.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/migration_policy.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/multi_cluster_observability.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/multi_network_policy.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/network_attachment_definition.py +18 -7
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/network_map.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/node_health_check.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/node_maintenance.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/node_network_configuration_policy.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/node_network_state.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/ocs_initialization.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/operator_group.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/operator_source.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/performance_profile.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/persistent_volume_claim.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/pipeline.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/pipelineruns.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/plan.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/pod_disruption_budget.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/priority_class.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/provider.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/resource.py +228 -167
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/resource_quota.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/restore.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/role.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/role_binding.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/route.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/sealed_secret.py +1 -3
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/secret.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/service_account.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/sriov_network.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/sriov_network_node_policy.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/storage_class.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/storage_map.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/subscription.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/task_run.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/upload_token_request.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/virtual_machine.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/virtual_machine_clone.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/virtual_machine_export.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/virtual_machine_import.py +2 -2
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/virtual_machine_instance_migration.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/virtual_machine_migration_resource_quota.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/virtual_machine_restore.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/virtual_machine_snapshot.py +1 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/pyproject.toml +11 -1
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/LICENSE +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/README.md +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/__init__.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/aaq.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/api_server.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/api_service.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/benchmark.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/cdi.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/cdi_config.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/chaos_engine.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/chaos_result.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/cluster_operator.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/cluster_service_version.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/cluster_version.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/console_cli_download.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/console_plugin.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/console_quick_start.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/csidriver.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/custom_resource_definition.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/daemonset.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/deployment.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/destination_rule.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/dns.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/event.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/forklift_controller.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/gateway.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/image.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/imagestreamtag.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/infrastructure.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/installplan.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/kubevirt.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/kubevirt_common_templates_bundle.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/kubevirt_metrics_aggregation.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/kubevirt_node_labeller_bundle.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/kubevirt_template_validaotr.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/machine.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/machine_config.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/managed_cluster.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/mtq.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/mtv.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/multi_cluster_hub.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/mutating_webhook_config.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/namespace.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/network.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/network_addons_config.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/network_policy.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/nmstate.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/node.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/node_network_configuration_enactment.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/oauth.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/operator.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/operator_condition.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/operator_hub.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/package_manifest.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/peer_authentication.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/persistent_volume.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/pod.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/pod_metrics.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/project.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/prometheus.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/prometheus_rule.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/replicaset.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/rhmi.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/scheduler.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/security_context_constraints.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/service.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/service_mesh_control_plane.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/service_mesh_member_roll.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/service_monitor.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/sriov_network_node_state.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/ssp.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/storage_profile.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/tekton_tasks.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/template.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/utils.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/validating_webhook_config.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/virtual_machine_Instance_replica_set.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/virtual_machine_cluster_instance_types.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/virtual_machine_cluster_preferences.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/virtual_machine_instance.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/virtual_machine_instance_preset.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/virtual_machine_instance_types.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/virtual_machine_preferences.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/virtual_service.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/vm_import_config.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/volume_snapshot.py +0 -0
- {openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/volume_snapshot_class.py +0 -0
|
@@ -33,7 +33,7 @@ class CatalogSource(NamespacedResource):
|
|
|
33
33
|
self.publisher = publisher
|
|
34
34
|
self.update_strategy_registry_poll_interval = update_strategy_registry_poll_interval
|
|
35
35
|
|
|
36
|
-
def to_dict(self):
|
|
36
|
+
def to_dict(self) -> None:
|
|
37
37
|
super().to_dict()
|
|
38
38
|
if not self.yaml_file:
|
|
39
39
|
if not all([self.source_type, self.image, self.display_name, self.publisher]):
|
{openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/cluster_claim.py
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
from typing import Any
|
|
1
|
+
from typing import Any
|
|
2
|
+
|
|
2
3
|
from ocp_resources.resource import NamespacedResource
|
|
3
4
|
|
|
4
5
|
|
|
@@ -22,8 +23,6 @@ class ClusterClaim(NamespacedResource):
|
|
|
22
23
|
self.cluster_pool_name = cluster_pool_name
|
|
23
24
|
|
|
24
25
|
def to_dict(self) -> None:
|
|
25
|
-
self.res: Dict[str, Any]
|
|
26
|
-
|
|
27
26
|
super().to_dict()
|
|
28
27
|
if not self.yaml_file and self.cluster_pool_name:
|
|
29
28
|
self.res.setdefault("spec", {})["clusterPoolName"] = self.cluster_pool_name
|
{openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/constants.py
RENAMED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import Dict, List
|
|
1
4
|
from kubernetes.dynamic.exceptions import (
|
|
2
5
|
ForbiddenError,
|
|
3
6
|
InternalServerError,
|
|
@@ -6,7 +9,7 @@ from kubernetes.dynamic.exceptions import (
|
|
|
6
9
|
)
|
|
7
10
|
from urllib3.exceptions import MaxRetryError, ProtocolError
|
|
8
11
|
|
|
9
|
-
DEFAULT_CLUSTER_RETRY_EXCEPTIONS = {
|
|
12
|
+
DEFAULT_CLUSTER_RETRY_EXCEPTIONS: Dict[type[Exception], List[str]] = {
|
|
10
13
|
MaxRetryError: [],
|
|
11
14
|
ConnectionAbortedError: [],
|
|
12
15
|
ConnectionResetError: [],
|
|
@@ -19,11 +22,11 @@ DEFAULT_CLUSTER_RETRY_EXCEPTIONS = {
|
|
|
19
22
|
ServerTimeoutError: [],
|
|
20
23
|
ForbiddenError: ["context deadline exceeded"],
|
|
21
24
|
}
|
|
22
|
-
PROTOCOL_ERROR_EXCEPTION_DICT = {ProtocolError: []}
|
|
23
|
-
NOT_FOUND_ERROR_EXCEPTION_DICT = {NotFoundError: []}
|
|
25
|
+
PROTOCOL_ERROR_EXCEPTION_DICT: Dict[type[Exception], List[str]] = {ProtocolError: []}
|
|
26
|
+
NOT_FOUND_ERROR_EXCEPTION_DICT: Dict[type[Exception], List[str]] = {NotFoundError: []}
|
|
24
27
|
|
|
25
|
-
TIMEOUT_10SEC = 10
|
|
26
|
-
TIMEOUT_1MINUTE = 60
|
|
27
|
-
TIMEOUT_2MINUTES = 2 * 60
|
|
28
|
-
TIMEOUT_4MINUTES = 4 * 60
|
|
29
|
-
TIMEOUT_10MINUTES = 10 * 60
|
|
28
|
+
TIMEOUT_10SEC: int = 10
|
|
29
|
+
TIMEOUT_1MINUTE: int = 60
|
|
30
|
+
TIMEOUT_2MINUTES: int = 2 * 60
|
|
31
|
+
TIMEOUT_4MINUTES: int = 4 * 60
|
|
32
|
+
TIMEOUT_10MINUTES: int = 10 * 60
|
{openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/cron_job.py
RENAMED
|
@@ -44,7 +44,7 @@ class CronJob(NamespacedResource):
|
|
|
44
44
|
self.failed_jobs_history_limit = failed_jobs_history_limit
|
|
45
45
|
self.starting_deadline_seconds = starting_deadline_seconds
|
|
46
46
|
|
|
47
|
-
def to_dict(self):
|
|
47
|
+
def to_dict(self) -> None:
|
|
48
48
|
super().to_dict()
|
|
49
49
|
if not self.yaml_file:
|
|
50
50
|
if not (self.job_template and self.schedule):
|
|
@@ -32,7 +32,7 @@ class CSIStorageCapacity(NamespacedResource):
|
|
|
32
32
|
self.storage_class_name = storage_class_name
|
|
33
33
|
self.maximum_volume_size = maximum_volume_size
|
|
34
34
|
|
|
35
|
-
def to_dict(self):
|
|
35
|
+
def to_dict(self) -> None:
|
|
36
36
|
super().to_dict()
|
|
37
37
|
if not self.yaml_file:
|
|
38
38
|
if not self.storage_class_name:
|
|
@@ -53,7 +53,7 @@ class DataImportCron(NamespacedResource):
|
|
|
53
53
|
self.imports_to_keep = imports_to_keep
|
|
54
54
|
self.bind_immediate_annotation = bind_immediate_annotation
|
|
55
55
|
|
|
56
|
-
def to_dict(self):
|
|
56
|
+
def to_dict(self) -> None:
|
|
57
57
|
super().to_dict()
|
|
58
58
|
if not self.yaml_file:
|
|
59
59
|
if self.image_stream and self.url:
|
{openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/datavolume.py
RENAMED
|
@@ -153,7 +153,7 @@ class DataVolume(NamespacedResource):
|
|
|
153
153
|
self.api_name = api_name
|
|
154
154
|
self.delete_after_completion = delete_after_completion
|
|
155
155
|
|
|
156
|
-
def to_dict(self):
|
|
156
|
+
def to_dict(self) -> None:
|
|
157
157
|
super().to_dict()
|
|
158
158
|
if not self.yaml_file:
|
|
159
159
|
self.res.update({
|
{openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/endpoints.py
RENAMED
|
@@ -48,11 +48,12 @@ class Endpoints(NamespacedResource):
|
|
|
48
48
|
self.addresses = addresses
|
|
49
49
|
self.ports = ports
|
|
50
50
|
|
|
51
|
-
def to_dict(self):
|
|
51
|
+
def to_dict(self) -> None:
|
|
52
52
|
super().to_dict()
|
|
53
53
|
if not self.yaml_file:
|
|
54
54
|
if not (self.addresses and self.ports):
|
|
55
|
-
raise MissingRequiredArgumentError(
|
|
55
|
+
raise MissingRequiredArgumentError(argument="'addresses' and 'ports")
|
|
56
|
+
|
|
56
57
|
self.res.update({
|
|
57
58
|
"subsets": {
|
|
58
59
|
"addresses": self.addresses,
|
|
@@ -43,7 +43,7 @@ class Host(NamespacedResource, MTV):
|
|
|
43
43
|
self.secret_namespace = secret_namespace or self.namespace
|
|
44
44
|
self.condition_message_ready = self.ConditionMessage.HOST_READY
|
|
45
45
|
|
|
46
|
-
def to_dict(self):
|
|
46
|
+
def to_dict(self) -> None:
|
|
47
47
|
super().to_dict()
|
|
48
48
|
if not self.yaml_file:
|
|
49
49
|
self.res.update({
|
|
@@ -23,7 +23,7 @@ class ImageContentSourcePolicy(Resource):
|
|
|
23
23
|
self.repository_digest_mirrors = repository_digest_mirrors
|
|
24
24
|
super().__init__(**kwargs)
|
|
25
25
|
|
|
26
|
-
def to_dict(self):
|
|
26
|
+
def to_dict(self) -> None:
|
|
27
27
|
super().to_dict()
|
|
28
28
|
if not self.yaml_file:
|
|
29
29
|
if not self.repository_digest_mirrors:
|
|
@@ -63,7 +63,7 @@ class Job(NamespacedResource):
|
|
|
63
63
|
self.containers = containers
|
|
64
64
|
self.background_propagation_policy = background_propagation_policy
|
|
65
65
|
|
|
66
|
-
def to_dict(self):
|
|
66
|
+
def to_dict(self) -> None:
|
|
67
67
|
super().to_dict()
|
|
68
68
|
if not self.yaml_file:
|
|
69
69
|
self.res.setdefault("spec", {})
|
|
@@ -40,7 +40,7 @@ class L2Advertisement(NamespacedResource):
|
|
|
40
40
|
self.ip_address_pools = ip_address_pools
|
|
41
41
|
self.ip_address_pools_selectors = ip_address_pools_selectors
|
|
42
42
|
|
|
43
|
-
def to_dict(self):
|
|
43
|
+
def to_dict(self) -> None:
|
|
44
44
|
super().to_dict()
|
|
45
45
|
if not self.yaml_file:
|
|
46
46
|
self.res["spec"] = {}
|
|
@@ -45,7 +45,7 @@ class MachineHealthCheck(NamespacedResource):
|
|
|
45
45
|
self.unhealthy_timeout = unhealthy_timeout
|
|
46
46
|
self.reboot_strategy = reboot_strategy
|
|
47
47
|
|
|
48
|
-
def to_dict(self):
|
|
48
|
+
def to_dict(self) -> None:
|
|
49
49
|
super().to_dict()
|
|
50
50
|
if not self.yaml_file:
|
|
51
51
|
if self.reboot_strategy:
|
{openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/machine_set.py
RENAMED
|
@@ -77,7 +77,7 @@ class MachineSet(NamespacedResource):
|
|
|
77
77
|
self.machine_type = machine_type
|
|
78
78
|
self.provider_spec = provider_spec or {}
|
|
79
79
|
|
|
80
|
-
def to_dict(self):
|
|
80
|
+
def to_dict(self) -> None:
|
|
81
81
|
super().to_dict()
|
|
82
82
|
if not self.yaml_file:
|
|
83
83
|
_spec, _metadata, _labels = ("spec", "metadata", "labels")
|
{openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/migration.py
RENAMED
|
@@ -43,7 +43,7 @@ class Migration(NamespacedResource, MTV):
|
|
|
43
43
|
self.cut_over = cut_over
|
|
44
44
|
self.condition_message_succeeded = self.ConditionMessage.MIGRATION_SUCCEEDED
|
|
45
45
|
|
|
46
|
-
def to_dict(self):
|
|
46
|
+
def to_dict(self) -> None:
|
|
47
47
|
super().to_dict()
|
|
48
48
|
if not self.yaml_file:
|
|
49
49
|
self.res.update({
|
|
@@ -38,7 +38,7 @@ class MigrationPolicy(Resource):
|
|
|
38
38
|
self.namespace_selector = namespace_selector or {}
|
|
39
39
|
self.vmi_selector = vmi_selector or {}
|
|
40
40
|
|
|
41
|
-
def to_dict(self):
|
|
41
|
+
def to_dict(self) -> None:
|
|
42
42
|
super().to_dict()
|
|
43
43
|
if not self.yaml_file:
|
|
44
44
|
spec = self.res.setdefault("spec", {})
|
|
@@ -37,7 +37,7 @@ class MultiClusterObservability(Resource):
|
|
|
37
37
|
self.image_pull_policy = image_pull_policy
|
|
38
38
|
self.image_pull_secret = image_pull_secret
|
|
39
39
|
|
|
40
|
-
def to_dict(self):
|
|
40
|
+
def to_dict(self) -> None:
|
|
41
41
|
super().to_dict()
|
|
42
42
|
if not self.yaml_file:
|
|
43
43
|
if not self.metric_object_storage:
|
|
@@ -47,7 +47,7 @@ class NetworkAttachmentDefinition(NamespacedResource):
|
|
|
47
47
|
self.cni_version = cni_version
|
|
48
48
|
self.config = config
|
|
49
49
|
|
|
50
|
-
def to_dict(self):
|
|
50
|
+
def to_dict(self) -> None:
|
|
51
51
|
super().to_dict()
|
|
52
52
|
if not self.yaml_file:
|
|
53
53
|
if self.resource_name is not None:
|
|
@@ -97,7 +97,7 @@ class BridgeNetworkAttachmentDefinition(NetworkAttachmentDefinition):
|
|
|
97
97
|
self.macspoofchk = macspoofchk
|
|
98
98
|
self.add_resource_name = add_resource_name
|
|
99
99
|
|
|
100
|
-
def to_dict(self):
|
|
100
|
+
def to_dict(self) -> None:
|
|
101
101
|
super().to_dict()
|
|
102
102
|
spec_config = self.res["spec"]["config"]
|
|
103
103
|
spec_config["name"] = self.bridge_name
|
|
@@ -148,7 +148,7 @@ class LinuxBridgeNetworkAttachmentDefinition(BridgeNetworkAttachmentDefinition):
|
|
|
148
148
|
)
|
|
149
149
|
self.tuning_type = tuning_type
|
|
150
150
|
|
|
151
|
-
def to_dict(self):
|
|
151
|
+
def to_dict(self) -> None:
|
|
152
152
|
super().to_dict()
|
|
153
153
|
if self.tuning_type:
|
|
154
154
|
self.old_nad_format = True
|
|
@@ -188,7 +188,7 @@ class OvsBridgeNetworkAttachmentDefinition(BridgeNetworkAttachmentDefinition):
|
|
|
188
188
|
cni_version=cni_version,
|
|
189
189
|
)
|
|
190
190
|
|
|
191
|
-
def to_dict(self):
|
|
191
|
+
def to_dict(self) -> None:
|
|
192
192
|
super().to_dict()
|
|
193
193
|
self.res["spec"]["config"] = json.dumps(self.res["spec"]["config"])
|
|
194
194
|
|
|
@@ -202,6 +202,8 @@ class OVNOverlayNetworkAttachmentDefinition(NetworkAttachmentDefinition):
|
|
|
202
202
|
self,
|
|
203
203
|
network_name=None,
|
|
204
204
|
topology=None,
|
|
205
|
+
vlan=None,
|
|
206
|
+
mtu=None,
|
|
205
207
|
**kwargs,
|
|
206
208
|
):
|
|
207
209
|
"""
|
|
@@ -211,8 +213,11 @@ class OVNOverlayNetworkAttachmentDefinition(NetworkAttachmentDefinition):
|
|
|
211
213
|
https://docs.openshift.com/container-platform/4.14/networking/multiple_networks/configuring-additional-network.html#configuration-ovnk-additional-networks_configuring-additional-network
|
|
212
214
|
|
|
213
215
|
Args:
|
|
214
|
-
network_name (str): The name of the network
|
|
215
|
-
|
|
216
|
+
network_name (str, optional): The name of the network, used to connect
|
|
217
|
+
resources created in different namespaces to the same network.
|
|
218
|
+
vlan (int, optional): A vlan tag ID that will be assigned to traffic from this
|
|
219
|
+
additional network.
|
|
220
|
+
mtu (str, optional): The maximum transmission unit (MTU).
|
|
216
221
|
topology (str): The secondary network topology to be created.
|
|
217
222
|
"""
|
|
218
223
|
super().__init__(
|
|
@@ -221,14 +226,20 @@ class OVNOverlayNetworkAttachmentDefinition(NetworkAttachmentDefinition):
|
|
|
221
226
|
)
|
|
222
227
|
self.network_name = network_name
|
|
223
228
|
self.topology = topology
|
|
229
|
+
self.vlan = vlan
|
|
230
|
+
self.mtu = mtu
|
|
224
231
|
|
|
225
|
-
def to_dict(self):
|
|
232
|
+
def to_dict(self) -> None:
|
|
226
233
|
super().to_dict()
|
|
227
234
|
if not self.yaml_file:
|
|
228
235
|
if not self.network_name and not self.topology:
|
|
229
236
|
raise MissingRequiredArgumentError(argument="'network_name' and 'topology'")
|
|
230
237
|
|
|
231
238
|
spec_config = self.res["spec"]["config"]
|
|
239
|
+
if self.vlan:
|
|
240
|
+
spec_config["vlanID"] = self.vlan
|
|
241
|
+
if self.mtu:
|
|
242
|
+
spec_config["mtu"] = self.mtu
|
|
232
243
|
spec_config["name"] = self.network_name
|
|
233
244
|
spec_config["topology"] = self.topology
|
|
234
245
|
spec_config["netAttachDefName"] = f"{self.namespace}/{self.name}"
|
{openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/network_map.py
RENAMED
|
@@ -58,7 +58,7 @@ class NetworkMap(NamespacedResource, MTV):
|
|
|
58
58
|
self.destination_provider_namespace = destination_provider_namespace
|
|
59
59
|
self.condition_message_ready = self.ConditionMessage.NETWORK_MAP_READY
|
|
60
60
|
|
|
61
|
-
def to_dict(self):
|
|
61
|
+
def to_dict(self) -> None:
|
|
62
62
|
super().to_dict()
|
|
63
63
|
if not self.yaml_file:
|
|
64
64
|
self.res.update(self.map_to_dict)
|
|
@@ -48,7 +48,7 @@ class NodeHealthCheck(Resource):
|
|
|
48
48
|
self.escalating_remediation = escalating_remediation
|
|
49
49
|
self.remediation_template = remediation_template
|
|
50
50
|
|
|
51
|
-
def to_dict(self):
|
|
51
|
+
def to_dict(self) -> None:
|
|
52
52
|
super().to_dict()
|
|
53
53
|
if not self.yaml_file:
|
|
54
54
|
if not (self.selector_match_expressions or self.selector_match_labels):
|
|
@@ -129,7 +129,7 @@ class NodeNetworkConfigurationPolicy(Resource):
|
|
|
129
129
|
self.desired_state["interfaces"] = interfaces
|
|
130
130
|
self.res.setdefault("spec", {}).setdefault("desiredState", {})["interfaces"] = self.desired_state["interfaces"]
|
|
131
131
|
|
|
132
|
-
def to_dict(self):
|
|
132
|
+
def to_dict(self) -> None:
|
|
133
133
|
super().to_dict()
|
|
134
134
|
if not self.yaml_file:
|
|
135
135
|
if self.dns_resolver or self.routes or self.iface:
|
|
@@ -31,7 +31,7 @@ class OperatorGroup(NamespacedResource):
|
|
|
31
31
|
)
|
|
32
32
|
self.target_namespaces = target_namespaces
|
|
33
33
|
|
|
34
|
-
def to_dict(self):
|
|
34
|
+
def to_dict(self) -> None:
|
|
35
35
|
super().to_dict()
|
|
36
36
|
if not self.yaml_file:
|
|
37
37
|
self.res.update({"spec": {"targetNamespaces": self.target_namespaces}})
|
|
@@ -51,7 +51,7 @@ class PerformanceProfile(Resource):
|
|
|
51
51
|
self.real_time_kernel = real_time_kernel
|
|
52
52
|
self.workload_hints = workload_hints
|
|
53
53
|
|
|
54
|
-
def to_dict(self):
|
|
54
|
+
def to_dict(self) -> None:
|
|
55
55
|
super().to_dict()
|
|
56
56
|
if not self.yaml_file:
|
|
57
57
|
if not self.cpu and not self.node_selector:
|
{openshift_python_wrapper-10.0.44 → openshift_python_wrapper-10.0.48}/ocp_resources/pipeline.py
RENAMED
|
@@ -42,7 +42,7 @@ class Pipeline(NamespacedResource):
|
|
|
42
42
|
self.params = params
|
|
43
43
|
self.final_parallel_tasks = final_parallel_tasks
|
|
44
44
|
|
|
45
|
-
def to_dict(self):
|
|
45
|
+
def to_dict(self) -> None:
|
|
46
46
|
super().to_dict()
|
|
47
47
|
if not self.yaml_file:
|
|
48
48
|
if not (self.tasks or self.params or self.final_parallel_tasks):
|