openshift-python-wrapper 10.0.27__tar.gz → 10.0.29__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.27 → openshift_python_wrapper-10.0.29}/PKG-INFO +1 -1
- openshift_python_wrapper-10.0.29/ocp_resources/group.py +18 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/network_attachment_definition.py +16 -7
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/resource.py +2 -1
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/pyproject.toml +1 -1
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/LICENSE +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/README.md +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/__init__.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/aaq.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/api_server.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/api_service.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/backup.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/benchmark.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/catalog_source.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/cdi.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/cdi_config.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/chaos_engine.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/chaos_result.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/cluster_operator.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/cluster_role.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/cluster_role_binding.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/cluster_service_version.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/cluster_version.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/configmap.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/console_cli_download.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/console_plugin.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/console_quick_start.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/constants.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/controller_revision.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/cron_job.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/csi_storage_capacity.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/csidriver.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/custom_resource_definition.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/daemonset.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/data_import_cron.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/data_source.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/datavolume.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/deployment.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/destination_rule.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/dns.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/endpoint_slice.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/endpoints.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/event.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/forklift_controller.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/gateway.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/hook.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/host.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/hostpath_provisioner.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/hyperconverged.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/image.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/image_content_source_policy.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/image_digest_mirror_set.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/image_stream.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/imagestreamtag.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/infrastructure.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/installplan.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/ip_address_pool.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/job.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/kube_descheduler.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/kubevirt.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/kubevirt_common_templates_bundle.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/kubevirt_metrics_aggregation.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/kubevirt_node_labeller_bundle.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/kubevirt_template_validaotr.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/l2_advertisement.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/lease.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/limit_range.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/machine.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/machine_config.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/machine_config_pool.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/machine_health_check.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/machine_set.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/managed_cluster.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/metallb.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/migration.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/migration_policy.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/mtq.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/mtv.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/multi_cluster_hub.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/multi_cluster_observability.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/multi_network_policy.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/mutating_webhook_config.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/namespace.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/network.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/network_addons_config.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/network_map.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/network_policy.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/nmstate.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/node.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/node_health_check.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/node_maintenance.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/node_network_configuration_enactment.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/node_network_configuration_policy.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/node_network_state.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/oauth.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/ocs_initialization.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/operator.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/operator_condition.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/operator_group.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/operator_hub.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/operator_source.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/package_manifest.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/peer_authentication.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/performance_profile.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/persistent_volume.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/persistent_volume_claim.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/pipeline.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/pipelineruns.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/plan.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/pod.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/pod_disruption_budget.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/pod_metrics.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/priority_class.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/project.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/prometheus.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/prometheus_rule.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/provider.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/replicaset.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/resource_quota.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/restore.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/rhmi.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/role.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/role_binding.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/route.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/scheduler.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/secret.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/security_context_constraints.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/service.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/service_account.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/service_mesh_control_plane.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/service_mesh_member_roll.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/service_monitor.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/sriov_network.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/sriov_network_node_policy.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/sriov_network_node_state.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/ssp.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/storage_class.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/storage_map.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/storage_profile.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/subscription.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/task_run.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/tekton_tasks.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/template.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/upload_token_request.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/utils.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/validating_webhook_config.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/virtual_machine.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/virtual_machine_Instance_replica_set.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/virtual_machine_clone.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/virtual_machine_cluster_instance_types.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/virtual_machine_cluster_preferences.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/virtual_machine_export.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/virtual_machine_import.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/virtual_machine_instance.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/virtual_machine_instance_migration.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/virtual_machine_instance_preset.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/virtual_machine_instance_types.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/virtual_machine_migration_resource_quota.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/virtual_machine_preferences.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/virtual_machine_restore.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/virtual_machine_snapshot.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/virtual_service.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/vm_import_config.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/volume_snapshot.py +0 -0
- {openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/volume_snapshot_class.py +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from ocp_resources.resource import Resource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Group(Resource):
|
|
5
|
+
api_group = Resource.ApiGroup.USER_OPENSHIFT_IO
|
|
6
|
+
|
|
7
|
+
def __init__(
|
|
8
|
+
self,
|
|
9
|
+
users=None,
|
|
10
|
+
**kwargs,
|
|
11
|
+
):
|
|
12
|
+
super().__init__(**kwargs)
|
|
13
|
+
self.users = users
|
|
14
|
+
|
|
15
|
+
def to_dict(self):
|
|
16
|
+
super().to_dict()
|
|
17
|
+
if (not self.yaml_file) and self.users:
|
|
18
|
+
self.res["users"] = self.users
|
|
@@ -200,8 +200,10 @@ class OvsBridgeNetworkAttachmentDefinition(BridgeNetworkAttachmentDefinition):
|
|
|
200
200
|
class OVNOverlayNetworkAttachmentDefinition(NetworkAttachmentDefinition):
|
|
201
201
|
def __init__(
|
|
202
202
|
self,
|
|
203
|
-
network_name=None,
|
|
204
203
|
topology=None,
|
|
204
|
+
network_name=None,
|
|
205
|
+
vlan=None,
|
|
206
|
+
mtu=None,
|
|
205
207
|
**kwargs,
|
|
206
208
|
):
|
|
207
209
|
"""
|
|
@@ -211,9 +213,12 @@ 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. This field is mandatory when not using yaml
|
|
215
|
-
file.
|
|
216
216
|
topology (str): The secondary network topology to be created.
|
|
217
|
+
network_name (str, optional): The name of the network, including the namespace
|
|
218
|
+
where the network it available, e.g. namespace/network-name.
|
|
219
|
+
vlan (int, optional): A vlan tag ID that will be assigned to traffic from this
|
|
220
|
+
additional network.
|
|
221
|
+
mtu (str, optional): The maximum transmission unit (MTU).
|
|
217
222
|
"""
|
|
218
223
|
super().__init__(
|
|
219
224
|
cni_type="ovn-k8s-cni-overlay",
|
|
@@ -221,16 +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
232
|
def to_dict(self):
|
|
226
233
|
super().to_dict()
|
|
227
234
|
if not self.yaml_file:
|
|
228
|
-
if not self.network_name:
|
|
229
|
-
raise ValueError("network_name is required")
|
|
230
235
|
if not self.topology:
|
|
231
236
|
raise ValueError("topology is required")
|
|
232
237
|
spec_config = self.res["spec"]["config"]
|
|
233
|
-
|
|
238
|
+
if self.vlan:
|
|
239
|
+
spec_config["vlanID"] = self.vlan
|
|
240
|
+
if self.mtu:
|
|
241
|
+
spec_config["mtu"] = self.mtu
|
|
242
|
+
spec_config["name"] = self.name
|
|
234
243
|
spec_config["topology"] = self.topology
|
|
235
|
-
spec_config["netAttachDefName"] = f"{self.namespace}/{self.name}"
|
|
244
|
+
spec_config["netAttachDefName"] = self.network_name or f"{self.namespace}/{self.name}"
|
|
236
245
|
self.res["spec"]["config"] = json.dumps(spec_config)
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/resource.py
RENAMED
|
@@ -299,6 +299,7 @@ class Resource:
|
|
|
299
299
|
TEMPLATE_KUBEVIRT_IO = "template.kubevirt.io"
|
|
300
300
|
TEMPLATE_OPENSHIFT_IO = "template.openshift.io"
|
|
301
301
|
UPLOAD_CDI_KUBEVIRT_IO = "upload.cdi.kubevirt.io"
|
|
302
|
+
USER_OPENSHIFT_IO = "user.openshift.io"
|
|
302
303
|
V2V_KUBEVIRT_IO = "v2v.kubevirt.io"
|
|
303
304
|
VELERO_IO = "velero.io"
|
|
304
305
|
VM_KUBEVIRT_IO = "vm.kubevirt.io"
|
|
@@ -701,7 +702,7 @@ class Resource:
|
|
|
701
702
|
self.logger.info(f"Posting {hashed_res}")
|
|
702
703
|
self.logger.debug(f"\n{yaml.dump(hashed_res)}")
|
|
703
704
|
resource_ = self.api.create(body=self.res, namespace=self.namespace, dry_run=self.dry_run)
|
|
704
|
-
with contextlib.suppress(ForbiddenError, AttributeError):
|
|
705
|
+
with contextlib.suppress(ForbiddenError, AttributeError, NotFoundError):
|
|
705
706
|
# some resources do not support get() (no instance) or the client do not have permissions
|
|
706
707
|
self.initial_resource_version = self.instance.metadata.resourceVersion
|
|
707
708
|
|
|
@@ -9,7 +9,7 @@ exclude = [".git", ".venv", ".mypy_cache", ".tox", "__pycache__"]
|
|
|
9
9
|
|
|
10
10
|
[tool.poetry]
|
|
11
11
|
name = "openshift-python-wrapper"
|
|
12
|
-
version = "10.0.
|
|
12
|
+
version = "10.0.29"
|
|
13
13
|
description = "Wrapper around https://github.com/kubernetes-client/python"
|
|
14
14
|
authors = ["Meni Yakove <myakove@gmail.com>", "Ruth Netser <rnetser@gmail.com>"]
|
|
15
15
|
readme = "README.md"
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/api_server.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/api_service.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/backup.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/benchmark.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/cdi_config.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/chaos_engine.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/chaos_result.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/cluster_role.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/configmap.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/cron_job.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/csidriver.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/daemonset.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/data_source.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/datavolume.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/deployment.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/endpoints.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/event.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/gateway.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/image.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/image_stream.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/installplan.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/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-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/lease.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/limit_range.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/machine.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/machine_set.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/metallb.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/migration.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-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/namespace.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/network.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/network_map.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/nmstate.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/oauth.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/operator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/operator_hub.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/pipeline.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/pipelineruns.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/pod_metrics.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/project.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/prometheus.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/provider.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/replicaset.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/restore.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/role_binding.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/route.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/scheduler.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/secret.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/service.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/sriov_network.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/storage_class.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/storage_map.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/subscription.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/task_run.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/tekton_tasks.py
RENAMED
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/template.py
RENAMED
|
File without changes
|
|
File without changes
|
{openshift_python_wrapper-10.0.27 → openshift_python_wrapper-10.0.29}/ocp_resources/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|