qontract-reconcile 0.10.1rc960__py3-none-any.whl → 0.10.1rc962__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.1rc960
3
+ Version: 0.10.1rc962
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
@@ -10,7 +10,7 @@ reconcile/aws_iam_password_reset.py,sha256=q96mwr2KeEQ5bpNniGlgIMZTxiuLSodcYfX-t
10
10
  reconcile/aws_support_cases_sos.py,sha256=Jk6_XjDeJSYxgRGqcEAOcynt9qJF2r5HPIPcSKmoBv8,2974
11
11
  reconcile/blackbox_exporter_endpoint_monitoring.py,sha256=O1wFp52EyF538c6txaWBs8eMtUIy19gyHZ6VzJ6QXS8,3512
12
12
  reconcile/checkpoint.py,sha256=_JhMxrye5BgkRMxWYuf7Upli6XayPINKSsuo3ynHTRc,5010
13
- reconcile/cli.py,sha256=1uK79dvw3lF7p2oyOwK4552uywXqZ8MxRbv4WYvpoto,105531
13
+ reconcile/cli.py,sha256=uUbBR4c5lxWtD0rRwO4_Pu-B1elHqlCyuagc2hIJJ20,105534
14
14
  reconcile/closedbox_endpoint_monitoring_base.py,sha256=rLh16BOlBOxTmJ8Si3wWyyEpmMlhh4Znx1Gc36qsmOc,4865
15
15
  reconcile/cluster_deployment_mapper.py,sha256=5gumAaRCcFXsabUJ1dnuUy9WrP_FEEM5JnOnE8ch9sE,2326
16
16
  reconcile/dashdotdb_base.py,sha256=l34QDu1G96_Ctnh7ZXdxXgSeCE93GQMdLAkWxmN6vDA,4775
@@ -138,7 +138,7 @@ reconcile/aus/version_gates/ingress_gate_handler.py,sha256=ZCtyggBzzcb0prtdbMpJs
138
138
  reconcile/aus/version_gates/ocp_gate_handler.py,sha256=RW1ppDaCZXVegV9AzzqYXxDUu_Z_7d43Z5h2Pk_piKc,716
139
139
  reconcile/aus/version_gates/sts_version_gate_handler.py,sha256=swwwz0YyvrEBf_InqrRRBCt2QzHYNvvq8jz9aYwElh4,3663
140
140
  reconcile/aws_account_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
141
- reconcile/aws_account_manager/integration.py,sha256=tdIXqHyd0QLZOX_7_jyU7eEil-jYJbAv4I4V1c3KhVk,14981
141
+ reconcile/aws_account_manager/integration.py,sha256=NOnDejPwLS8TNrvmipvkgd5vIJ2GRXDUapvrn_qvAQk,14984
142
142
  reconcile/aws_account_manager/merge_request_manager.py,sha256=eLRf7D6j9sPvJh3xpYRkrckleGrZcr6J0aED7xmNbXI,3815
143
143
  reconcile/aws_account_manager/metrics.py,sha256=YB10ea4kIGwJfs5N14RF-RoXPb-QQWaDBz1jLZ3YWE0,917
144
144
  reconcile/aws_account_manager/reconciler.py,sha256=5YG7nZ4GG1SY2Pe_OxetdtzOnl37MllZMu_ca22vRSo,15025
@@ -773,6 +773,7 @@ reconcile/utils/ocm/clusters.py,sha256=Fn4swizm1qq-XiNlIZ9SvahkftWAyNT8hF4kqRBpK
773
773
  reconcile/utils/ocm/identity_providers.py,sha256=dKed09N8iWmn39tI_MpwgVe47x23eLsknGbjMUxtwr4,2175
774
774
  reconcile/utils/ocm/label_sources.py,sha256=ES_5VP4X6gsRxMFZ95WgbwE_HqqIUo_JRjHjdGYw6Ss,1846
775
775
  reconcile/utils/ocm/labels.py,sha256=aCsL5QkRk32hZeJwsSJuCCT9sbojWMn8LL5Zo-aoFb4,5916
776
+ reconcile/utils/ocm/manifests.py,sha256=8kCVwTiaYHyjiKfP2DrkoT9eFxROy_M3rLom_hdsEIU,1193
776
777
  reconcile/utils/ocm/ocm.py,sha256=I5D7e8VxP8mhsi2ifYpKsr8UpbG5Syy8PfVpS6UWkmE,36659
777
778
  reconcile/utils/ocm/products.py,sha256=ZoK-3i4G2DGZRTwCfT_-ymHm2GCan_uImeqQJVJHLMw,25952
778
779
  reconcile/utils/ocm/search_filters.py,sha256=fNrCNJKLgp9x7z5MvlwWHaOhcMEVrEqlm9xdxFU8JgE,14937
@@ -846,8 +847,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
846
847
  tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
847
848
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
848
849
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
849
- qontract_reconcile-0.10.1rc960.dist-info/METADATA,sha256=59jI1Hqb8UqRbq6iYj_K_c6SrGGdYUHIQqcwLelFIPs,2262
850
- qontract_reconcile-0.10.1rc960.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
851
- qontract_reconcile-0.10.1rc960.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
852
- qontract_reconcile-0.10.1rc960.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
853
- qontract_reconcile-0.10.1rc960.dist-info/RECORD,,
850
+ qontract_reconcile-0.10.1rc962.dist-info/METADATA,sha256=H2k1Pegpt_fHDM6NwGFWQasYZYX9bZodCUN6DNMAuoE,2262
851
+ qontract_reconcile-0.10.1rc962.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
852
+ qontract_reconcile-0.10.1rc962.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
853
+ qontract_reconcile-0.10.1rc962.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
854
+ qontract_reconcile-0.10.1rc962.dist-info/RECORD,,
@@ -49,7 +49,7 @@ class AwsAccountMgmtIntegrationParams(PydanticRunParams):
49
49
  initial_user_name: str = "terraform"
50
50
  initial_user_policy_arn: str = "arn:aws:iam::aws:policy/AdministratorAccess"
51
51
  initial_user_secret_vault_path: str = (
52
- "app-sre/creds/terraform/{account_name}/config"
52
+ "app-sre-v2/creds/terraform/{account_name}/config"
53
53
  )
54
54
  account_tmpl_resource: str = "/aws-account-manager/account-tmpl.yml"
55
55
  template_collection_root_path: str = "data/templating/collections/aws-account"
reconcile/cli.py CHANGED
@@ -1003,7 +1003,7 @@ def aws_saml_roles(
1003
1003
  "--initial-user-secret-vault-path",
1004
1004
  help="The path in Vault to store the initial user secret. Python format string with access to 'account_name' attribute.",
1005
1005
  required=True,
1006
- default="app-sre/creds/terraform/{account_name}/config",
1006
+ default="app-sre-v2/creds/terraform/{account_name}/config",
1007
1007
  )
1008
1008
  @click.option(
1009
1009
  "--account-tmpl-resource",
@@ -0,0 +1,39 @@
1
+ from collections.abc import Generator, Mapping
2
+ from dataclasses import dataclass
3
+ from typing import Any
4
+
5
+ from reconcile.utils.ocm_base_client import OCMBaseClient
6
+
7
+
8
+ @dataclass
9
+ class Manifest:
10
+ def __init__(self, cluster_id: str):
11
+ self.href = f"/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/manifests"
12
+
13
+ href: str
14
+
15
+
16
+ def get_manifests(
17
+ ocm_client: OCMBaseClient, cluster_id: str
18
+ ) -> Generator[dict[str, Any], None, None]:
19
+ manifest = Manifest(cluster_id)
20
+ return ocm_client.get_paginated(api_path=manifest.href)
21
+
22
+
23
+ def get_manifest(ocm_client: OCMBaseClient, cluster_id: str, manifest_id: str) -> Any:
24
+ manifest = Manifest(cluster_id)
25
+ return ocm_client.get(api_path=manifest.href + "/" + manifest_id)
26
+
27
+
28
+ def create_manifest(
29
+ ocm_client: OCMBaseClient, cluster_id: str, manifest_map: Mapping
30
+ ) -> None:
31
+ manifest = Manifest(cluster_id)
32
+ ocm_client.post(api_path=manifest.href, data=manifest_map)
33
+
34
+
35
+ def patch_manifest(
36
+ ocm_client: OCMBaseClient, cluster_id: str, syncset_id: str, manifest_map: Mapping
37
+ ) -> None:
38
+ manifest = Manifest(cluster_id)
39
+ ocm_client.patch(api_path=manifest.href + "/" + syncset_id, data=manifest_map)