qontract-reconcile 0.10.1rc1116__py3-none-any.whl → 0.10.1rc1117__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.1rc1116.dist-info → qontract_reconcile-0.10.1rc1117.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc1116.dist-info → qontract_reconcile-0.10.1rc1117.dist-info}/RECORD +8 -8
- reconcile/change_owners/change_log_tracking.py +4 -2
- reconcile/change_owners/changes.py +1 -2
- reconcile/gql_definitions/common/namespaces.py +62 -0
- {qontract_reconcile-0.10.1rc1116.dist-info → qontract_reconcile-0.10.1rc1117.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc1116.dist-info → qontract_reconcile-0.10.1rc1117.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc1116.dist-info → qontract_reconcile-0.10.1rc1117.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc1116.dist-info → qontract_reconcile-0.10.1rc1117.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.1rc1117
|
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.1rc1116.dist-info → qontract_reconcile-0.10.1rc1117.dist-info}/RECORD
RENAMED
@@ -161,10 +161,10 @@ reconcile/aws_version_sync/merge_request_manager/merge_request_manager.py,sha256
|
|
161
161
|
reconcile/change_owners/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
162
162
|
reconcile/change_owners/approver.py,sha256=Z3_11vnK2WNOxjEEXVDh0224-_-qbt9d6mBeVE-7fsc,2259
|
163
163
|
reconcile/change_owners/bundle.py,sha256=h30fU-JmLH5a-rCAovpzTeTkkkgZztsZ5A2raee0YuU,5355
|
164
|
-
reconcile/change_owners/change_log_tracking.py,sha256=
|
164
|
+
reconcile/change_owners/change_log_tracking.py,sha256=qEGSH3C6FUxmz-rPNyQCqwM8kYK3tNtHVgQHzQjIWh0,7814
|
165
165
|
reconcile/change_owners/change_owners.py,sha256=0HRJhDm0oW3uYJFgzynqA1gA0lbhalhSkmWOiQmr-NM,17062
|
166
166
|
reconcile/change_owners/change_types.py,sha256=HEsoBduhcczAXZHwT26mr5sVPxtf8J6tsvjSDDI1ceI,32077
|
167
|
-
reconcile/change_owners/changes.py,sha256=
|
167
|
+
reconcile/change_owners/changes.py,sha256=YblT-JPFagctTphzd38SjVmj3k1YsgMzN48zGpnLYKM,18222
|
168
168
|
reconcile/change_owners/decision.py,sha256=iUJcIc_N_RqXIAY8D10RZqPMC2OinsHTMcqI6f6uylE,7606
|
169
169
|
reconcile/change_owners/diff.py,sha256=0vyu29xCL24ZhUa7hqBni0NaxoCYRXLwvA-h8V23YQ4,9009
|
170
170
|
reconcile/change_owners/implicit_ownership.py,sha256=6BehZvx4IjrphmOt_LLLk9_02Fl5BY5jd00Wuz_PBZk,4234
|
@@ -261,7 +261,7 @@ reconcile/gql_definitions/common/clusters_with_peering.py,sha256=B1Hi3u6rZZsl4bD
|
|
261
261
|
reconcile/gql_definitions/common/github_orgs.py,sha256=rZ0pDAA2_9hF9N-ykRZIxPtEmczTSjuA_k3nkp0k1W0,2039
|
262
262
|
reconcile/gql_definitions/common/jira_settings.py,sha256=Fmjxhlhr69kc4jkG_0k17fuYlQVucbNex0jXYu83wbY,1990
|
263
263
|
reconcile/gql_definitions/common/jiralert_settings.py,sha256=H96nMg_r2YcOvioj3aIkwqtFrALGSLt7uhbx9jGSUTo,1984
|
264
|
-
reconcile/gql_definitions/common/namespaces.py,sha256=
|
264
|
+
reconcile/gql_definitions/common/namespaces.py,sha256=HnNPJbrzbEknpX3e6l4wCmH6PawtwwSUbQCnbcq7x2s,11019
|
265
265
|
reconcile/gql_definitions/common/namespaces_minimal.py,sha256=XVt8LFe-bGYbjN3ysX3b9sFGmLX4snQ_A9ZouQGaaAI,3429
|
266
266
|
reconcile/gql_definitions/common/ocm_env_telemeter.py,sha256=jW0Q9WazDQVOxh4u0LMFG69rupBioJ8HGGjvR9bVK9Y,2424
|
267
267
|
reconcile/gql_definitions/common/ocm_environments.py,sha256=6-_4Bf6-wBWykNBxVAFYnDkgM8sSoATKdabakDR9ENs,2018
|
@@ -869,8 +869,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
|
|
869
869
|
tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
|
870
870
|
tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
|
871
871
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
872
|
-
qontract_reconcile-0.10.
|
873
|
-
qontract_reconcile-0.10.
|
874
|
-
qontract_reconcile-0.10.
|
875
|
-
qontract_reconcile-0.10.
|
876
|
-
qontract_reconcile-0.10.
|
872
|
+
qontract_reconcile-0.10.1rc1117.dist-info/METADATA,sha256=eFQI6iom-hmLWzKt9WhHMix-S8ijZ1vRdMmH0hVXCjw,2213
|
873
|
+
qontract_reconcile-0.10.1rc1117.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
874
|
+
qontract_reconcile-0.10.1rc1117.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
|
875
|
+
qontract_reconcile-0.10.1rc1117.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
876
|
+
qontract_reconcile-0.10.1rc1117.dist-info/RECORD,,
|
@@ -18,8 +18,8 @@ from reconcile.change_owners.changes import (
|
|
18
18
|
parse_bundle_changes,
|
19
19
|
)
|
20
20
|
from reconcile.typed_queries.apps import get_apps
|
21
|
-
from reconcile.typed_queries.external_resources import get_namespaces
|
22
21
|
from reconcile.typed_queries.jenkins import get_jenkins_configs
|
22
|
+
from reconcile.typed_queries.namespaces import get_namespaces
|
23
23
|
from reconcile.utils import gql
|
24
24
|
from reconcile.utils.defer import defer
|
25
25
|
from reconcile.utils.gitlab_api import MRState
|
@@ -135,7 +135,9 @@ class ChangeLogIntegration(QontractReconcileIntegration[ChangeLogIntegrationPara
|
|
135
135
|
diff = QontractServerDiff(**obj)
|
136
136
|
changes = aggregate_resource_changes(
|
137
137
|
bundle_changes=aggregate_file_moves(parse_bundle_changes(diff)),
|
138
|
-
content_store={
|
138
|
+
content_store={
|
139
|
+
c.path: c.dict(by_alias=True) for c in namespaces + jenkins_configs
|
140
|
+
},
|
139
141
|
supported_schemas={
|
140
142
|
"/openshift/namespace-1.yml",
|
141
143
|
"/dependencies/jenkins-config-1.yml",
|
@@ -10,7 +10,6 @@ from dataclasses import (
|
|
10
10
|
from typing import Any
|
11
11
|
|
12
12
|
import anymarkup
|
13
|
-
import jsonpath_ng
|
14
13
|
|
15
14
|
from reconcile.change_owners.bundle import (
|
16
15
|
DATAFILE_PATH_FIELD_NAME,
|
@@ -473,7 +472,7 @@ def aggregate_resource_changes(
|
|
473
472
|
new_content_sha="",
|
474
473
|
diffs=[
|
475
474
|
Diff(
|
476
|
-
path=
|
475
|
+
path=parse_jsonpath(file_ref.json_path),
|
477
476
|
diff_type=DiffType.CHANGED,
|
478
477
|
old=file_content,
|
479
478
|
new=file_content,
|
@@ -48,6 +48,7 @@ fragment VaultSecret on VaultSecret_v1 {
|
|
48
48
|
|
49
49
|
query Namespaces {
|
50
50
|
namespaces: namespaces_v1 {
|
51
|
+
path
|
51
52
|
name
|
52
53
|
delete
|
53
54
|
labels
|
@@ -60,6 +61,29 @@ query Namespaces {
|
|
60
61
|
email
|
61
62
|
}
|
62
63
|
}
|
64
|
+
openshiftResources {
|
65
|
+
provider
|
66
|
+
... on NamespaceOpenshiftResourceResource_v1 {
|
67
|
+
path {
|
68
|
+
content
|
69
|
+
}
|
70
|
+
}
|
71
|
+
... on NamespaceOpenshiftResourceResourceTemplate_v1 {
|
72
|
+
path {
|
73
|
+
content
|
74
|
+
}
|
75
|
+
}
|
76
|
+
... on NamespaceOpenshiftResourceRoute_v1 {
|
77
|
+
path {
|
78
|
+
content
|
79
|
+
}
|
80
|
+
}
|
81
|
+
... on NamespaceOpenshiftResourcePrometheusRule_v1 {
|
82
|
+
path {
|
83
|
+
content
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
63
87
|
managedExternalResources
|
64
88
|
externalResources {
|
65
89
|
provider
|
@@ -172,6 +196,42 @@ class AppV1(ConfiguredBaseModel):
|
|
172
196
|
service_owners: Optional[list[OwnerV1]] = Field(..., alias="serviceOwners")
|
173
197
|
|
174
198
|
|
199
|
+
class NamespaceOpenshiftResourceV1(ConfiguredBaseModel):
|
200
|
+
provider: str = Field(..., alias="provider")
|
201
|
+
|
202
|
+
|
203
|
+
class ResourceV1(ConfiguredBaseModel):
|
204
|
+
content: str = Field(..., alias="content")
|
205
|
+
|
206
|
+
|
207
|
+
class NamespaceOpenshiftResourceResourceV1(NamespaceOpenshiftResourceV1):
|
208
|
+
path: Optional[ResourceV1] = Field(..., alias="path")
|
209
|
+
|
210
|
+
|
211
|
+
class NamespaceOpenshiftResourceResourceTemplateV1_ResourceV1(ConfiguredBaseModel):
|
212
|
+
content: str = Field(..., alias="content")
|
213
|
+
|
214
|
+
|
215
|
+
class NamespaceOpenshiftResourceResourceTemplateV1(NamespaceOpenshiftResourceV1):
|
216
|
+
path: Optional[NamespaceOpenshiftResourceResourceTemplateV1_ResourceV1] = Field(..., alias="path")
|
217
|
+
|
218
|
+
|
219
|
+
class NamespaceOpenshiftResourceRouteV1_ResourceV1(ConfiguredBaseModel):
|
220
|
+
content: str = Field(..., alias="content")
|
221
|
+
|
222
|
+
|
223
|
+
class NamespaceOpenshiftResourceRouteV1(NamespaceOpenshiftResourceV1):
|
224
|
+
path: Optional[NamespaceOpenshiftResourceRouteV1_ResourceV1] = Field(..., alias="path")
|
225
|
+
|
226
|
+
|
227
|
+
class NamespaceOpenshiftResourcePrometheusRuleV1_ResourceV1(ConfiguredBaseModel):
|
228
|
+
content: str = Field(..., alias="content")
|
229
|
+
|
230
|
+
|
231
|
+
class NamespaceOpenshiftResourcePrometheusRuleV1(NamespaceOpenshiftResourceV1):
|
232
|
+
path: Optional[NamespaceOpenshiftResourcePrometheusRuleV1_ResourceV1] = Field(..., alias="path")
|
233
|
+
|
234
|
+
|
175
235
|
class ExternalResourcesProvisionerV1(ConfiguredBaseModel):
|
176
236
|
name: str = Field(..., alias="name")
|
177
237
|
|
@@ -261,12 +321,14 @@ class ResourceQuotaV1(ConfiguredBaseModel):
|
|
261
321
|
|
262
322
|
|
263
323
|
class NamespaceV1(ConfiguredBaseModel):
|
324
|
+
path: str = Field(..., alias="path")
|
264
325
|
name: str = Field(..., alias="name")
|
265
326
|
delete: Optional[bool] = Field(..., alias="delete")
|
266
327
|
labels: Optional[Json] = Field(..., alias="labels")
|
267
328
|
cluster_admin: Optional[bool] = Field(..., alias="clusterAdmin")
|
268
329
|
managed_roles: Optional[bool] = Field(..., alias="managedRoles")
|
269
330
|
app: AppV1 = Field(..., alias="app")
|
331
|
+
openshift_resources: Optional[list[Union[NamespaceOpenshiftResourceResourceV1, NamespaceOpenshiftResourceResourceTemplateV1, NamespaceOpenshiftResourceRouteV1, NamespaceOpenshiftResourcePrometheusRuleV1, NamespaceOpenshiftResourceV1]]] = Field(..., alias="openshiftResources")
|
270
332
|
managed_external_resources: Optional[bool] = Field(..., alias="managedExternalResources")
|
271
333
|
external_resources: Optional[list[Union[NamespaceTerraformProviderResourceAWSV1, NamespaceExternalResourceV1]]] = Field(..., alias="externalResources")
|
272
334
|
cluster: ClusterV1 = Field(..., alias="cluster")
|
{qontract_reconcile-0.10.1rc1116.dist-info → qontract_reconcile-0.10.1rc1117.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|