qontract-reconcile 0.10.1rc893__py3-none-any.whl → 0.10.1rc895__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.
- {qontract_reconcile-0.10.1rc893.dist-info → qontract_reconcile-0.10.1rc895.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc893.dist-info → qontract_reconcile-0.10.1rc895.dist-info}/RECORD +7 -6
- reconcile/typed_queries/dynatrace_environments.py +14 -0
- tools/qontract_cli.py +7 -2
- {qontract_reconcile-0.10.1rc893.dist-info → qontract_reconcile-0.10.1rc895.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc893.dist-info → qontract_reconcile-0.10.1rc895.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc893.dist-info → qontract_reconcile-0.10.1rc895.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc893.dist-info → qontract_reconcile-0.10.1rc895.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: qontract-reconcile
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.1rc895
|
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
|
{qontract_reconcile-0.10.1rc893.dist-info → qontract_reconcile-0.10.1rc895.dist-info}/RECORD
RENAMED
@@ -594,6 +594,7 @@ reconcile/typed_queries/clusters_minimal.py,sha256=bQCRqiHz6jUPPQFmfqKXouvmDuDC1
|
|
594
594
|
reconcile/typed_queries/clusters_with_dms.py,sha256=JDSKZXwO3QxT-uA1FaHxP8d4XiYA9CeeV2HEukppfxQ,519
|
595
595
|
reconcile/typed_queries/clusters_with_peering.py,sha256=lIai7SJJD0bqIJbe7virgrbYRqjLouSL2OpJD0itpAY,330
|
596
596
|
reconcile/typed_queries/dynatrace.py,sha256=8vXDXDIDf9_vN_efYwysDr4gLN7SCx4I2bOoNxQhbio,312
|
597
|
+
reconcile/typed_queries/dynatrace_environments.py,sha256=VV_7KzKG9wqGDV9wZLbcCJtfuzPhTV1wdg0YwAOaq3A,413
|
597
598
|
reconcile/typed_queries/external_resources.py,sha256=h1uzZzmtEGzoqSFhDMSAdxauGJoGy0stPuWbA0rkVKE,1503
|
598
599
|
reconcile/typed_queries/get_state_aws_account.py,sha256=CSJjVPWsUZ2rkGIt8ehoQt7hokFqrUDgG9HFlg2lVD8,492
|
599
600
|
reconcile/typed_queries/github_orgs.py,sha256=UZhoPl8qvA_tcO7CZlN8GuMKckt3ywd47Suu61rgHsc,258
|
@@ -812,7 +813,7 @@ tools/app_interface_metrics_exporter.py,sha256=zkwkxdAUAxjdc-pzx2_oJXG25fo0Fnyd5
|
|
812
813
|
tools/app_interface_reporter.py,sha256=uy9eRHf6EdvD8ZY2WYdroGXm18DOdnqVZyxaWN3Bm_0,17724
|
813
814
|
tools/glitchtip_access_reporter.py,sha256=oPBnk_YoDuljU3v0FaChzOwwnk4vap1xEE67QEjzdqs,2948
|
814
815
|
tools/glitchtip_access_revalidation.py,sha256=8kbBJk04mkq28kWoRDDkfCGIF3GRg3pJrFAh1sW0dbk,2821
|
815
|
-
tools/qontract_cli.py,sha256=
|
816
|
+
tools/qontract_cli.py,sha256=OPbq5AEL5wPD0ZFiUCdbq4-X-NMkk0Ewn9MsCaqUqlg,124263
|
816
817
|
tools/sd_app_sre_alert_report.py,sha256=e9vAdyenUz2f5c8-z-5WY0wv-SJ9aePKDH2r4IwB6pc,5063
|
817
818
|
tools/template_validation.py,sha256=qpKYaTgk0GOPGa2Ct5_5sKdwIHtCAKIBGzsMPuJU5fw,3371
|
818
819
|
tools/cli_commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -843,8 +844,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
|
|
843
844
|
tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
|
844
845
|
tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
|
845
846
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
846
|
-
qontract_reconcile-0.10.
|
847
|
-
qontract_reconcile-0.10.
|
848
|
-
qontract_reconcile-0.10.
|
849
|
-
qontract_reconcile-0.10.
|
850
|
-
qontract_reconcile-0.10.
|
847
|
+
qontract_reconcile-0.10.1rc895.dist-info/METADATA,sha256=nYyPD-kRgAAdkzf0grC3_RGx8tTN5ZkcFY_R_LMUEfE,2273
|
848
|
+
qontract_reconcile-0.10.1rc895.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
849
|
+
qontract_reconcile-0.10.1rc895.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
|
850
|
+
qontract_reconcile-0.10.1rc895.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
851
|
+
qontract_reconcile-0.10.1rc895.dist-info/RECORD,,
|
@@ -0,0 +1,14 @@
|
|
1
|
+
from reconcile.gql_definitions.dynatrace_token_provider.dynatrace_bootstrap_tokens import (
|
2
|
+
DynatraceEnvironmentV1,
|
3
|
+
query,
|
4
|
+
)
|
5
|
+
from reconcile.utils import gql
|
6
|
+
from reconcile.utils.gql import GqlApi
|
7
|
+
|
8
|
+
|
9
|
+
def get_dynatrace_environments(
|
10
|
+
api: GqlApi | None = None,
|
11
|
+
) -> list[DynatraceEnvironmentV1]:
|
12
|
+
api = api if api else gql.get_api()
|
13
|
+
data = query(api.query)
|
14
|
+
return list(data.environments or [])
|
tools/qontract_cli.py
CHANGED
@@ -3680,14 +3680,19 @@ def get_promotion_state(channel: str, sha: str):
|
|
3680
3680
|
SaasPromotionState,
|
3681
3681
|
)
|
3682
3682
|
|
3683
|
+
bucket = os.environ.get("APP_INTERFACE_STATE_BUCKET")
|
3684
|
+
region = os.environ.get("APP_INTERFACE_STATE_BUCKET_REGION", "us-east-1")
|
3683
3685
|
promotion_state = SaasPromotionState.create(promotion_state=None, saas_files=None)
|
3684
3686
|
for publisher_id, state in promotion_state.get(channel=channel, sha=sha).items():
|
3685
3687
|
print()
|
3686
3688
|
if not state:
|
3687
3689
|
print(f"No state found for {publisher_id=}")
|
3688
3690
|
else:
|
3689
|
-
print(f"
|
3690
|
-
print(
|
3691
|
+
print(f"{publisher_id=}")
|
3692
|
+
print(
|
3693
|
+
f"State link: https://{region}.console.aws.amazon.com/s3/object/{bucket}?region=us-east-1&bucketType=general&prefix=state/openshift-saas-deploy/promotions_v2/{channel}/{publisher_id}/{sha}"
|
3694
|
+
)
|
3695
|
+
print(f"Content: {state}")
|
3691
3696
|
|
3692
3697
|
|
3693
3698
|
@root.command()
|
File without changes
|
File without changes
|
{qontract_reconcile-0.10.1rc893.dist-info → qontract_reconcile-0.10.1rc895.dist-info}/top_level.txt
RENAMED
File without changes
|