qontract-reconcile 0.10.2.dev241__py3-none-any.whl → 0.10.2.dev242__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.dev241
3
+ Version: 0.10.2.dev242
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
@@ -70,7 +70,7 @@ reconcile/openshift_prometheus_rules.py,sha256=onowXab248zmHH8SbYDTc1W1bl7JiqRFU
70
70
  reconcile/openshift_resourcequotas.py,sha256=yUi56PiOn3inMMfq_x_FEHmaW-reGipzoorjdar372g,2415
71
71
  reconcile/openshift_resources.py,sha256=I2nO_C37mG3rfyGrd4cGwN3mVseVGuTAHAyhFzLyqF4,1518
72
72
  reconcile/openshift_resources_base.py,sha256=728-5nEmWMviSnhQH-EbEp_876VI2PGgC8LnrIfbD3U,42890
73
- reconcile/openshift_rhcs_certs.py,sha256=wty5ayzcIebe4-Vlkf1Zi3UzVqBU8WUtYmsOiYviWNs,10070
73
+ reconcile/openshift_rhcs_certs.py,sha256=NEHOuSztYkNn7GFqUg2On7kmi3VajDJ5zHZt08Xa24A,10230
74
74
  reconcile/openshift_rolebindings.py,sha256=9mlJ2FjWUoH-rsjtasreA_hV-K5Z_YR00qR_RR60OZM,6555
75
75
  reconcile/openshift_routes.py,sha256=fXvuPSjcjVw1X3j2EQvUAdbOepmIFdKk-M3qP8QzPiw,1075
76
76
  reconcile/openshift_saas_deploy.py,sha256=T1dvb9zajisaJNjbnR6-AZHU-itscHtr4oCqLj8KCK0,13037
@@ -800,7 +800,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
800
800
  tools/saas_promotion_state/saas_promotion_state.py,sha256=UfwwRLS5Ya4_Nh1w5n1dvoYtchQvYE9yj1VANt2IKqI,3925
801
801
  tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
802
802
  tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
803
- qontract_reconcile-0.10.2.dev241.dist-info/METADATA,sha256=ViFvxvTM7AENm6rMbK78w8OSX-py5ssEEjQfK387gPA,24289
804
- qontract_reconcile-0.10.2.dev241.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
805
- qontract_reconcile-0.10.2.dev241.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
806
- qontract_reconcile-0.10.2.dev241.dist-info/RECORD,,
803
+ qontract_reconcile-0.10.2.dev242.dist-info/METADATA,sha256=ZPBCbcD6RjER29qHo9IkVjoZLVn2F52-WKT2_OiCSWE,24289
804
+ qontract_reconcile-0.10.2.dev242.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
805
+ qontract_reconcile-0.10.2.dev242.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
806
+ qontract_reconcile-0.10.2.dev242.dist-info/RECORD,,
@@ -59,6 +59,7 @@ class OpenshiftRhcsCertExpiration(GaugeMetric):
59
59
  cert_name: str
60
60
  cluster: str
61
61
  namespace: str
62
+ renewal_threshold_days: str
62
63
 
63
64
  @classmethod
64
65
  def name(cls) -> str:
@@ -200,6 +201,9 @@ def fetch_openshift_resource_for_cert_resource(
200
201
  cert_name=cert_resource.secret_name,
201
202
  namespace=ns.name,
202
203
  cluster=ns.cluster.name,
204
+ renewal_threshold_days=str(
205
+ cert_resource.auto_renew_threshold_days or 7
206
+ ),
203
207
  ),
204
208
  int(vault_cert_secret["expiration_timestamp"]),
205
209
  )