qontract-reconcile 0.10.2.dev303__py3-none-any.whl → 0.10.2.dev314__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.
Files changed (30) hide show
  1. {qontract_reconcile-0.10.2.dev303.dist-info → qontract_reconcile-0.10.2.dev314.dist-info}/METADATA +1 -1
  2. {qontract_reconcile-0.10.2.dev303.dist-info → qontract_reconcile-0.10.2.dev314.dist-info}/RECORD +30 -30
  3. reconcile/gql_definitions/common/aws_vpc_requests.py +4 -1
  4. reconcile/gql_definitions/fragments/aws_vpc_request.py +3 -0
  5. reconcile/gql_definitions/introspection.json +36 -12
  6. reconcile/gql_definitions/status_board/status_board.py +0 -20
  7. reconcile/prometheus_rules_tester/integration.py +1 -1
  8. reconcile/rhidp/common.py +2 -0
  9. reconcile/status_board.py +9 -133
  10. reconcile/terraform_tgw_attachments.py +1 -1
  11. reconcile/terraform_users.py +3 -1
  12. reconcile/terraform_vpc_peerings.py +1 -1
  13. reconcile/terraform_vpc_resources/integration.py +19 -1
  14. reconcile/typed_queries/status_board.py +8 -43
  15. reconcile/utils/ocm/base.py +10 -0
  16. reconcile/utils/ocm/status_board.py +0 -13
  17. reconcile/utils/openssl.py +2 -2
  18. reconcile/utils/repo_owners.py +21 -29
  19. reconcile/utils/runtime/meta.py +2 -1
  20. reconcile/utils/sharding.py +1 -1
  21. reconcile/utils/sqs_gateway.py +14 -10
  22. reconcile/utils/structs.py +3 -3
  23. reconcile/utils/terraform_client.py +27 -25
  24. reconcile/utils/terrascript_aws_client.py +487 -372
  25. reconcile/utils/throughput.py +1 -1
  26. reconcile/vpc_peerings_validator.py +2 -2
  27. tools/qontract_cli.py +1 -1
  28. tools/sre_checkpoints/util.py +5 -3
  29. {qontract_reconcile-0.10.2.dev303.dist-info → qontract_reconcile-0.10.2.dev314.dist-info}/WHEEL +0 -0
  30. {qontract_reconcile-0.10.2.dev303.dist-info → qontract_reconcile-0.10.2.dev314.dist-info}/entry_points.txt +0 -0
@@ -1,7 +1,7 @@
1
1
  import os
2
2
 
3
3
 
4
- def change_files_ownership(directory):
4
+ def change_files_ownership(directory: str) -> None:
5
5
  stat_info = os.stat(directory)
6
6
  uid = stat_info.st_uid
7
7
  gid = stat_info.st_gid
@@ -79,7 +79,7 @@ def validate_no_cidr_overlap(
79
79
  return True
80
80
 
81
81
 
82
- def find_cidr_overlap(cluster_name: str, input_list: list):
82
+ def find_cidr_overlap(cluster_name: str, input_list: list) -> bool:
83
83
  for i in range(len(input_list)):
84
84
  compared_vpc = input_list[i]
85
85
  for j in range(i + 1, len(input_list)):
@@ -171,7 +171,7 @@ def validate_no_public_to_public_peerings(
171
171
  return valid
172
172
 
173
173
 
174
- def run(dry_run: bool):
174
+ def run(dry_run: bool) -> None:
175
175
  query_data = vpc_peerings_validator.query(query_func=gql.get_api().query)
176
176
 
177
177
  valid = True
tools/qontract_cli.py CHANGED
@@ -2772,7 +2772,7 @@ def slo_document_services(ctx: click.Context, status_board_instance: str) -> Non
2772
2772
  print(f"Status-board instance '{status_board_instance}' not found.")
2773
2773
  sys.exit(1)
2774
2774
 
2775
- desired_product_apps: dict[str, dict[str, dict[str, dict[str, set[str]]]]] = (
2775
+ desired_product_apps: dict[str, set[str]] = (
2776
2776
  StatusBoardExporterIntegration.get_product_apps(sb)
2777
2777
  )
2778
2778
 
@@ -1,7 +1,9 @@
1
+ from typing import Any
2
+
1
3
  from reconcile import queries
2
4
 
3
5
 
4
- def full_name(app):
6
+ def full_name(app: dict[str, Any]) -> str:
5
7
  """Builds App full_name, prepending the App with the name
6
8
  of the parent App.
7
9
 
@@ -17,14 +19,14 @@ def full_name(app):
17
19
  return name
18
20
 
19
21
 
20
- def get_latest_sre_checkpoints():
22
+ def get_latest_sre_checkpoints() -> dict[str, str]:
21
23
  """Builds dictionary with the full_name of the app as the key and the
22
24
  date of sre_checkpoint as the value.
23
25
 
24
26
  :return: dictionary with the latest checkpoints
25
27
  :rtype: dict
26
28
  """
27
- checkpoints = {}
29
+ checkpoints: dict[str, str] = {}
28
30
  for checkpoint in queries.get_sre_checkpoints():
29
31
  name = full_name(checkpoint["app"])
30
32
  date = checkpoint["date"]