qontract-reconcile 0.10.2.dev209__py3-none-any.whl → 0.10.2.dev213__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.4
2
2
  Name: qontract-reconcile
3
- Version: 0.10.2.dev209
3
+ Version: 0.10.2.dev213
4
4
  Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
5
5
  Project-URL: homepage, https://github.com/app-sre/qontract-reconcile
6
6
  Project-URL: repository, https://github.com/app-sre/qontract-reconcile
@@ -71,7 +71,7 @@ reconcile/openshift_network_policies.py,sha256=p81ShFK1WSEGiWHVURopDpg8YvtA3RE3O
71
71
  reconcile/openshift_prometheus_rules.py,sha256=onowXab248zmHH8SbYDTc1W1bl7JiqRFU1xdTkZyLFg,1332
72
72
  reconcile/openshift_resourcequotas.py,sha256=yUi56PiOn3inMMfq_x_FEHmaW-reGipzoorjdar372g,2415
73
73
  reconcile/openshift_resources.py,sha256=I2nO_C37mG3rfyGrd4cGwN3mVseVGuTAHAyhFzLyqF4,1518
74
- reconcile/openshift_resources_base.py,sha256=3HudPdM7EE0HNWUn1eu0O20Ij25fqGisaDBMVvTk1fk,41768
74
+ reconcile/openshift_resources_base.py,sha256=fogdGOnAk-8xK7z9UeLs1rT2IwDs6Q7jSx_iOVAWDLk,42316
75
75
  reconcile/openshift_rhcs_certs.py,sha256=lP0GwKMRl8YBzxrwdbBOxrPqIPYNmu2KkZPGzWKyRVU,9859
76
76
  reconcile/openshift_rolebindings.py,sha256=9mlJ2FjWUoH-rsjtasreA_hV-K5Z_YR00qR_RR60OZM,6555
77
77
  reconcile/openshift_routes.py,sha256=fXvuPSjcjVw1X3j2EQvUAdbOepmIFdKk-M3qP8QzPiw,1075
@@ -815,7 +815,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
815
815
  tools/saas_promotion_state/saas_promotion_state.py,sha256=UfwwRLS5Ya4_Nh1w5n1dvoYtchQvYE9yj1VANt2IKqI,3925
816
816
  tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
817
817
  tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
818
- qontract_reconcile-0.10.2.dev209.dist-info/METADATA,sha256=QKUofEI-f485b9dZemKXq6v2vV1nQPGJDX3BaZL1_g4,24555
819
- qontract_reconcile-0.10.2.dev209.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
820
- qontract_reconcile-0.10.2.dev209.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
821
- qontract_reconcile-0.10.2.dev209.dist-info/RECORD,,
818
+ qontract_reconcile-0.10.2.dev213.dist-info/METADATA,sha256=KF0B_KMRSL7FeDdMZr1P7osgPw5qyZm10v6Pe90T4oA,24555
819
+ qontract_reconcile-0.10.2.dev213.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
820
+ qontract_reconcile-0.10.2.dev213.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
821
+ qontract_reconcile-0.10.2.dev213.dist-info/RECORD,,
@@ -667,6 +667,15 @@ def fetch_current_state(
667
667
  openshift_resource = OR(
668
668
  item, QONTRACT_INTEGRATION, QONTRACT_INTEGRATION_VERSION
669
669
  )
670
+ labels = openshift_resource.body.get("metadata", {}).get("labels", {})
671
+ # Skip resources managed by ArgoCD
672
+ # This uses the Kubernetes recommended label 'app.kubernetes.io/part-of=argocd'
673
+ # https://argo-cd.readthedocs.io/en/stable/user-guide/resource_tracking/
674
+ if labels.get("app.kubernetes.io/part-of") == "argocd":
675
+ _locked_info_log(
676
+ f"Skipping {openshift_resource.kind} {openshift_resource.name} in current state because it is managed by ArgoCD"
677
+ )
678
+ continue
670
679
  ri.add_current(
671
680
  cluster,
672
681
  namespace,
@@ -698,7 +707,6 @@ def fetch_desired_state(
698
707
  msg = f"[{cluster}/{namespace}] {e!s}"
699
708
  _locked_error_log(msg)
700
709
  return
701
-
702
710
  # add to inventory
703
711
  try:
704
712
  ri.add_desired_resource(