qontract-reconcile 0.10.2.dev18__py3-none-any.whl → 0.10.2.dev19__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.dev18
3
+ Version: 0.10.2.dev19
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
@@ -185,7 +185,7 @@ reconcile/cna/assets/asset_factory.py,sha256=7T7X_J6xIsoGETqBRI45_EyIKEdQcnRPt_G
185
185
  reconcile/cna/assets/null.py,sha256=85mVh97atCoC0aLuX47poTZiyOthmziJeBsUw0c924w,1658
186
186
  reconcile/dynatrace_token_provider/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
187
187
  reconcile/dynatrace_token_provider/dependencies.py,sha256=FuRUnK18EyJIIgFwQBZSskIG08mN2VQAcAcaJFTf8zc,2812
188
- reconcile/dynatrace_token_provider/integration.py,sha256=mfcfCKFTMehiXaClMXJHXe_GFsa9nCfgjnAl_T4a3P8,26267
188
+ reconcile/dynatrace_token_provider/integration.py,sha256=usNTif2yrzWp7V24QHmMI1bd4QxwObYbxsqfJAYREXc,26576
189
189
  reconcile/dynatrace_token_provider/metrics.py,sha256=oP-6NTZENFdvWiS0krnmX6tq3xyOzQ8e6vS0CZWYUuw,1496
190
190
  reconcile/dynatrace_token_provider/model.py,sha256=gkpqo5rRRueBXnIMjp4EEHqBUBuU65TRI8zpdb8GJ0A,241
191
191
  reconcile/dynatrace_token_provider/ocm.py,sha256=MwYCZIxW4f-1jzFTxxN__sity6S8O7bbKUdyTFEVO7U,4325
@@ -766,7 +766,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
766
766
  tools/saas_promotion_state/saas_promotion_state.py,sha256=UfwwRLS5Ya4_Nh1w5n1dvoYtchQvYE9yj1VANt2IKqI,3925
767
767
  tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
768
768
  tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
769
- qontract_reconcile-0.10.2.dev18.dist-info/METADATA,sha256=vxQFz-cgRhQ5es2GJgtvVjOXk3OWWfS7nMbp4DAWsi0,24665
770
- qontract_reconcile-0.10.2.dev18.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
771
- qontract_reconcile-0.10.2.dev18.dist-info/entry_points.txt,sha256=JniHZPadNOILPyfSl0LF2YSp3Db7K2_W2CN7i9f3Gos,540
772
- qontract_reconcile-0.10.2.dev18.dist-info/RECORD,,
769
+ qontract_reconcile-0.10.2.dev19.dist-info/METADATA,sha256=wb_IQ6QESeh7TYBGvXCUJde_kGmYx8m3jIPVO7MsETA,24665
770
+ qontract_reconcile-0.10.2.dev19.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
771
+ qontract_reconcile-0.10.2.dev19.dist-info/entry_points.txt,sha256=JniHZPadNOILPyfSl0LF2YSp3Db7K2_W2CN7i9f3Gos,540
772
+ qontract_reconcile-0.10.2.dev19.dist-info/RECORD,,
@@ -37,12 +37,17 @@ from reconcile.utils.ocm.base import (
37
37
  OCMServiceLogSeverity,
38
38
  )
39
39
  from reconcile.utils.ocm.labels import subscription_label_filter
40
- from reconcile.utils.openshift_resource import QONTRACT_ANNOTATION_INTEGRATION
40
+ from reconcile.utils.openshift_resource import (
41
+ QONTRACT_ANNOTATION_INTEGRATION,
42
+ QONTRACT_ANNOTATION_INTEGRATION_VERSION,
43
+ )
41
44
  from reconcile.utils.runtime.integration import (
42
45
  NoParams,
43
46
  QontractReconcileIntegration,
44
47
  )
48
+ from reconcile.utils.semver_helper import make_semver
45
49
 
50
+ QONTRACT_INTEGRATION_VERSION = make_semver(2, 0, 1)
46
51
  QONTRACT_INTEGRATION = "dynatrace-token-provider"
47
52
  SYNCSET_AND_MANIFEST_ID = "ext-dynatrace-tokens-dtp"
48
53
 
@@ -65,10 +70,11 @@ class DynatraceTokenProviderIntegration(QontractReconcileIntegration[NoParams]):
65
70
  def get_early_exit_desired_state(self, *args: Any, **kwargs: Any) -> dict[str, Any]:
66
71
  """Return the desired state for early exit."""
67
72
  return {
73
+ "version": QONTRACT_INTEGRATION_VERSION,
68
74
  "specs": {
69
75
  spec.name: spec.dict()
70
76
  for spec in get_dynatrace_token_provider_token_specs()
71
- }
77
+ },
72
78
  }
73
79
 
74
80
  @property
@@ -577,6 +583,7 @@ class DynatraceTokenProviderIntegration(QontractReconcileIntegration[NoParams]):
577
583
  "namespace": secret.namespace_name,
578
584
  "annotations": {
579
585
  QONTRACT_ANNOTATION_INTEGRATION: QONTRACT_INTEGRATION,
586
+ QONTRACT_ANNOTATION_INTEGRATION_VERSION: QONTRACT_INTEGRATION_VERSION,
580
587
  },
581
588
  },
582
589
  "data": data,