qontract-reconcile 0.10.2.dev243__py3-none-any.whl → 0.10.2.dev244__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.2.dev243.dist-info → qontract_reconcile-0.10.2.dev244.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.2.dev243.dist-info → qontract_reconcile-0.10.2.dev244.dist-info}/RECORD +7 -7
- reconcile/automated_actions/config/integration.py +23 -5
- reconcile/gql_definitions/automated_actions/instance.py +40 -1
- reconcile/gql_definitions/introspection.json +176 -0
- {qontract_reconcile-0.10.2.dev243.dist-info → qontract_reconcile-0.10.2.dev244.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.2.dev243.dist-info → qontract_reconcile-0.10.2.dev244.dist-info}/entry_points.txt +0 -0
{qontract_reconcile-0.10.2.dev243.dist-info → qontract_reconcile-0.10.2.dev244.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: qontract-reconcile
|
3
|
-
Version: 0.10.2.
|
3
|
+
Version: 0.10.2.dev244
|
4
4
|
Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
|
5
5
|
Project-URL: homepage, https://github.com/app-sre/qontract-reconcile
|
6
6
|
Project-URL: repository, https://github.com/app-sre/qontract-reconcile
|
{qontract_reconcile-0.10.2.dev243.dist-info → qontract_reconcile-0.10.2.dev244.dist-info}/RECORD
RENAMED
@@ -138,7 +138,7 @@ reconcile/aus/version_gates/ocp_gate_handler.py,sha256=RW1ppDaCZXVegV9AzzqYXxDUu
|
|
138
138
|
reconcile/aus/version_gates/sts_version_gate_handler.py,sha256=swwwz0YyvrEBf_InqrRRBCt2QzHYNvvq8jz9aYwElh4,3663
|
139
139
|
reconcile/automated_actions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
140
140
|
reconcile/automated_actions/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
141
|
-
reconcile/automated_actions/config/integration.py,sha256=
|
141
|
+
reconcile/automated_actions/config/integration.py,sha256=EbVJGyEAFf91dHiIlnwbetbqZ3Y7HJOez2Fnexzd550,13853
|
142
142
|
reconcile/aws_account_manager/README.md,sha256=_XFM3GZNHUzv--e_navqJuaUWpjC6QrHfulreHynFf0,262
|
143
143
|
reconcile/aws_account_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
144
144
|
reconcile/aws_account_manager/integration.py,sha256=XTamC824imAezzVoQhhwdMOawNcPCOghR_y7i_8bpJI,15343
|
@@ -216,7 +216,7 @@ reconcile/glitchtip_project_alerts/integration.py,sha256=d3PMy-mQSbSZdIGAVaZCA2U
|
|
216
216
|
reconcile/glitchtip_project_dsn/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
217
217
|
reconcile/glitchtip_project_dsn/integration.py,sha256=2iugub-kHYkHNK33n0v9_TeWonuxCPah_VkoTPvaajE,8077
|
218
218
|
reconcile/gql_definitions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
219
|
-
reconcile/gql_definitions/introspection.json,sha256=
|
219
|
+
reconcile/gql_definitions/introspection.json,sha256=_PKgzpmgWQJ8HF4irKjyxjOTXdw4YRgytoZQWJfigao,2346322
|
220
220
|
reconcile/gql_definitions/acs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
221
221
|
reconcile/gql_definitions/acs/acs_instances.py,sha256=L91WW9LbhJbBSrECqShQpFtjoBOsmNIYLRpMbx1io5o,2181
|
222
222
|
reconcile/gql_definitions/acs/acs_policies.py,sha256=Ygpfl2-VkYLSlJvHgp_dJBfb66K_Rwfdfpsa18w1v1s,4338
|
@@ -230,7 +230,7 @@ reconcile/gql_definitions/app_sre_tekton_access_revalidation/__init__.py,sha256=
|
|
230
230
|
reconcile/gql_definitions/app_sre_tekton_access_revalidation/roles.py,sha256=8Y4NsS5T7tumDWxY5MuoV50MK2i-DsLYSpCRjb7KaLE,2353
|
231
231
|
reconcile/gql_definitions/app_sre_tekton_access_revalidation/users.py,sha256=XdVxBxiyTR6Cy939EHNw__0k7iWrZWlhrgS5DakST0I,2504
|
232
232
|
reconcile/gql_definitions/automated_actions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
233
|
-
reconcile/gql_definitions/automated_actions/instance.py,sha256=
|
233
|
+
reconcile/gql_definitions/automated_actions/instance.py,sha256=6UPBKXPSjBsTXGdRQMK1ZXuns5pMPgYBscO3LxU3Gow,12406
|
234
234
|
reconcile/gql_definitions/aws_account_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
235
235
|
reconcile/gql_definitions/aws_account_manager/aws_accounts.py,sha256=vF51KrY2gwX0J9vESiaRMPQqdAMEtz9f_tBq52bInp0,5148
|
236
236
|
reconcile/gql_definitions/aws_ami_cleanup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -799,7 +799,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
799
799
|
tools/saas_promotion_state/saas_promotion_state.py,sha256=UfwwRLS5Ya4_Nh1w5n1dvoYtchQvYE9yj1VANt2IKqI,3925
|
800
800
|
tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
|
801
801
|
tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
|
802
|
-
qontract_reconcile-0.10.2.
|
803
|
-
qontract_reconcile-0.10.2.
|
804
|
-
qontract_reconcile-0.10.2.
|
805
|
-
qontract_reconcile-0.10.2.
|
802
|
+
qontract_reconcile-0.10.2.dev244.dist-info/METADATA,sha256=vSTlPOJMBSSh7kEWJNZt5D815lP-mxDRAnqbAYkBwRs,24167
|
803
|
+
qontract_reconcile-0.10.2.dev244.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
804
|
+
qontract_reconcile-0.10.2.dev244.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
|
805
|
+
qontract_reconcile-0.10.2.dev244.dist-info/RECORD,,
|
@@ -19,6 +19,7 @@ from reconcile.gql_definitions.automated_actions.instance import (
|
|
19
19
|
AutomatedActionActionListV1,
|
20
20
|
AutomatedActionExternalResourceFlushElastiCacheV1,
|
21
21
|
AutomatedActionExternalResourceRdsRebootV1,
|
22
|
+
AutomatedActionExternalResourceRdsSnapshotV1,
|
22
23
|
AutomatedActionOpenshiftWorkloadRestartArgumentV1,
|
23
24
|
AutomatedActionOpenshiftWorkloadRestartV1,
|
24
25
|
AutomatedActionsInstanceV1,
|
@@ -178,13 +179,30 @@ class AutomatedActionsConfigIntegration(
|
|
178
179
|
"identifier": ec_arg.identifier,
|
179
180
|
})
|
180
181
|
case AutomatedActionExternalResourceRdsRebootV1():
|
181
|
-
for
|
182
|
-
for
|
183
|
-
|
182
|
+
for rds_reboot_arg in action.external_resource_rds_reboot_arguments:
|
183
|
+
for rds_reboot_er in (
|
184
|
+
rds_reboot_arg.namespace.external_resources or []
|
185
|
+
):
|
186
|
+
if not isinstance(rds_reboot_er.provisioner, AWSAccountV1):
|
184
187
|
continue
|
185
188
|
parameters.append({
|
186
|
-
"account": f"^{
|
187
|
-
"identifier":
|
189
|
+
"account": f"^{rds_reboot_er.provisioner.name}$",
|
190
|
+
"identifier": rds_reboot_arg.identifier,
|
191
|
+
})
|
192
|
+
case AutomatedActionExternalResourceRdsSnapshotV1():
|
193
|
+
for (
|
194
|
+
rds_snapshot_arg
|
195
|
+
) in action.external_resource_rds_snapshot_arguments:
|
196
|
+
for rds_snapshot_er in (
|
197
|
+
rds_snapshot_arg.namespace.external_resources or []
|
198
|
+
):
|
199
|
+
if not isinstance(
|
200
|
+
rds_snapshot_er.provisioner, AWSAccountV1
|
201
|
+
):
|
202
|
+
continue
|
203
|
+
parameters.append({
|
204
|
+
"account": f"^{rds_snapshot_er.provisioner.name}$",
|
205
|
+
"identifier": rds_snapshot_arg.identifier,
|
188
206
|
})
|
189
207
|
case AutomatedActionOpenshiftWorkloadRestartV1():
|
190
208
|
parameters.extend(
|
@@ -118,6 +118,20 @@ query AutomatedActionsInstances {
|
|
118
118
|
identifier
|
119
119
|
}
|
120
120
|
}
|
121
|
+
... on AutomatedActionExternalResourceRdsSnapshot_v1 {
|
122
|
+
external_resource_rds_snapshot_arguments: arguments {
|
123
|
+
namespace {
|
124
|
+
externalResources {
|
125
|
+
provisioner {
|
126
|
+
... on AWSAccount_v1 {
|
127
|
+
name
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
identifier
|
133
|
+
}
|
134
|
+
}
|
121
135
|
... on AutomatedActionOpenshiftWorkloadRestart_v1 {
|
122
136
|
openshift_workload_restart_arguments: arguments {
|
123
137
|
namespace {
|
@@ -237,6 +251,31 @@ class AutomatedActionExternalResourceRdsRebootV1(AutomatedActionV1):
|
|
237
251
|
external_resource_rds_reboot_arguments: list[AutomatedActionExternalResourceRdsRebootV1_AutomatedActionExternalResourceArgumentV1] = Field(..., alias="external_resource_rds_reboot_arguments")
|
238
252
|
|
239
253
|
|
254
|
+
class AutomatedActionExternalResourceRdsSnapshotV1_AutomatedActionExternalResourceArgumentV1_NamespaceV1_NamespaceExternalResourceV1_ExternalResourcesProvisionerV1(ConfiguredBaseModel):
|
255
|
+
...
|
256
|
+
|
257
|
+
|
258
|
+
class AutomatedActionExternalResourceRdsSnapshotV1_AutomatedActionExternalResourceArgumentV1_NamespaceV1_NamespaceExternalResourceV1_ExternalResourcesProvisionerV1_AWSAccountV1(AutomatedActionExternalResourceRdsSnapshotV1_AutomatedActionExternalResourceArgumentV1_NamespaceV1_NamespaceExternalResourceV1_ExternalResourcesProvisionerV1):
|
259
|
+
name: str = Field(..., alias="name")
|
260
|
+
|
261
|
+
|
262
|
+
class AutomatedActionExternalResourceRdsSnapshotV1_AutomatedActionExternalResourceArgumentV1_NamespaceV1_NamespaceExternalResourceV1(ConfiguredBaseModel):
|
263
|
+
provisioner: Union[AutomatedActionExternalResourceRdsSnapshotV1_AutomatedActionExternalResourceArgumentV1_NamespaceV1_NamespaceExternalResourceV1_ExternalResourcesProvisionerV1_AWSAccountV1, AutomatedActionExternalResourceRdsSnapshotV1_AutomatedActionExternalResourceArgumentV1_NamespaceV1_NamespaceExternalResourceV1_ExternalResourcesProvisionerV1] = Field(..., alias="provisioner")
|
264
|
+
|
265
|
+
|
266
|
+
class AutomatedActionExternalResourceRdsSnapshotV1_AutomatedActionExternalResourceArgumentV1_NamespaceV1(ConfiguredBaseModel):
|
267
|
+
external_resources: Optional[list[AutomatedActionExternalResourceRdsSnapshotV1_AutomatedActionExternalResourceArgumentV1_NamespaceV1_NamespaceExternalResourceV1]] = Field(..., alias="externalResources")
|
268
|
+
|
269
|
+
|
270
|
+
class AutomatedActionExternalResourceRdsSnapshotV1_AutomatedActionExternalResourceArgumentV1(ConfiguredBaseModel):
|
271
|
+
namespace: AutomatedActionExternalResourceRdsSnapshotV1_AutomatedActionExternalResourceArgumentV1_NamespaceV1 = Field(..., alias="namespace")
|
272
|
+
identifier: str = Field(..., alias="identifier")
|
273
|
+
|
274
|
+
|
275
|
+
class AutomatedActionExternalResourceRdsSnapshotV1(AutomatedActionV1):
|
276
|
+
external_resource_rds_snapshot_arguments: list[AutomatedActionExternalResourceRdsSnapshotV1_AutomatedActionExternalResourceArgumentV1] = Field(..., alias="external_resource_rds_snapshot_arguments")
|
277
|
+
|
278
|
+
|
240
279
|
class DisableClusterAutomationsV1(ConfiguredBaseModel):
|
241
280
|
integrations: Optional[list[str]] = Field(..., alias="integrations")
|
242
281
|
|
@@ -265,7 +304,7 @@ class AutomatedActionOpenshiftWorkloadRestartV1(AutomatedActionV1):
|
|
265
304
|
class AutomatedActionsInstanceV1(ConfiguredBaseModel):
|
266
305
|
name: str = Field(..., alias="name")
|
267
306
|
deployment: NamespaceV1 = Field(..., alias="deployment")
|
268
|
-
actions: Optional[list[Union[AutomatedActionActionListV1, AutomatedActionExternalResourceFlushElastiCacheV1, AutomatedActionExternalResourceRdsRebootV1, AutomatedActionOpenshiftWorkloadRestartV1, AutomatedActionV1]]] = Field(..., alias="actions")
|
307
|
+
actions: Optional[list[Union[AutomatedActionActionListV1, AutomatedActionExternalResourceFlushElastiCacheV1, AutomatedActionExternalResourceRdsRebootV1, AutomatedActionExternalResourceRdsSnapshotV1, AutomatedActionOpenshiftWorkloadRestartV1, AutomatedActionV1]]] = Field(..., alias="actions")
|
269
308
|
|
270
309
|
|
271
310
|
class AutomatedActionsInstancesQueryData(ConfiguredBaseModel):
|
@@ -5696,6 +5696,11 @@
|
|
5696
5696
|
"name": "AutomatedActionExternalResourceRdsReboot_v1",
|
5697
5697
|
"ofType": null
|
5698
5698
|
},
|
5699
|
+
{
|
5700
|
+
"kind": "OBJECT",
|
5701
|
+
"name": "AutomatedActionExternalResourceRdsSnapshot_v1",
|
5702
|
+
"ofType": null
|
5703
|
+
},
|
5699
5704
|
{
|
5700
5705
|
"kind": "OBJECT",
|
5701
5706
|
"name": "AutomatedActionNoOp_v1",
|
@@ -27286,6 +27291,11 @@
|
|
27286
27291
|
"name": "AutomatedActionExternalResourceRdsReboot_v1",
|
27287
27292
|
"ofType": null
|
27288
27293
|
},
|
27294
|
+
{
|
27295
|
+
"kind": "OBJECT",
|
27296
|
+
"name": "AutomatedActionExternalResourceRdsSnapshot_v1",
|
27297
|
+
"ofType": null
|
27298
|
+
},
|
27289
27299
|
{
|
27290
27300
|
"kind": "OBJECT",
|
27291
27301
|
"name": "AutomatedActionNoOp_v1",
|
@@ -53550,6 +53560,172 @@
|
|
53550
53560
|
"enumValues": null,
|
53551
53561
|
"possibleTypes": null
|
53552
53562
|
},
|
53563
|
+
{
|
53564
|
+
"kind": "OBJECT",
|
53565
|
+
"name": "AutomatedActionExternalResourceRdsSnapshot_v1",
|
53566
|
+
"description": null,
|
53567
|
+
"fields": [
|
53568
|
+
{
|
53569
|
+
"name": "schema",
|
53570
|
+
"description": null,
|
53571
|
+
"args": [],
|
53572
|
+
"type": {
|
53573
|
+
"kind": "NON_NULL",
|
53574
|
+
"name": null,
|
53575
|
+
"ofType": {
|
53576
|
+
"kind": "SCALAR",
|
53577
|
+
"name": "String",
|
53578
|
+
"ofType": null
|
53579
|
+
}
|
53580
|
+
},
|
53581
|
+
"isDeprecated": false,
|
53582
|
+
"deprecationReason": null
|
53583
|
+
},
|
53584
|
+
{
|
53585
|
+
"name": "path",
|
53586
|
+
"description": null,
|
53587
|
+
"args": [],
|
53588
|
+
"type": {
|
53589
|
+
"kind": "NON_NULL",
|
53590
|
+
"name": null,
|
53591
|
+
"ofType": {
|
53592
|
+
"kind": "SCALAR",
|
53593
|
+
"name": "String",
|
53594
|
+
"ofType": null
|
53595
|
+
}
|
53596
|
+
},
|
53597
|
+
"isDeprecated": false,
|
53598
|
+
"deprecationReason": null
|
53599
|
+
},
|
53600
|
+
{
|
53601
|
+
"name": "type",
|
53602
|
+
"description": null,
|
53603
|
+
"args": [],
|
53604
|
+
"type": {
|
53605
|
+
"kind": "NON_NULL",
|
53606
|
+
"name": null,
|
53607
|
+
"ofType": {
|
53608
|
+
"kind": "SCALAR",
|
53609
|
+
"name": "String",
|
53610
|
+
"ofType": null
|
53611
|
+
}
|
53612
|
+
},
|
53613
|
+
"isDeprecated": false,
|
53614
|
+
"deprecationReason": null
|
53615
|
+
},
|
53616
|
+
{
|
53617
|
+
"name": "description",
|
53618
|
+
"description": null,
|
53619
|
+
"args": [],
|
53620
|
+
"type": {
|
53621
|
+
"kind": "SCALAR",
|
53622
|
+
"name": "String",
|
53623
|
+
"ofType": null
|
53624
|
+
},
|
53625
|
+
"isDeprecated": false,
|
53626
|
+
"deprecationReason": null
|
53627
|
+
},
|
53628
|
+
{
|
53629
|
+
"name": "maxOps",
|
53630
|
+
"description": null,
|
53631
|
+
"args": [],
|
53632
|
+
"type": {
|
53633
|
+
"kind": "NON_NULL",
|
53634
|
+
"name": null,
|
53635
|
+
"ofType": {
|
53636
|
+
"kind": "SCALAR",
|
53637
|
+
"name": "Int",
|
53638
|
+
"ofType": null
|
53639
|
+
}
|
53640
|
+
},
|
53641
|
+
"isDeprecated": false,
|
53642
|
+
"deprecationReason": null
|
53643
|
+
},
|
53644
|
+
{
|
53645
|
+
"name": "instances",
|
53646
|
+
"description": null,
|
53647
|
+
"args": [],
|
53648
|
+
"type": {
|
53649
|
+
"kind": "NON_NULL",
|
53650
|
+
"name": null,
|
53651
|
+
"ofType": {
|
53652
|
+
"kind": "LIST",
|
53653
|
+
"name": null,
|
53654
|
+
"ofType": {
|
53655
|
+
"kind": "NON_NULL",
|
53656
|
+
"name": null,
|
53657
|
+
"ofType": {
|
53658
|
+
"kind": "OBJECT",
|
53659
|
+
"name": "AutomatedActionsInstance_v1",
|
53660
|
+
"ofType": null
|
53661
|
+
}
|
53662
|
+
}
|
53663
|
+
}
|
53664
|
+
},
|
53665
|
+
"isDeprecated": false,
|
53666
|
+
"deprecationReason": null
|
53667
|
+
},
|
53668
|
+
{
|
53669
|
+
"name": "permissions",
|
53670
|
+
"description": null,
|
53671
|
+
"args": [],
|
53672
|
+
"type": {
|
53673
|
+
"kind": "LIST",
|
53674
|
+
"name": null,
|
53675
|
+
"ofType": {
|
53676
|
+
"kind": "NON_NULL",
|
53677
|
+
"name": null,
|
53678
|
+
"ofType": {
|
53679
|
+
"kind": "OBJECT",
|
53680
|
+
"name": "PermissionAutomatedActions_v1",
|
53681
|
+
"ofType": null
|
53682
|
+
}
|
53683
|
+
}
|
53684
|
+
},
|
53685
|
+
"isDeprecated": false,
|
53686
|
+
"deprecationReason": null
|
53687
|
+
},
|
53688
|
+
{
|
53689
|
+
"name": "arguments",
|
53690
|
+
"description": null,
|
53691
|
+
"args": [],
|
53692
|
+
"type": {
|
53693
|
+
"kind": "NON_NULL",
|
53694
|
+
"name": null,
|
53695
|
+
"ofType": {
|
53696
|
+
"kind": "LIST",
|
53697
|
+
"name": null,
|
53698
|
+
"ofType": {
|
53699
|
+
"kind": "NON_NULL",
|
53700
|
+
"name": null,
|
53701
|
+
"ofType": {
|
53702
|
+
"kind": "OBJECT",
|
53703
|
+
"name": "AutomatedActionExternalResourceArgument_v1",
|
53704
|
+
"ofType": null
|
53705
|
+
}
|
53706
|
+
}
|
53707
|
+
}
|
53708
|
+
},
|
53709
|
+
"isDeprecated": false,
|
53710
|
+
"deprecationReason": null
|
53711
|
+
}
|
53712
|
+
],
|
53713
|
+
"inputFields": null,
|
53714
|
+
"interfaces": [
|
53715
|
+
{
|
53716
|
+
"kind": "INTERFACE",
|
53717
|
+
"name": "AutomatedAction_v1",
|
53718
|
+
"ofType": null
|
53719
|
+
},
|
53720
|
+
{
|
53721
|
+
"kind": "INTERFACE",
|
53722
|
+
"name": "DatafileObject_v1",
|
53723
|
+
"ofType": null
|
53724
|
+
}
|
53725
|
+
],
|
53726
|
+
"enumValues": null,
|
53727
|
+
"possibleTypes": null
|
53728
|
+
},
|
53553
53729
|
{
|
53554
53730
|
"kind": "OBJECT",
|
53555
53731
|
"name": "AutomatedActionNoOp_v1",
|
{qontract_reconcile-0.10.2.dev243.dist-info → qontract_reconcile-0.10.2.dev244.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|