qontract-reconcile 0.10.1rc887__py3-none-any.whl → 0.10.1rc888__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.1rc887.dist-info → qontract_reconcile-0.10.1rc888.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc887.dist-info → qontract_reconcile-0.10.1rc888.dist-info}/RECORD +9 -7
- reconcile/cli.py +17 -0
- reconcile/dynatrace_token_provider/integration.py +1 -1
- reconcile/dynatrace_token_provider/integration_v2.py +20 -0
- reconcile/dynatrace_token_provider/meta.py +1 -0
- {qontract_reconcile-0.10.1rc887.dist-info → qontract_reconcile-0.10.1rc888.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc887.dist-info → qontract_reconcile-0.10.1rc888.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc887.dist-info → qontract_reconcile-0.10.1rc888.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc887.dist-info → qontract_reconcile-0.10.1rc888.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.1rc888
|
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.1rc887.dist-info → qontract_reconcile-0.10.1rc888.dist-info}/RECORD
RENAMED
@@ -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=
|
13
|
+
reconcile/cli.py,sha256=YHpIxOaOuRlpBCXtlbiJR2fRjAMK0_4vJULYnRO9CS4,105636
|
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=4gJ_VXOOPXPNrJIkSlOr8N1PD60ciZZqSBobNPhXvUA,4768
|
@@ -179,7 +179,9 @@ reconcile/cna/assets/asset.py,sha256=KWgA4fuDAEGsJwmR52WwK_YgSJMW-1cV2la3lmNf4iE
|
|
179
179
|
reconcile/cna/assets/asset_factory.py,sha256=7T7X_J6xIsoGETqBRI45_EyIKEdQcnRPt_GAuVuLQcc,785
|
180
180
|
reconcile/cna/assets/null.py,sha256=85mVh97atCoC0aLuX47poTZiyOthmziJeBsUw0c924w,1658
|
181
181
|
reconcile/dynatrace_token_provider/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
182
|
-
reconcile/dynatrace_token_provider/integration.py,sha256=
|
182
|
+
reconcile/dynatrace_token_provider/integration.py,sha256=Q7XCnlqoXb4uRsatLciEQlbTSU-HjCRmTd0AHhkxagU,16541
|
183
|
+
reconcile/dynatrace_token_provider/integration_v2.py,sha256=Si-hwvGSnC4kVF33-QBZ9FTc4Jfsl_PcESbfl_XmVL8,558
|
184
|
+
reconcile/dynatrace_token_provider/meta.py,sha256=f1EdgTS-fuQMUnBmzQFNwvo3Rr9mzNO2R5aOH44oCYg,50
|
183
185
|
reconcile/dynatrace_token_provider/metrics.py,sha256=xiKkl8fTEBQaXJelGCPNTZhHAWdO1M3pCXNr_Tei63c,1285
|
184
186
|
reconcile/external_resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
185
187
|
reconcile/external_resources/aws.py,sha256=JvjKaABy2Pg8u8Lq82Acv4zMvpE3_qGKes7OG-zlHOM,2956
|
@@ -841,8 +843,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
|
|
841
843
|
tools/test/test_saas_promotion_state.py,sha256=48Qe5UA5WTI5NVgL7Nz0TSS77osetcijfHNCNdsHfSI,2726
|
842
844
|
tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
|
843
845
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
844
|
-
qontract_reconcile-0.10.
|
845
|
-
qontract_reconcile-0.10.
|
846
|
-
qontract_reconcile-0.10.
|
847
|
-
qontract_reconcile-0.10.
|
848
|
-
qontract_reconcile-0.10.
|
846
|
+
qontract_reconcile-0.10.1rc888.dist-info/METADATA,sha256=Jdlu3njSekBAi5WRIsJmrYWirEt8p6xfH9Iz73XPjK8,2273
|
847
|
+
qontract_reconcile-0.10.1rc888.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
848
|
+
qontract_reconcile-0.10.1rc888.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
|
849
|
+
qontract_reconcile-0.10.1rc888.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
850
|
+
qontract_reconcile-0.10.1rc888.dist-info/RECORD,,
|
reconcile/cli.py
CHANGED
@@ -3045,8 +3045,25 @@ def dynatrace_token_provider(ctx, ocm_org_ids):
|
|
3045
3045
|
DynatraceTokenProviderIntegration,
|
3046
3046
|
DynatraceTokenProviderIntegrationParams,
|
3047
3047
|
)
|
3048
|
+
from reconcile.dynatrace_token_provider.integration_v2 import (
|
3049
|
+
DynatraceTokenProviderIntegrationParamsV2,
|
3050
|
+
DynatraceTokenProviderIntegrationV2,
|
3051
|
+
)
|
3048
3052
|
|
3049
3053
|
parsed_ocm_org_ids = set(ocm_org_ids.split(",")) if ocm_org_ids else None
|
3054
|
+
|
3055
|
+
# We will remove V1 once migrations towards new token declaration is done
|
3056
|
+
# Run V2
|
3057
|
+
run_class_integration(
|
3058
|
+
integration=DynatraceTokenProviderIntegrationV2(
|
3059
|
+
DynatraceTokenProviderIntegrationParamsV2(
|
3060
|
+
ocm_organization_ids=parsed_ocm_org_ids
|
3061
|
+
)
|
3062
|
+
),
|
3063
|
+
ctx=ctx.obj,
|
3064
|
+
)
|
3065
|
+
|
3066
|
+
# Run V1
|
3050
3067
|
run_class_integration(
|
3051
3068
|
integration=DynatraceTokenProviderIntegration(
|
3052
3069
|
DynatraceTokenProviderIntegrationParams(
|
@@ -8,6 +8,7 @@ from typing import Any
|
|
8
8
|
from dynatrace import Dynatrace
|
9
9
|
from dynatrace.environment_v2.tokens_api import ApiTokenCreated
|
10
10
|
|
11
|
+
from reconcile.dynatrace_token_provider.meta import QONTRACT_INTEGRATION
|
11
12
|
from reconcile.dynatrace_token_provider.metrics import (
|
12
13
|
DTPClustersManagedGauge,
|
13
14
|
DTPOrganizationErrorRate,
|
@@ -52,7 +53,6 @@ from reconcile.utils.runtime.integration import (
|
|
52
53
|
)
|
53
54
|
from reconcile.utils.secret_reader import SecretReaderBase
|
54
55
|
|
55
|
-
QONTRACT_INTEGRATION = "dynatrace-token-provider"
|
56
56
|
SYNCSET_ID = "ext-dynatrace-tokens-dtp"
|
57
57
|
SECRET_NAME = "dynatrace-token-dtp"
|
58
58
|
SECRET_NAMESPACE = "dynatrace"
|
@@ -0,0 +1,20 @@
|
|
1
|
+
from reconcile.dynatrace_token_provider.meta import QONTRACT_INTEGRATION
|
2
|
+
from reconcile.utils.runtime.integration import (
|
3
|
+
PydanticRunParams,
|
4
|
+
QontractReconcileIntegration,
|
5
|
+
)
|
6
|
+
|
7
|
+
|
8
|
+
class DynatraceTokenProviderIntegrationParamsV2(PydanticRunParams):
|
9
|
+
ocm_organization_ids: set[str] | None = None
|
10
|
+
|
11
|
+
|
12
|
+
class DynatraceTokenProviderIntegrationV2(
|
13
|
+
QontractReconcileIntegration[DynatraceTokenProviderIntegrationParamsV2]
|
14
|
+
):
|
15
|
+
@property
|
16
|
+
def name(self) -> str:
|
17
|
+
return QONTRACT_INTEGRATION
|
18
|
+
|
19
|
+
def run(self, dry_run: bool) -> None:
|
20
|
+
pass
|
@@ -0,0 +1 @@
|
|
1
|
+
QONTRACT_INTEGRATION = "dynatrace-token-provider"
|
File without changes
|
File without changes
|
{qontract_reconcile-0.10.1rc887.dist-info → qontract_reconcile-0.10.1rc888.dist-info}/top_level.txt
RENAMED
File without changes
|