qontract-reconcile 0.10.1rc1095__py3-none-any.whl → 0.10.1rc1096__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qontract-reconcile
3
- Version: 0.10.1rc1095
3
+ Version: 0.10.1rc1096
4
4
  Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
5
5
  Home-page: https://github.com/app-sre/qontract-reconcile
6
6
  Author: Red Hat App-SRE Team
@@ -54,7 +54,7 @@ reconcile/ocm_additional_routers.py,sha256=KfcFDVbNoc6n5dHWjYdAf1_DiVqVG6Tw23WLK
54
54
  reconcile/ocm_addons.py,sha256=qqAyqRBRbdZQvAcjb-QlSVyRAyQBZk6iVlgnI4jyi7s,3353
55
55
  reconcile/ocm_addons_upgrade_tests_trigger.py,sha256=A9zXeYG-_52DsS1dz47yDSnHz62du5XpPBlaeRa6zxY,3975
56
56
  reconcile/ocm_aws_infrastructure_access.py,sha256=rrlcQxvRTmKyYOUR1C-Nlxj_o_iCDSxc7PNoELUDiew,6892
57
- reconcile/ocm_clusters.py,sha256=0AlqFrUoxxB8rsOgobvnwiBI2Zal8BK2TI2cpWa0Qqg,16895
57
+ reconcile/ocm_clusters.py,sha256=he-BkbEb-ozHuZNqRr2nIWUjBHhLF-2Jvcctx4K3eK4,17021
58
58
  reconcile/ocm_external_configuration_labels.py,sha256=imEpDv1RBpCSj8tHDv0R76hmNCFtcUzVNgS1yOVl8vs,3870
59
59
  reconcile/ocm_github_idp.py,sha256=glwXMsIBcl38-OmDDQCpe0YoLLXfoRgVQmqwXMEXjds,3946
60
60
  reconcile/ocm_groups.py,sha256=-rTPMewkdyo1De6gs4u-294p3z34oUbGfuNi8ov56Sk,3424
@@ -530,7 +530,7 @@ reconcile/test/test_jump_host.py,sha256=EeHMhT5rTZgx__R_29mtCBWt-NZCcKsQ6CR-B3xm
530
530
  reconcile/test/test_ldap_users.py,sha256=8jjzVgoiRRylGad6-TvkugoFGXt3eko--zVVKjmZDn4,3812
531
531
  reconcile/test/test_make.py,sha256=zTdjgq-3idFlec_0qJenk9wWw0QMLvSpJfPsptXmync,677
532
532
  reconcile/test/test_ocm_additional_routers.py,sha256=vX_O5js8PDTXU2mLD89tcMBqdpDKRNFWwxBB_UKP3Cc,4206
533
- reconcile/test/test_ocm_clusters.py,sha256=1tFzyjkVmQWRLYO2RRWSTy7xFYRQqL-wj0pfw5-5Lss,23909
533
+ reconcile/test/test_ocm_clusters.py,sha256=QDieDrP7pjH7jw5pFcZkUGx1lUhd2Cdg8BM0bRnhhI8,24322
534
534
  reconcile/test/test_ocm_clusters_manifest_updates.py,sha256=jFRVfc5jby1kI2x_gT6wcqPPgkav1et9wZH6JqQbNSY,3278
535
535
  reconcile/test/test_ocm_machine_pools.py,sha256=_1tG-nF8edU29ONDUGXtR3J2-E8FWv-PI0Y9gb8HQfY,29697
536
536
  reconcile/test/test_ocm_update_recommended_version.py,sha256=01oONkMewUUMrLFwlsUKTuvzL9XEeMk5_kBkYGE-u4Q,4318
@@ -798,7 +798,7 @@ reconcile/utils/ocm/label_sources.py,sha256=ES_5VP4X6gsRxMFZ95WgbwE_HqqIUo_JRjHj
798
798
  reconcile/utils/ocm/labels.py,sha256=aCsL5QkRk32hZeJwsSJuCCT9sbojWMn8LL5Zo-aoFb4,5916
799
799
  reconcile/utils/ocm/manifests.py,sha256=Q6kgOeiAwLbJY_vO_BEW2oePvbLDZcMZk20YpJJGpOA,1195
800
800
  reconcile/utils/ocm/ocm.py,sha256=EwhCymt7r8cL8UF2XbwmQ6IiRE016AUuPEiMAtYMepE,36707
801
- reconcile/utils/ocm/products.py,sha256=XDmTkVv4eWEifloz_f2I8GmdM97tY33PLf2p4d5GMI0,25972
801
+ reconcile/utils/ocm/products.py,sha256=Ki9o0VV4z_FsXQaJtSFzlUnxLvpk1H-RamvJpUwwbuQ,26006
802
802
  reconcile/utils/ocm/search_filters.py,sha256=jdj2sMGArcQrZLluzxeypPSbMFX_5zSE3ACvhNpsnOc,14814
803
803
  reconcile/utils/ocm/service_log.py,sha256=RG1f0MMn6joKaRCAm2xveSJCavdOPP1BVo9FXecDxaI,2018
804
804
  reconcile/utils/ocm/sre_capability_labels.py,sha256=nqh0imrYczNeeeC7ZNX3pEwuAIVkKLTKZf0YHSPZYpE,1537
@@ -870,8 +870,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
870
870
  tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
871
871
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
872
872
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
873
- qontract_reconcile-0.10.1rc1095.dist-info/METADATA,sha256=COuHGQ1AT5Zd2xD5SkfVDxPnfJdB0uuOdy6E-z3uSc4,2213
874
- qontract_reconcile-0.10.1rc1095.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
875
- qontract_reconcile-0.10.1rc1095.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
876
- qontract_reconcile-0.10.1rc1095.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
877
- qontract_reconcile-0.10.1rc1095.dist-info/RECORD,,
873
+ qontract_reconcile-0.10.1rc1096.dist-info/METADATA,sha256=yRvGWzA7FiVeLTcn5HCehJgz4D7ERObULAvVS-dnBok,2213
874
+ qontract_reconcile-0.10.1rc1096.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
875
+ qontract_reconcile-0.10.1rc1096.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
876
+ qontract_reconcile-0.10.1rc1096.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
877
+ qontract_reconcile-0.10.1rc1096.dist-info/RECORD,,
reconcile/ocm_clusters.py CHANGED
@@ -23,6 +23,7 @@ from reconcile.status import ExitCodes
23
23
  from reconcile.utils.disabled_integrations import integration_is_enabled
24
24
  from reconcile.utils.jobcontroller.controller import build_job_controller
25
25
  from reconcile.utils.ocm.products import (
26
+ IGNORE_NETWORK_TYPE_ATTR,
26
27
  OCMProduct,
27
28
  OCMProductPortfolio,
28
29
  OCMValidationException,
@@ -248,10 +249,14 @@ def get_cluster_ocm_update_spec(
248
249
  desired_spec.network.type = "OVNKubernetes"
249
250
 
250
251
  cspec = current_spec.spec.dict()
251
- cspec[ocmmod.SPEC_ATTR_NETWORK] = current_spec.network.dict()
252
+ cspec[ocmmod.SPEC_ATTR_NETWORK] = current_spec.network.dict(
253
+ exclude={IGNORE_NETWORK_TYPE_ATTR}
254
+ )
252
255
 
253
256
  dspec = desired_spec.spec.dict()
254
- dspec[ocmmod.SPEC_ATTR_NETWORK] = desired_spec.network.dict()
257
+ dspec[ocmmod.SPEC_ATTR_NETWORK] = desired_spec.network.dict(
258
+ exclude={IGNORE_NETWORK_TYPE_ATTR}
259
+ )
255
260
 
256
261
  # Convert ocm specs to dicts, removing null values and excluded attributes
257
262
  current_ocm_spec = {
@@ -461,6 +461,18 @@ def test_get_ocm_cluster_update_spec_network_banned(
461
461
  assert err is True
462
462
 
463
463
 
464
+ def test_get_ocm_cluster_update_spec_network_type_ignored(
465
+ osd_product: OCMProductOsd, ocm_osd_cluster_spec: OCMSpec
466
+ ):
467
+ current_spec = ocm_osd_cluster_spec
468
+ desired_spec = current_spec.copy(deep=True)
469
+ desired_spec.network.type = "OVNKubernetes"
470
+ upd, err = occ.get_cluster_ocm_update_spec(
471
+ osd_product, "cluster1", current_spec, desired_spec
472
+ )
473
+ assert (upd, err) == ({}, False)
474
+
475
+
464
476
  @typing.no_type_check
465
477
  def test_get_ocm_cluster_update_spec_allowed_change(
466
478
  osd_product: OCMProductOsd, ocm_osd_cluster_spec: OCMSpec
@@ -46,6 +46,7 @@ SPEC_ATTR_SUBNET_IDS = "subnet_ids"
46
46
  SPEC_ATTR_AVAILABILITY_ZONES = "availability_zones"
47
47
 
48
48
  SPEC_ATTR_NETWORK = "network"
49
+ IGNORE_NETWORK_TYPE_ATTR = "type"
49
50
 
50
51
  SPEC_ATTR_CONSOLE_URL = "consoleUrl"
51
52
  SPEC_ATTR_SERVER_URL = "serverUrl"