qontract-reconcile 0.10.1rc969__py3-none-any.whl → 0.10.1rc970__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.1rc969
3
+ Version: 0.10.1rc970
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
@@ -30,7 +30,7 @@ reconcile/github_repo_permissions_validator.py,sha256=dcbXdUx6imjNchjp3pg9-z1i7l
30
30
  reconcile/github_users.py,sha256=nfTq78QRONIfDVj-5O3bD6psllJjzWFnog-EJ1WqFPU,3672
31
31
  reconcile/github_validator.py,sha256=cVTVxJIGR4a1Jz8wrdXEAb_CMpXUzvykVmUURX4cook,917
32
32
  reconcile/gitlab_fork_compliance.py,sha256=5joAIGOOLhHme1ipa7ZQeQkUOVe3dKbRO1wJtTwyNR4,4178
33
- reconcile/gitlab_housekeeping.py,sha256=1ewS9HQRK-m14Uvok8ZbSb_yn_TksMontSk3blTe7ZM,22043
33
+ reconcile/gitlab_housekeeping.py,sha256=BjqIwA3rJQYMh-v0fr2s5L_BkFvtW4fRGHuHY5pcwf4,22099
34
34
  reconcile/gitlab_labeler.py,sha256=4xJHmVX155fclrHqkR926sL1GH6RTN5XfZ8PnqNXbRA,4534
35
35
  reconcile/gitlab_members.py,sha256=PrJE9OhDRdGG_gHM_77nQojLb4B18jtUu8DxgLsRS88,8417
36
36
  reconcile/gitlab_mr_sqs_consumer.py,sha256=O46mdziPgGOndbU-0_UJKJVUaiEoVzJPEgKm4_UvYoI,2571
@@ -851,8 +851,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
851
851
  tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
852
852
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
853
853
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
854
- qontract_reconcile-0.10.1rc969.dist-info/METADATA,sha256=p98qmyLOBzvDJlkKuHMGU244qVnuKYEqRvVOhovmtBY,2262
855
- qontract_reconcile-0.10.1rc969.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
856
- qontract_reconcile-0.10.1rc969.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
857
- qontract_reconcile-0.10.1rc969.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
858
- qontract_reconcile-0.10.1rc969.dist-info/RECORD,,
854
+ qontract_reconcile-0.10.1rc970.dist-info/METADATA,sha256=J24BLwq4hq7Kmnhuevwim4xtUXN3duD8qWv72Cl6PUM,2262
855
+ qontract_reconcile-0.10.1rc970.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
856
+ qontract_reconcile-0.10.1rc970.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
857
+ qontract_reconcile-0.10.1rc970.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
858
+ qontract_reconcile-0.10.1rc970.dist-info/RECORD,,
@@ -98,7 +98,7 @@ merge_requests_waiting = Gauge(
98
98
  gitlab_token_expiration = Gauge(
99
99
  name="qontract_reconcile_gitlab_token_expiration_days",
100
100
  documentation="Time until personal access tokens expire",
101
- labelnames=["name"],
101
+ labelnames=["name", "active"],
102
102
  )
103
103
 
104
104
 
@@ -559,7 +559,9 @@ def publish_access_token_expiration_metrics(gl: GitLabApi) -> None:
559
559
  for pat in pats:
560
560
  expiration_date = datetime.strptime(pat.expires_at, EXPIRATION_DATE_FORMAT)
561
561
  days_until_expiration = expiration_date.date() - datetime.now(UTC).date()
562
- gitlab_token_expiration.labels(pat.name).set(days_until_expiration.days)
562
+ gitlab_token_expiration.labels(name=pat.name, active=pat.active).set(
563
+ days_until_expiration.days
564
+ )
563
565
 
564
566
 
565
567
  def run(dry_run, wait_for_pipeline):