qontract-reconcile 0.10.2.dev209__py3-none-any.whl → 0.10.2.dev214__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.
- {qontract_reconcile-0.10.2.dev209.dist-info → qontract_reconcile-0.10.2.dev214.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.2.dev209.dist-info → qontract_reconcile-0.10.2.dev214.dist-info}/RECORD +6 -6
- reconcile/openshift_resources_base.py +9 -1
- reconcile/openshift_rhcs_certs.py +3 -0
- {qontract_reconcile-0.10.2.dev209.dist-info → qontract_reconcile-0.10.2.dev214.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.2.dev209.dist-info → qontract_reconcile-0.10.2.dev214.dist-info}/entry_points.txt +0 -0
{qontract_reconcile-0.10.2.dev209.dist-info → qontract_reconcile-0.10.2.dev214.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: qontract-reconcile
|
3
|
-
Version: 0.10.2.
|
3
|
+
Version: 0.10.2.dev214
|
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
|
{qontract_reconcile-0.10.2.dev209.dist-info → qontract_reconcile-0.10.2.dev214.dist-info}/RECORD
RENAMED
@@ -71,8 +71,8 @@ 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=
|
75
|
-
reconcile/openshift_rhcs_certs.py,sha256=
|
74
|
+
reconcile/openshift_resources_base.py,sha256=fogdGOnAk-8xK7z9UeLs1rT2IwDs6Q7jSx_iOVAWDLk,42316
|
75
|
+
reconcile/openshift_rhcs_certs.py,sha256=1HfQRMAftafQzJTAUKz98WhIbNR5SC9iCD-C92HZV_4,9932
|
76
76
|
reconcile/openshift_rolebindings.py,sha256=9mlJ2FjWUoH-rsjtasreA_hV-K5Z_YR00qR_RR60OZM,6555
|
77
77
|
reconcile/openshift_routes.py,sha256=fXvuPSjcjVw1X3j2EQvUAdbOepmIFdKk-M3qP8QzPiw,1075
|
78
78
|
reconcile/openshift_saas_deploy.py,sha256=T1dvb9zajisaJNjbnR6-AZHU-itscHtr4oCqLj8KCK0,13037
|
@@ -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.
|
819
|
-
qontract_reconcile-0.10.2.
|
820
|
-
qontract_reconcile-0.10.2.
|
821
|
-
qontract_reconcile-0.10.2.
|
818
|
+
qontract_reconcile-0.10.2.dev214.dist-info/METADATA,sha256=v5PuwHiAY6FhlSgoeJwmibmuBtdVMx9AvVe1IklU6Wo,24555
|
819
|
+
qontract_reconcile-0.10.2.dev214.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
820
|
+
qontract_reconcile-0.10.2.dev214.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
|
821
|
+
qontract_reconcile-0.10.2.dev214.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(
|
@@ -22,6 +22,7 @@ from reconcile.typed_queries.app_interface_vault_settings import (
|
|
22
22
|
)
|
23
23
|
from reconcile.typed_queries.rhcs_provider_settings import get_rhcs_provider_settings
|
24
24
|
from reconcile.utils import gql, metrics
|
25
|
+
from reconcile.utils.defer import defer
|
25
26
|
from reconcile.utils.disabled_integrations import integration_is_enabled
|
26
27
|
from reconcile.utils.metrics import GaugeMetric, normalize_integration_name
|
27
28
|
from reconcile.utils.oc_map import init_oc_map_from_namespaces
|
@@ -235,6 +236,7 @@ def fetch_desired_state(
|
|
235
236
|
)
|
236
237
|
|
237
238
|
|
239
|
+
@defer
|
238
240
|
def run(
|
239
241
|
dry_run: bool,
|
240
242
|
thread_pool_size: int = 10,
|
@@ -259,6 +261,7 @@ def run(
|
|
259
261
|
use_jump_host=use_jump_host,
|
260
262
|
thread_pool_size=thread_pool_size,
|
261
263
|
)
|
264
|
+
defer(oc_map.cleanup)
|
262
265
|
ri = ResourceInventory()
|
263
266
|
state_specs = ob.init_specs_to_fetch(
|
264
267
|
ri,
|
{qontract_reconcile-0.10.2.dev209.dist-info → qontract_reconcile-0.10.2.dev214.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|