qontract-reconcile 0.10.2.dev217__py3-none-any.whl → 0.10.2.dev219__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.4
2
2
  Name: qontract-reconcile
3
- Version: 0.10.2.dev217
3
+ Version: 0.10.2.dev219
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
@@ -9,7 +9,7 @@ reconcile/aws_iam_password_reset.py,sha256=O0JX2N5kNRKs3u2xzu4NNrI6p0ag5JWy3MTsv
9
9
  reconcile/aws_support_cases_sos.py,sha256=PDhilxQ4TBxVnxUPIUdTbKEaNUI0wzPiEsB91oHT2fY,3384
10
10
  reconcile/blackbox_exporter_endpoint_monitoring.py,sha256=O1wFp52EyF538c6txaWBs8eMtUIy19gyHZ6VzJ6QXS8,3512
11
11
  reconcile/checkpoint.py,sha256=_JhMxrye5BgkRMxWYuf7Upli6XayPINKSsuo3ynHTRc,5010
12
- reconcile/cli.py,sha256=8HiAfB2-MgW5KA3QTp8pU5qmwVZFtcWyJrYTdvm4VDU,115234
12
+ reconcile/cli.py,sha256=Pzp2XCmbkw_IH6YNemnnXEFqI-KSQNaDtg81PI-H5po,114594
13
13
  reconcile/closedbox_endpoint_monitoring_base.py,sha256=al7m8EgnnYx90rY1REryW3byN_ItfJfAzEeLtjbCfi0,4921
14
14
  reconcile/cluster_deployment_mapper.py,sha256=5gumAaRCcFXsabUJ1dnuUy9WrP_FEEM5JnOnE8ch9sE,2326
15
15
  reconcile/dashdotdb_base.py,sha256=83ZWIf5JJk3P_D69y2TmXRcQr6ELJGlv10OM0h7fJVs,4767
@@ -815,7 +815,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
815
815
  tools/saas_promotion_state/saas_promotion_state.py,sha256=UfwwRLS5Ya4_Nh1w5n1dvoYtchQvYE9yj1VANt2IKqI,3925
816
816
  tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
817
817
  tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
818
- qontract_reconcile-0.10.2.dev217.dist-info/METADATA,sha256=dZSO1ZcP5dSwPE_3DZMsXYS0TsbGTuknjMBveq8yS78,24555
819
- qontract_reconcile-0.10.2.dev217.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
820
- qontract_reconcile-0.10.2.dev217.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
821
- qontract_reconcile-0.10.2.dev217.dist-info/RECORD,,
818
+ qontract_reconcile-0.10.2.dev219.dist-info/METADATA,sha256=-wCSzoFu4nVFyPf8EWli9O7kQ8EDxTwL_IuetzJZApg,24555
819
+ qontract_reconcile-0.10.2.dev219.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
820
+ qontract_reconcile-0.10.2.dev219.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
821
+ qontract_reconcile-0.10.2.dev219.dist-info/RECORD,,
reconcile/cli.py CHANGED
@@ -677,7 +677,7 @@ def terraform_aws_route53(
677
677
 
678
678
  run_integration(
679
679
  reconcile.terraform_aws_route53,
680
- ctx.obj,
680
+ ctx,
681
681
  print_to_file,
682
682
  enable_deletion,
683
683
  thread_pool_size,
@@ -739,7 +739,7 @@ def aws_saml_idp(
739
739
  log_cached_log_output=log_cached_log_output,
740
740
  )
741
741
  ),
742
- ctx=ctx.obj,
742
+ ctx=ctx,
743
743
  )
744
744
 
745
745
 
@@ -748,7 +748,7 @@ def aws_saml_idp(
748
748
  def github(ctx: click.Context) -> None:
749
749
  import reconcile.github_org
750
750
 
751
- run_integration(reconcile.github_org, ctx.obj)
751
+ run_integration(reconcile.github_org, ctx)
752
752
 
753
753
 
754
754
  @integration.command(short_help="Configures owners in a GitHub org.")
@@ -756,7 +756,7 @@ def github(ctx: click.Context) -> None:
756
756
  def github_owners(ctx: click.Context) -> None:
757
757
  import reconcile.github_owners
758
758
 
759
- run_integration(reconcile.github_owners, ctx.obj)
759
+ run_integration(reconcile.github_owners, ctx)
760
760
 
761
761
 
762
762
  @integration.command(short_help="Validate compliance of GitHub user profiles.")
@@ -776,7 +776,7 @@ def github_users(
776
776
 
777
777
  run_integration(
778
778
  reconcile.github_users,
779
- ctx.obj,
779
+ ctx,
780
780
  gitlab_project_id,
781
781
  thread_pool_size,
782
782
  enable_deletion,
@@ -789,7 +789,7 @@ def github_users(
789
789
  def github_validator(ctx: click.Context) -> None:
790
790
  import reconcile.github_validator
791
791
 
792
- run_integration(reconcile.github_validator, ctx.obj)
792
+ run_integration(reconcile.github_validator, ctx)
793
793
 
794
794
 
795
795
  @integration.command(short_help="Configures ClusterRolebindings in OpenShift clusters.")
@@ -806,7 +806,7 @@ def openshift_clusterrolebindings(
806
806
 
807
807
  run_integration(
808
808
  reconcile.openshift_clusterrolebindings,
809
- ctx.obj,
809
+ ctx,
810
810
  thread_pool_size,
811
811
  internal,
812
812
  use_jump_host,
@@ -827,7 +827,7 @@ def openshift_rolebindings(
827
827
 
828
828
  run_integration(
829
829
  reconcile.openshift_rolebindings,
830
- ctx.obj,
830
+ ctx,
831
831
  thread_pool_size,
832
832
  internal,
833
833
  use_jump_host,
@@ -847,7 +847,7 @@ def openshift_groups(
847
847
  import reconcile.openshift_groups
848
848
 
849
849
  run_integration(
850
- reconcile.openshift_groups, ctx.obj, thread_pool_size, internal, use_jump_host
850
+ reconcile.openshift_groups, ctx, thread_pool_size, internal, use_jump_host
851
851
  )
852
852
 
853
853
 
@@ -864,7 +864,7 @@ def openshift_users(
864
864
  import reconcile.openshift_users
865
865
 
866
866
  run_integration(
867
- reconcile.openshift_users, ctx.obj, thread_pool_size, internal, use_jump_host
867
+ reconcile.openshift_users, ctx, thread_pool_size, internal, use_jump_host
868
868
  )
869
869
 
870
870
 
@@ -889,7 +889,7 @@ def openshift_serviceaccount_tokens(
889
889
 
890
890
  run_integration(
891
891
  reconcile.openshift_serviceaccount_tokens,
892
- ctx.obj,
892
+ ctx,
893
893
  thread_pool_size,
894
894
  internal,
895
895
  use_jump_host,
@@ -953,7 +953,7 @@ def aws_saml_roles(
953
953
  log_cached_log_output=log_cached_log_output,
954
954
  )
955
955
  ),
956
- ctx=ctx.obj,
956
+ ctx=ctx,
957
957
  )
958
958
 
959
959
 
@@ -1032,7 +1032,7 @@ def aws_account_manager(
1032
1032
  template_collection_root_path=template_collection_root_path,
1033
1033
  )
1034
1034
  ),
1035
- ctx=ctx.obj,
1035
+ ctx=ctx,
1036
1036
  )
1037
1037
 
1038
1038
 
@@ -1070,7 +1070,7 @@ def terraform_init(
1070
1070
  template_collection_root_path=template_collection_root_path,
1071
1071
  )
1072
1072
  ),
1073
- ctx=ctx.obj,
1073
+ ctx=ctx,
1074
1074
  )
1075
1075
 
1076
1076
 
@@ -1079,7 +1079,7 @@ def terraform_init(
1079
1079
  def jenkins_roles(ctx: click.Context) -> None:
1080
1080
  import reconcile.jenkins_roles
1081
1081
 
1082
- run_integration(reconcile.jenkins_roles, ctx.obj)
1082
+ run_integration(reconcile.jenkins_roles, ctx)
1083
1083
 
1084
1084
 
1085
1085
  @integration.command(short_help="Manage Jenkins worker fleets via JCasC.")
@@ -1087,7 +1087,7 @@ def jenkins_roles(ctx: click.Context) -> None:
1087
1087
  def jenkins_worker_fleets(ctx: click.Context) -> None:
1088
1088
  import reconcile.jenkins_worker_fleets
1089
1089
 
1090
- run_integration(reconcile.jenkins_worker_fleets, ctx.obj)
1090
+ run_integration(reconcile.jenkins_worker_fleets, ctx)
1091
1091
 
1092
1092
 
1093
1093
  @integration.command(
@@ -1111,7 +1111,7 @@ def jenkins_job_builder(
1111
1111
 
1112
1112
  run_integration(
1113
1113
  reconcile.jenkins_job_builder,
1114
- ctx.obj,
1114
+ ctx,
1115
1115
  io_dir,
1116
1116
  print_only,
1117
1117
  config_name,
@@ -1125,7 +1125,7 @@ def jenkins_job_builder(
1125
1125
  def jenkins_job_builds_cleaner(ctx: click.Context) -> None:
1126
1126
  import reconcile.jenkins_job_builds_cleaner
1127
1127
 
1128
- run_integration(reconcile.jenkins_job_builds_cleaner, ctx.obj)
1128
+ run_integration(reconcile.jenkins_job_builds_cleaner, ctx)
1129
1129
 
1130
1130
 
1131
1131
  @integration.command(short_help="Delete Jenkins jobs in multiple tenant instances.")
@@ -1133,7 +1133,7 @@ def jenkins_job_builds_cleaner(ctx: click.Context) -> None:
1133
1133
  def jenkins_job_cleaner(ctx: click.Context) -> None:
1134
1134
  import reconcile.jenkins_job_cleaner
1135
1135
 
1136
- run_integration(reconcile.jenkins_job_cleaner, ctx.obj)
1136
+ run_integration(reconcile.jenkins_job_cleaner, ctx)
1137
1137
 
1138
1138
 
1139
1139
  @integration.command(short_help="Manage web hooks to Jenkins jobs.")
@@ -1141,7 +1141,7 @@ def jenkins_job_cleaner(ctx: click.Context) -> None:
1141
1141
  def jenkins_webhooks(ctx: click.Context) -> None:
1142
1142
  import reconcile.jenkins_webhooks
1143
1143
 
1144
- run_integration(reconcile.jenkins_webhooks, ctx.obj)
1144
+ run_integration(reconcile.jenkins_webhooks, ctx)
1145
1145
 
1146
1146
 
1147
1147
  @integration.command(short_help="Remove webhooks to previous Jenkins instances.")
@@ -1149,7 +1149,7 @@ def jenkins_webhooks(ctx: click.Context) -> None:
1149
1149
  def jenkins_webhooks_cleaner(ctx: click.Context) -> None:
1150
1150
  import reconcile.jenkins_webhooks_cleaner
1151
1151
 
1152
- run_integration(reconcile.jenkins_webhooks_cleaner, ctx.obj)
1152
+ run_integration(reconcile.jenkins_webhooks_cleaner, ctx)
1153
1153
 
1154
1154
 
1155
1155
  @integration.command(short_help="Validate permissions in Jira.")
@@ -1165,7 +1165,7 @@ def jira_permissions_validator(
1165
1165
 
1166
1166
  run_integration(
1167
1167
  reconcile.jira_permissions_validator,
1168
- ctx.obj,
1168
+ ctx,
1169
1169
  jira_board_name=jira_board_name,
1170
1170
  board_check_interval_sec=board_check_interval * 60,
1171
1171
  )
@@ -1176,7 +1176,7 @@ def jira_permissions_validator(
1176
1176
  def jira_watcher(ctx: click.Context) -> None:
1177
1177
  import reconcile.jira_watcher
1178
1178
 
1179
- run_integration(reconcile.jira_watcher, ctx.obj)
1179
+ run_integration(reconcile.jira_watcher, ctx)
1180
1180
 
1181
1181
 
1182
1182
  @integration.command(
@@ -1195,7 +1195,7 @@ def openshift_upgrade_watcher(
1195
1195
 
1196
1196
  run_integration(
1197
1197
  reconcile.openshift_upgrade_watcher,
1198
- ctx.obj,
1198
+ ctx,
1199
1199
  thread_pool_size,
1200
1200
  internal,
1201
1201
  use_jump_host,
@@ -1221,7 +1221,7 @@ def slack_usergroups(
1221
1221
 
1222
1222
  run_integration(
1223
1223
  reconcile.slack_usergroups,
1224
- ctx.obj,
1224
+ ctx,
1225
1225
  workspace_name,
1226
1226
  usergroup_name,
1227
1227
  enable_extended_early_exit,
@@ -1236,7 +1236,7 @@ def slack_usergroups(
1236
1236
  def gitlab_permissions(ctx: click.Context, thread_pool_size: int) -> None:
1237
1237
  import reconcile.gitlab_permissions
1238
1238
 
1239
- run_integration(reconcile.gitlab_permissions, ctx.obj, thread_pool_size)
1239
+ run_integration(reconcile.gitlab_permissions, ctx, thread_pool_size)
1240
1240
 
1241
1241
 
1242
1242
  @integration.command(short_help="Manage issues and merge requests on GitLab projects.")
@@ -1249,7 +1249,7 @@ def gitlab_permissions(ctx: click.Context, thread_pool_size: int) -> None:
1249
1249
  def gitlab_housekeeping(ctx: click.Context, wait_for_pipeline: bool) -> None:
1250
1250
  import reconcile.gitlab_housekeeping
1251
1251
 
1252
- run_integration(reconcile.gitlab_housekeeping, ctx.obj, wait_for_pipeline)
1252
+ run_integration(reconcile.gitlab_housekeeping, ctx, wait_for_pipeline)
1253
1253
 
1254
1254
 
1255
1255
  @integration.command(short_help="Listen to SQS and creates MRs out of the messages.")
@@ -1258,7 +1258,7 @@ def gitlab_housekeeping(ctx: click.Context, wait_for_pipeline: bool) -> None:
1258
1258
  def gitlab_mr_sqs_consumer(ctx: click.Context, gitlab_project_id: str) -> None:
1259
1259
  import reconcile.gitlab_mr_sqs_consumer
1260
1260
 
1261
- run_integration(reconcile.gitlab_mr_sqs_consumer, ctx.obj, gitlab_project_id)
1261
+ run_integration(reconcile.gitlab_mr_sqs_consumer, ctx, gitlab_project_id)
1262
1262
 
1263
1263
 
1264
1264
  @integration.command(short_help="Delete orphan AWS resources.")
@@ -1267,7 +1267,7 @@ def gitlab_mr_sqs_consumer(ctx: click.Context, gitlab_project_id: str) -> None:
1267
1267
  def aws_garbage_collector(ctx: click.Context, thread_pool_size: int) -> None:
1268
1268
  import reconcile.aws_garbage_collector
1269
1269
 
1270
- run_integration(reconcile.aws_garbage_collector, ctx.obj, thread_pool_size)
1270
+ run_integration(reconcile.aws_garbage_collector, ctx, thread_pool_size)
1271
1271
 
1272
1272
 
1273
1273
  @integration.command(short_help="Delete IAM access keys by access key ID.")
@@ -1280,7 +1280,7 @@ def aws_iam_keys(
1280
1280
  import reconcile.aws_iam_keys
1281
1281
 
1282
1282
  run_integration(
1283
- reconcile.aws_iam_keys, ctx.obj, thread_pool_size, account_name=account_name
1283
+ reconcile.aws_iam_keys, ctx, thread_pool_size, account_name=account_name
1284
1284
  )
1285
1285
 
1286
1286
 
@@ -1289,7 +1289,7 @@ def aws_iam_keys(
1289
1289
  def aws_iam_password_reset(ctx: click.Context) -> None:
1290
1290
  import reconcile.aws_iam_password_reset
1291
1291
 
1292
- run_integration(reconcile.aws_iam_password_reset, ctx.obj)
1292
+ run_integration(reconcile.aws_iam_password_reset, ctx)
1293
1293
 
1294
1294
 
1295
1295
  @integration.command(short_help="Share AMI and AMI tags between accounts.")
@@ -1297,7 +1297,7 @@ def aws_iam_password_reset(ctx: click.Context) -> None:
1297
1297
  def aws_ami_share(ctx: click.Context) -> None:
1298
1298
  import reconcile.aws_ami_share
1299
1299
 
1300
- run_integration(reconcile.aws_ami_share, ctx.obj)
1300
+ run_integration(reconcile.aws_ami_share, ctx)
1301
1301
 
1302
1302
 
1303
1303
  @integration.command(short_help="Cleanup old and unused AMIs.")
@@ -1306,7 +1306,7 @@ def aws_ami_share(ctx: click.Context) -> None:
1306
1306
  def aws_ami_cleanup(ctx: click.Context, thread_pool_size: int) -> None:
1307
1307
  import reconcile.aws_ami_cleanup.integration
1308
1308
 
1309
- run_integration(reconcile.aws_ami_cleanup.integration, ctx.obj, thread_pool_size)
1309
+ run_integration(reconcile.aws_ami_cleanup.integration, ctx, thread_pool_size)
1310
1310
 
1311
1311
 
1312
1312
  @integration.command(short_help="Set up retention period for Cloudwatch logs.")
@@ -1316,7 +1316,7 @@ def aws_cloudwatch_log_retention(ctx: click.Context, thread_pool_size: int) -> N
1316
1316
  import reconcile.aws_cloudwatch_log_retention.integration
1317
1317
 
1318
1318
  run_integration(
1319
- reconcile.aws_cloudwatch_log_retention.integration, ctx.obj, thread_pool_size
1319
+ reconcile.aws_cloudwatch_log_retention.integration, ctx, thread_pool_size
1320
1320
  )
1321
1321
 
1322
1322
 
@@ -1328,7 +1328,7 @@ def aws_cloudwatch_log_retention(ctx: click.Context, thread_pool_size: int) -> N
1328
1328
  def aws_ecr_image_pull_secrets(ctx: click.Context, vault_output_path: str) -> None:
1329
1329
  import reconcile.aws_ecr_image_pull_secrets
1330
1330
 
1331
- run_integration(reconcile.aws_ecr_image_pull_secrets, ctx.obj, vault_output_path)
1331
+ run_integration(reconcile.aws_ecr_image_pull_secrets, ctx, vault_output_path)
1332
1332
 
1333
1333
 
1334
1334
  @integration.command(
@@ -1344,7 +1344,7 @@ def aws_support_cases_sos(
1344
1344
  import reconcile.aws_support_cases_sos
1345
1345
 
1346
1346
  run_integration(
1347
- reconcile.aws_support_cases_sos, ctx.obj, gitlab_project_id, thread_pool_size
1347
+ reconcile.aws_support_cases_sos, ctx, gitlab_project_id, thread_pool_size
1348
1348
  )
1349
1349
 
1350
1350
 
@@ -1372,7 +1372,7 @@ def openshift_resources(
1372
1372
 
1373
1373
  run_integration(
1374
1374
  reconcile.openshift_resources,
1375
- ctx.obj,
1375
+ ctx,
1376
1376
  thread_pool_size,
1377
1377
  internal,
1378
1378
  use_jump_host,
@@ -1408,7 +1408,7 @@ def openshift_saas_deploy(
1408
1408
 
1409
1409
  run_integration(
1410
1410
  reconcile.openshift_saas_deploy,
1411
- ctx.obj,
1411
+ ctx,
1412
1412
  thread_pool_size=thread_pool_size,
1413
1413
  io_dir=io_dir,
1414
1414
  use_jump_host=use_jump_host,
@@ -1445,7 +1445,7 @@ def openshift_saas_deploy_change_tester(
1445
1445
 
1446
1446
  run_integration(
1447
1447
  reconcile.openshift_saas_deploy_change_tester,
1448
- ctx.obj,
1448
+ ctx,
1449
1449
  gitlab_project_id,
1450
1450
  gitlab_merge_request_id,
1451
1451
  thread_pool_size,
@@ -1459,7 +1459,7 @@ def openshift_saas_deploy_change_tester(
1459
1459
  def saas_file_validator(ctx: click.Context) -> None:
1460
1460
  import reconcile.saas_file_validator
1461
1461
 
1462
- run_integration(reconcile.saas_file_validator, ctx.obj)
1462
+ run_integration(reconcile.saas_file_validator, ctx)
1463
1463
 
1464
1464
 
1465
1465
  @integration.command(short_help="Trigger deployments when a commit changed for a ref.")
@@ -1481,7 +1481,7 @@ def openshift_saas_deploy_trigger_moving_commits(
1481
1481
 
1482
1482
  run_integration(
1483
1483
  reconcile.openshift_saas_deploy_trigger_moving_commits,
1484
- ctx.obj,
1484
+ ctx,
1485
1485
  thread_pool_size,
1486
1486
  internal,
1487
1487
  use_jump_host,
@@ -1508,7 +1508,7 @@ def openshift_saas_deploy_trigger_upstream_jobs(
1508
1508
 
1509
1509
  run_integration(
1510
1510
  reconcile.openshift_saas_deploy_trigger_upstream_jobs,
1511
- ctx.obj,
1511
+ ctx,
1512
1512
  thread_pool_size,
1513
1513
  internal,
1514
1514
  use_jump_host,
@@ -1535,7 +1535,7 @@ def openshift_saas_deploy_trigger_images(
1535
1535
 
1536
1536
  run_integration(
1537
1537
  reconcile.openshift_saas_deploy_trigger_images,
1538
- ctx.obj,
1538
+ ctx,
1539
1539
  thread_pool_size,
1540
1540
  internal,
1541
1541
  use_jump_host,
@@ -1562,7 +1562,7 @@ def openshift_saas_deploy_trigger_configs(
1562
1562
 
1563
1563
  run_integration(
1564
1564
  reconcile.openshift_saas_deploy_trigger_configs,
1565
- ctx.obj,
1565
+ ctx,
1566
1566
  thread_pool_size,
1567
1567
  internal,
1568
1568
  use_jump_host,
@@ -1584,7 +1584,7 @@ def openshift_saas_deploy_trigger_cleaner(
1584
1584
 
1585
1585
  run_integration(
1586
1586
  reconcile.openshift_saas_deploy_trigger_cleaner,
1587
- ctx.obj,
1587
+ ctx,
1588
1588
  thread_pool_size,
1589
1589
  internal,
1590
1590
  use_jump_host,
@@ -1610,7 +1610,7 @@ def openshift_tekton_resources(
1610
1610
 
1611
1611
  run_integration(
1612
1612
  reconcile.openshift_tekton_resources,
1613
- ctx.obj,
1613
+ ctx,
1614
1614
  thread_pool_size,
1615
1615
  internal,
1616
1616
  use_jump_host,
@@ -1630,7 +1630,7 @@ def gitlab_labeler(
1630
1630
  import reconcile.gitlab_labeler
1631
1631
 
1632
1632
  run_integration(
1633
- reconcile.gitlab_labeler, ctx.obj, gitlab_project_id, gitlab_merge_request_id
1633
+ reconcile.gitlab_labeler, ctx, gitlab_project_id, gitlab_merge_request_id
1634
1634
  )
1635
1635
 
1636
1636
 
@@ -1648,7 +1648,7 @@ def openshift_namespace_labels(
1648
1648
 
1649
1649
  run_integration(
1650
1650
  reconcile.openshift_namespace_labels,
1651
- ctx.obj,
1651
+ ctx,
1652
1652
  thread_pool_size,
1653
1653
  internal,
1654
1654
  use_jump_host,
@@ -1676,7 +1676,7 @@ def openshift_namespaces(
1676
1676
 
1677
1677
  run_integration(
1678
1678
  reconcile.openshift_namespaces,
1679
- ctx.obj,
1679
+ ctx,
1680
1680
  thread_pool_size,
1681
1681
  internal,
1682
1682
  use_jump_host,
@@ -1699,7 +1699,7 @@ def openshift_network_policies(
1699
1699
 
1700
1700
  run_integration(
1701
1701
  reconcile.openshift_network_policies,
1702
- ctx.obj,
1702
+ ctx,
1703
1703
  thread_pool_size,
1704
1704
  internal,
1705
1705
  use_jump_host,
@@ -1725,7 +1725,7 @@ def openshift_limitranges(
1725
1725
 
1726
1726
  run_integration(
1727
1727
  reconcile.openshift_limitranges,
1728
- ctx.obj,
1728
+ ctx,
1729
1729
  thread_pool_size,
1730
1730
  internal,
1731
1731
  use_jump_host,
@@ -1752,7 +1752,7 @@ def openshift_resourcequotas(
1752
1752
 
1753
1753
  run_integration(
1754
1754
  reconcile.openshift_resourcequotas,
1755
- ctx.obj,
1755
+ ctx,
1756
1756
  thread_pool_size,
1757
1757
  internal,
1758
1758
  use_jump_host,
@@ -1781,7 +1781,7 @@ def openshift_vault_secrets(
1781
1781
 
1782
1782
  run_integration(
1783
1783
  reconcile.openshift_vault_secrets,
1784
- ctx.obj,
1784
+ ctx,
1785
1785
  thread_pool_size,
1786
1786
  internal,
1787
1787
  use_jump_host,
@@ -1809,7 +1809,7 @@ def openshift_rhcs_certs(
1809
1809
 
1810
1810
  run_integration(
1811
1811
  reconcile.openshift_rhcs_certs,
1812
- ctx.obj,
1812
+ ctx,
1813
1813
  thread_pool_size,
1814
1814
  internal,
1815
1815
  use_jump_host,
@@ -1838,7 +1838,7 @@ def openshift_routes(
1838
1838
 
1839
1839
  run_integration(
1840
1840
  reconcile.openshift_routes,
1841
- ctx.obj,
1841
+ ctx,
1842
1842
  thread_pool_size,
1843
1843
  internal,
1844
1844
  use_jump_host,
@@ -1868,7 +1868,7 @@ def openshift_prometheus_rules(
1868
1868
 
1869
1869
  run_integration(
1870
1870
  reconcile.openshift_prometheus_rules,
1871
- ctx.obj,
1871
+ ctx,
1872
1872
  thread_pool_size,
1873
1873
  internal,
1874
1874
  use_jump_host,
@@ -1925,7 +1925,7 @@ def endpoints_discovery(
1925
1925
  params.endpoint_tmpl_resource = endpoint_tmpl_resource
1926
1926
  run_class_integration(
1927
1927
  integration=EndpointsDiscoveryIntegration(params),
1928
- ctx=ctx.obj,
1928
+ ctx=ctx,
1929
1929
  )
1930
1930
 
1931
1931
 
@@ -1934,7 +1934,7 @@ def endpoints_discovery(
1934
1934
  def quay_membership(ctx: click.Context) -> None:
1935
1935
  import reconcile.quay_membership
1936
1936
 
1937
- run_integration(reconcile.quay_membership, ctx.obj)
1937
+ run_integration(reconcile.quay_membership, ctx)
1938
1938
 
1939
1939
 
1940
1940
  @integration.command(short_help="Mirrors external images into GCP Artifact Registry.")
@@ -1943,7 +1943,7 @@ def quay_membership(ctx: click.Context) -> None:
1943
1943
  def gcp_image_mirror(ctx: click.Context) -> None:
1944
1944
  import reconcile.gcp_image_mirror
1945
1945
 
1946
- run_integration(reconcile.gcp_image_mirror, ctx.obj)
1946
+ run_integration(reconcile.gcp_image_mirror, ctx)
1947
1947
 
1948
1948
 
1949
1949
  @integration.command(short_help="Mirrors external images into Quay.")
@@ -1994,7 +1994,7 @@ def quay_mirror(
1994
1994
 
1995
1995
  run_integration(
1996
1996
  reconcile.quay_mirror,
1997
- ctx.obj,
1997
+ ctx,
1998
1998
  control_file_dir,
1999
1999
  compare_tags,
2000
2000
  compare_tags_interval,
@@ -2053,7 +2053,7 @@ def quay_mirror_org(
2053
2053
 
2054
2054
  run_integration(
2055
2055
  reconcile.quay_mirror_org,
2056
- ctx.obj,
2056
+ ctx,
2057
2057
  control_file_dir,
2058
2058
  compare_tags,
2059
2059
  compare_tags_interval,
@@ -2067,7 +2067,7 @@ def quay_mirror_org(
2067
2067
  def quay_repos(ctx: click.Context) -> None:
2068
2068
  import reconcile.quay_repos
2069
2069
 
2070
- run_integration(reconcile.quay_repos, ctx.obj)
2070
+ run_integration(reconcile.quay_repos, ctx)
2071
2071
 
2072
2072
 
2073
2073
  @integration.command(short_help="Manage permissions for Quay Repositories.")
@@ -2075,7 +2075,7 @@ def quay_repos(ctx: click.Context) -> None:
2075
2075
  def quay_permissions(ctx: click.Context) -> None:
2076
2076
  import reconcile.quay_permissions
2077
2077
 
2078
- run_integration(reconcile.quay_permissions, ctx.obj)
2078
+ run_integration(reconcile.quay_permissions, ctx)
2079
2079
 
2080
2080
 
2081
2081
  @integration.command(short_help="Removes users which are not found in LDAP search.")
@@ -2088,7 +2088,7 @@ def ldap_users(
2088
2088
  import reconcile.ldap_users
2089
2089
 
2090
2090
  run_integration(
2091
- reconcile.ldap_users, ctx.obj, app_interface_project_id, infra_project_id
2091
+ reconcile.ldap_users, ctx, app_interface_project_id, infra_project_id
2092
2092
  )
2093
2093
 
2094
2094
 
@@ -2110,7 +2110,7 @@ def ldap_groups(ctx: click.Context, aws_sso_namespace: str) -> None:
2110
2110
  integration=LdapGroupsIntegration(
2111
2111
  LdapGroupsIntegrationParams(aws_sso_namespace=aws_sso_namespace)
2112
2112
  ),
2113
- ctx=ctx.obj,
2113
+ ctx=ctx,
2114
2114
  )
2115
2115
 
2116
2116
 
@@ -2167,7 +2167,7 @@ def aws_version_sync(
2167
2167
  else 10,
2168
2168
  )
2169
2169
  ),
2170
- ctx=ctx.obj,
2170
+ ctx=ctx,
2171
2171
  )
2172
2172
 
2173
2173
 
@@ -2197,7 +2197,7 @@ def terraform_repo(
2197
2197
  gitlab_merge_request_id=gitlab_merge_request_id,
2198
2198
  )
2199
2199
  ),
2200
- ctx=ctx.obj,
2200
+ ctx=ctx,
2201
2201
  )
2202
2202
 
2203
2203
 
@@ -2208,7 +2208,7 @@ def template_validator(ctx: click.Context) -> None:
2208
2208
 
2209
2209
  run_class_integration(
2210
2210
  integration=validator.TemplateValidatorIntegration(PydanticRunParams()),
2211
- ctx=ctx.obj,
2211
+ ctx=ctx,
2212
2212
  )
2213
2213
 
2214
2214
 
@@ -2250,7 +2250,7 @@ def template_renderer(
2250
2250
  template_collection_name=template_collection_name,
2251
2251
  )
2252
2252
  ),
2253
- ctx=ctx.obj,
2253
+ ctx=ctx,
2254
2254
  )
2255
2255
 
2256
2256
 
@@ -2296,7 +2296,7 @@ def terraform_resources(
2296
2296
  raise PrintToFileInGitRepositoryError(print_to_file)
2297
2297
  run_integration(
2298
2298
  reconcile.terraform_resources,
2299
- ctx.obj,
2299
+ ctx,
2300
2300
  print_to_file,
2301
2301
  enable_deletion,
2302
2302
  thread_pool_size,
@@ -2337,7 +2337,7 @@ def terraform_cloudflare_resources(
2337
2337
 
2338
2338
  run_integration(
2339
2339
  reconcile.terraform_cloudflare_resources,
2340
- ctx.obj,
2340
+ ctx,
2341
2341
  print_to_file,
2342
2342
  enable_deletion,
2343
2343
  thread_pool_size,
@@ -2377,7 +2377,7 @@ def terraform_cloudflare_dns(
2377
2377
  selected_zone=zone_name,
2378
2378
  )
2379
2379
  ),
2380
- ctx=ctx.obj,
2380
+ ctx=ctx,
2381
2381
  )
2382
2382
 
2383
2383
 
@@ -2410,7 +2410,7 @@ def terraform_cloudflare_users(
2410
2410
  enable_deletion=enable_deletion,
2411
2411
  )
2412
2412
  ),
2413
- ctx.obj,
2413
+ ctx,
2414
2414
  )
2415
2415
 
2416
2416
 
@@ -2429,7 +2429,7 @@ def cna_resources(
2429
2429
 
2430
2430
  run_integration(
2431
2431
  reconcile.cna.integration,
2432
- ctx.obj,
2432
+ ctx,
2433
2433
  enable_deletion,
2434
2434
  thread_pool_size,
2435
2435
  )
@@ -2450,7 +2450,7 @@ def saas_auto_promotions_manager(
2450
2450
 
2451
2451
  run_integration(
2452
2452
  reconcile.saas_auto_promotions_manager.integration,
2453
- ctx.obj,
2453
+ ctx,
2454
2454
  thread_pool_size,
2455
2455
  env_name=env_name,
2456
2456
  app_name=app_name,
@@ -2480,7 +2480,7 @@ def terraform_users(
2480
2480
  raise PrintToFileInGitRepositoryError(print_to_file)
2481
2481
  run_integration(
2482
2482
  reconcile.terraform_users,
2483
- ctx.obj,
2483
+ ctx,
2484
2484
  print_to_file,
2485
2485
  enable_deletion,
2486
2486
  thread_pool_size,
@@ -2518,7 +2518,7 @@ def terraform_vpc_resources(
2518
2518
  enable_deletion=enable_deletion,
2519
2519
  )
2520
2520
  ),
2521
- ctx.obj,
2521
+ ctx,
2522
2522
  )
2523
2523
 
2524
2524
 
@@ -2551,7 +2551,7 @@ def terraform_vpc_peerings(
2551
2551
  raise PrintToFileInGitRepositoryError(print_to_file)
2552
2552
  run_integration(
2553
2553
  reconcile.terraform_vpc_peerings,
2554
- ctx.obj,
2554
+ ctx,
2555
2555
  print_to_file,
2556
2556
  enable_deletion,
2557
2557
  thread_pool_size,
@@ -2571,7 +2571,7 @@ def vpc_peerings_validator(ctx: click.Context) -> None:
2571
2571
 
2572
2572
  run_integration(
2573
2573
  reconcile.vpc_peerings_validator,
2574
- ctx.obj,
2574
+ ctx,
2575
2575
  )
2576
2576
 
2577
2577
 
@@ -2602,7 +2602,7 @@ def terraform_tgw_attachments(
2602
2602
  raise PrintToFileInGitRepositoryError(print_to_file)
2603
2603
  run_integration(
2604
2604
  reconcile.terraform_tgw_attachments,
2605
- ctx.obj,
2605
+ ctx,
2606
2606
  print_to_file,
2607
2607
  enable_deletion,
2608
2608
  thread_pool_size,
@@ -2620,7 +2620,7 @@ def terraform_tgw_attachments(
2620
2620
  def github_repo_invites(ctx: click.Context) -> None:
2621
2621
  import reconcile.github_repo_invites
2622
2622
 
2623
- run_integration(reconcile.github_repo_invites, ctx.obj)
2623
+ run_integration(reconcile.github_repo_invites, ctx)
2624
2624
 
2625
2625
 
2626
2626
  @integration.command(short_help="Validates permissions in github repositories.")
@@ -2629,7 +2629,7 @@ def github_repo_invites(ctx: click.Context) -> None:
2629
2629
  def github_repo_permissions_validator(ctx: click.Context, instance_name: str) -> None:
2630
2630
  import reconcile.github_repo_permissions_validator
2631
2631
 
2632
- run_integration(reconcile.github_repo_permissions_validator, ctx.obj, instance_name)
2632
+ run_integration(reconcile.github_repo_permissions_validator, ctx, instance_name)
2633
2633
 
2634
2634
 
2635
2635
  @integration.command(short_help="Manage GitLab group members.")
@@ -2637,7 +2637,7 @@ def github_repo_permissions_validator(ctx: click.Context, instance_name: str) ->
2637
2637
  def gitlab_members(ctx: click.Context) -> None:
2638
2638
  import reconcile.gitlab_members
2639
2639
 
2640
- run_integration(reconcile.gitlab_members, ctx.obj)
2640
+ run_integration(reconcile.gitlab_members, ctx)
2641
2641
 
2642
2642
 
2643
2643
  @integration.command(short_help="Create GitLab projects.")
@@ -2645,7 +2645,7 @@ def gitlab_members(ctx: click.Context) -> None:
2645
2645
  def gitlab_projects(ctx: click.Context) -> None:
2646
2646
  import reconcile.gitlab_projects
2647
2647
 
2648
- run_integration(reconcile.gitlab_projects, ctx.obj)
2648
+ run_integration(reconcile.gitlab_projects, ctx)
2649
2649
 
2650
2650
 
2651
2651
  @integration.command(short_help="Manage membership in OpenShift groups via OCM.")
@@ -2654,7 +2654,7 @@ def gitlab_projects(ctx: click.Context) -> None:
2654
2654
  def ocm_groups(ctx: click.Context, thread_pool_size: int) -> None:
2655
2655
  import reconcile.ocm_groups
2656
2656
 
2657
- run_integration(reconcile.ocm_groups, ctx.obj, thread_pool_size)
2657
+ run_integration(reconcile.ocm_groups, ctx, thread_pool_size)
2658
2658
 
2659
2659
 
2660
2660
  @integration.command(short_help="Manages clusters via OCM.")
@@ -2718,7 +2718,7 @@ def ocm_clusters(
2718
2718
  rosa_role=rosa_role,
2719
2719
  )
2720
2720
  ),
2721
- ctx=ctx.obj,
2721
+ ctx=ctx,
2722
2722
  )
2723
2723
 
2724
2724
 
@@ -2763,7 +2763,7 @@ def openshift_cluster_bots(
2763
2763
 
2764
2764
  run_integration(
2765
2765
  reconcile.openshift_cluster_bots,
2766
- ctx.obj,
2766
+ ctx,
2767
2767
  gitlab_project_id,
2768
2768
  vault_creds_path,
2769
2769
  dedicated_admin_ns=dedicated_admin_namespace,
@@ -2781,9 +2781,7 @@ def ocm_external_configuration_labels(
2781
2781
  ) -> None:
2782
2782
  import reconcile.ocm_external_configuration_labels
2783
2783
 
2784
- run_integration(
2785
- reconcile.ocm_external_configuration_labels, ctx.obj, thread_pool_size
2786
- )
2784
+ run_integration(reconcile.ocm_external_configuration_labels, ctx, thread_pool_size)
2787
2785
 
2788
2786
 
2789
2787
  @integration.command(short_help="Trigger jenkins jobs following Addon upgrades.")
@@ -2791,7 +2789,7 @@ def ocm_external_configuration_labels(
2791
2789
  def ocm_addons_upgrade_tests_trigger(ctx: click.Context) -> None:
2792
2790
  import reconcile.ocm_addons_upgrade_tests_trigger
2793
2791
 
2794
- run_integration(reconcile.ocm_addons_upgrade_tests_trigger, ctx.obj)
2792
+ run_integration(reconcile.ocm_addons_upgrade_tests_trigger, ctx)
2795
2793
 
2796
2794
 
2797
2795
  @integration.command(short_help="Manage Machine Pools in OCM.")
@@ -2799,7 +2797,7 @@ def ocm_addons_upgrade_tests_trigger(ctx: click.Context) -> None:
2799
2797
  def ocm_machine_pools(ctx: click.Context) -> None:
2800
2798
  import reconcile.ocm_machine_pools
2801
2799
 
2802
- run_integration(reconcile.ocm_machine_pools, ctx.obj)
2800
+ run_integration(reconcile.ocm_machine_pools, ctx)
2803
2801
 
2804
2802
 
2805
2803
  @integration.command(short_help="Manage Upgrade Policy schedules in OCM organizations.")
@@ -2821,7 +2819,7 @@ def ocm_upgrade_scheduler_org(
2821
2819
  excluded_ocm_organization_ids=set(exclude_org_id),
2822
2820
  )
2823
2821
  ),
2824
- ctx=ctx.obj,
2822
+ ctx=ctx,
2825
2823
  )
2826
2824
 
2827
2825
 
@@ -2833,9 +2831,7 @@ def ocm_upgrade_scheduler_org_updater(
2833
2831
  ) -> None:
2834
2832
  import reconcile.ocm_upgrade_scheduler_org_updater
2835
2833
 
2836
- run_integration(
2837
- reconcile.ocm_upgrade_scheduler_org_updater, ctx.obj, gitlab_project_id
2838
- )
2834
+ run_integration(reconcile.ocm_upgrade_scheduler_org_updater, ctx, gitlab_project_id)
2839
2835
 
2840
2836
 
2841
2837
  @integration.command(
@@ -2869,7 +2865,7 @@ def ocm_addons_upgrade_scheduler_org(
2869
2865
  excluded_ocm_organization_ids=set(exclude_org_id),
2870
2866
  )
2871
2867
  ),
2872
- ctx=ctx.obj,
2868
+ ctx=ctx,
2873
2869
  )
2874
2870
 
2875
2871
 
@@ -2910,7 +2906,7 @@ def advanced_upgrade_scheduler(
2910
2906
  ignore_sts_clusters=ignore_sts_clusters,
2911
2907
  )
2912
2908
  ),
2913
- ctx=ctx.obj,
2909
+ ctx=ctx,
2914
2910
  )
2915
2911
 
2916
2912
 
@@ -2969,7 +2965,7 @@ def version_gate_approver(
2969
2965
  rosa_role=rosa_role,
2970
2966
  )
2971
2967
  ),
2972
- ctx=ctx.obj,
2968
+ ctx=ctx,
2973
2969
  )
2974
2970
 
2975
2971
 
@@ -2986,7 +2982,7 @@ def database_access_manager(ctx: click.Context, vault_output_path: str) -> None:
2986
2982
  integration=DatabaseAccessManagerIntegration(
2987
2983
  DBAMIntegrationParams(vault_output_path=vault_output_path)
2988
2984
  ),
2989
- ctx=ctx.obj,
2985
+ ctx=ctx,
2990
2986
  )
2991
2987
 
2992
2988
 
@@ -2999,7 +2995,7 @@ def status_board_exporter(ctx: click.Context) -> None:
2999
2995
 
3000
2996
  run_class_integration(
3001
2997
  integration=StatusBoardExporterIntegration(PydanticRunParams()),
3002
- ctx=ctx.obj,
2998
+ ctx=ctx,
3003
2999
  )
3004
3000
 
3005
3001
 
@@ -3011,9 +3007,7 @@ def ocm_update_recommended_version(
3011
3007
  ) -> None:
3012
3008
  import reconcile.ocm_update_recommended_version
3013
3009
 
3014
- run_integration(
3015
- reconcile.ocm_update_recommended_version, ctx.obj, gitlab_project_id
3016
- )
3010
+ run_integration(reconcile.ocm_update_recommended_version, ctx, gitlab_project_id)
3017
3011
 
3018
3012
 
3019
3013
  @integration.command(short_help="Manages cluster Addons in OCM.")
@@ -3022,7 +3016,7 @@ def ocm_update_recommended_version(
3022
3016
  def ocm_addons(ctx: click.Context, thread_pool_size: int) -> None:
3023
3017
  import reconcile.ocm_addons
3024
3018
 
3025
- run_integration(reconcile.ocm_addons, ctx.obj, thread_pool_size)
3019
+ run_integration(reconcile.ocm_addons, ctx, thread_pool_size)
3026
3020
 
3027
3021
 
3028
3022
  @integration.command(
@@ -3032,7 +3026,7 @@ def ocm_addons(ctx: click.Context, thread_pool_size: int) -> None:
3032
3026
  def ocm_aws_infrastructure_access(ctx: click.Context) -> None:
3033
3027
  import reconcile.ocm_aws_infrastructure_access
3034
3028
 
3035
- run_integration(reconcile.ocm_aws_infrastructure_access, ctx.obj)
3029
+ run_integration(reconcile.ocm_aws_infrastructure_access, ctx)
3036
3030
 
3037
3031
 
3038
3032
  @integration.command(short_help="Manage GitHub Identity Providers in OCM.")
@@ -3041,7 +3035,7 @@ def ocm_aws_infrastructure_access(ctx: click.Context) -> None:
3041
3035
  def ocm_github_idp(ctx: click.Context, vault_input_path: str) -> None:
3042
3036
  import reconcile.ocm_github_idp
3043
3037
 
3044
- run_integration(reconcile.ocm_github_idp, ctx.obj, vault_input_path)
3038
+ run_integration(reconcile.ocm_github_idp, ctx, vault_input_path)
3045
3039
 
3046
3040
 
3047
3041
  @integration.command(
@@ -3094,7 +3088,7 @@ def ocm_oidc_idp(
3094
3088
  default_auth_issuer_url=default_auth_issuer_url,
3095
3089
  )
3096
3090
  ),
3097
- ctx=ctx.obj,
3091
+ ctx=ctx,
3098
3092
  )
3099
3093
 
3100
3094
 
@@ -3165,7 +3159,7 @@ def rhidp_sso_client(
3165
3159
  contacts=list(set(contact_emails.split(","))),
3166
3160
  )
3167
3161
  ),
3168
- ctx=ctx.obj,
3162
+ ctx=ctx,
3169
3163
  )
3170
3164
 
3171
3165
 
@@ -3181,7 +3175,7 @@ def cluster_auth_rhidp(ctx: click.Context) -> None:
3181
3175
 
3182
3176
  run_class_integration(
3183
3177
  integration=ClusterAuthRhidpIntegration(ClusterAuthRhidpIntegrationParams()),
3184
- ctx=ctx.obj,
3178
+ ctx=ctx,
3185
3179
  )
3186
3180
 
3187
3181
 
@@ -3196,7 +3190,7 @@ def dynatrace_token_provider(ctx: click.Context) -> None:
3196
3190
 
3197
3191
  run_class_integration(
3198
3192
  integration=DynatraceTokenProviderIntegration(),
3199
- ctx=ctx.obj,
3193
+ ctx=ctx,
3200
3194
  )
3201
3195
 
3202
3196
 
@@ -3209,7 +3203,7 @@ def fleet_labeler(ctx: click.Context) -> None:
3209
3203
 
3210
3204
  run_class_integration(
3211
3205
  integration=FleetLabelerIntegration(),
3212
- ctx=ctx.obj,
3206
+ ctx=ctx,
3213
3207
  )
3214
3208
 
3215
3209
 
@@ -3218,7 +3212,7 @@ def fleet_labeler(ctx: click.Context) -> None:
3218
3212
  def ocm_additional_routers(ctx: click.Context) -> None:
3219
3213
  import reconcile.ocm_additional_routers
3220
3214
 
3221
- run_integration(reconcile.ocm_additional_routers, ctx.obj)
3215
+ run_integration(reconcile.ocm_additional_routers, ctx)
3222
3216
 
3223
3217
 
3224
3218
  @integration.command(short_help="Send email notifications to app-interface audience.")
@@ -3226,7 +3220,7 @@ def ocm_additional_routers(ctx: click.Context) -> None:
3226
3220
  def email_sender(ctx: click.Context) -> None:
3227
3221
  import reconcile.email_sender
3228
3222
 
3229
- run_integration(reconcile.email_sender, ctx.obj)
3223
+ run_integration(reconcile.email_sender, ctx)
3230
3224
 
3231
3225
 
3232
3226
  @integration.command(
@@ -3236,7 +3230,7 @@ def email_sender(ctx: click.Context) -> None:
3236
3230
  def requests_sender(ctx: click.Context) -> None:
3237
3231
  import reconcile.requests_sender
3238
3232
 
3239
- run_integration(reconcile.requests_sender, ctx.obj)
3233
+ run_integration(reconcile.requests_sender, ctx)
3240
3234
 
3241
3235
 
3242
3236
  @integration.command(short_help="Validate dependencies are defined for each service.")
@@ -3244,7 +3238,7 @@ def requests_sender(ctx: click.Context) -> None:
3244
3238
  def service_dependencies(ctx: click.Context) -> None:
3245
3239
  import reconcile.service_dependencies
3246
3240
 
3247
- run_integration(reconcile.service_dependencies, ctx.obj)
3241
+ run_integration(reconcile.service_dependencies, ctx)
3248
3242
 
3249
3243
 
3250
3244
  @integration.command(short_help="Runs SQL Queries against app-interface RDS resources.")
@@ -3253,7 +3247,7 @@ def service_dependencies(ctx: click.Context) -> None:
3253
3247
  def sql_query(ctx: click.Context, enable_deletion: bool) -> None:
3254
3248
  import reconcile.sql_query
3255
3249
 
3256
- run_integration(reconcile.sql_query, ctx.obj, enable_deletion)
3250
+ run_integration(reconcile.sql_query, ctx, enable_deletion)
3257
3251
 
3258
3252
 
3259
3253
  @integration.command(
@@ -3264,7 +3258,7 @@ def sql_query(ctx: click.Context, enable_deletion: bool) -> None:
3264
3258
  def gitlab_owners(ctx: click.Context, thread_pool_size: int) -> None:
3265
3259
  import reconcile.gitlab_owners
3266
3260
 
3267
- run_integration(reconcile.gitlab_owners, ctx.obj, thread_pool_size)
3261
+ run_integration(reconcile.gitlab_owners, ctx, thread_pool_size)
3268
3262
 
3269
3263
 
3270
3264
  @integration.command(short_help="Ensures that forks of App Interface are compliant.")
@@ -3282,7 +3276,7 @@ def gitlab_fork_compliance(
3282
3276
 
3283
3277
  run_integration(
3284
3278
  reconcile.gitlab_fork_compliance,
3285
- ctx.obj,
3279
+ ctx,
3286
3280
  gitlab_project_id,
3287
3281
  gitlab_merge_request_id,
3288
3282
  gitlab_maintainers_group,
@@ -3298,7 +3292,7 @@ def gitlab_fork_compliance(
3298
3292
  def dashdotdb_cso(ctx: click.Context, thread_pool_size: int) -> None:
3299
3293
  import reconcile.dashdotdb_cso
3300
3294
 
3301
- run_integration(reconcile.dashdotdb_cso, ctx.obj, thread_pool_size)
3295
+ run_integration(reconcile.dashdotdb_cso, ctx, thread_pool_size)
3302
3296
 
3303
3297
 
3304
3298
  @integration.command(
@@ -3313,7 +3307,7 @@ def dashdotdb_dvo(
3313
3307
  ) -> None:
3314
3308
  import reconcile.dashdotdb_dvo
3315
3309
 
3316
- run_integration(reconcile.dashdotdb_dvo, ctx.obj, thread_pool_size, cluster_name)
3310
+ run_integration(reconcile.dashdotdb_dvo, ctx, thread_pool_size, cluster_name)
3317
3311
 
3318
3312
 
3319
3313
  @integration.command(
@@ -3325,7 +3319,7 @@ def dashdotdb_dvo(
3325
3319
  def dashdotdb_slo(ctx: click.Context, thread_pool_size: int) -> None:
3326
3320
  import reconcile.dashdotdb_slo
3327
3321
 
3328
- run_integration(reconcile.dashdotdb_slo, ctx.obj, thread_pool_size)
3322
+ run_integration(reconcile.dashdotdb_slo, ctx, thread_pool_size)
3329
3323
 
3330
3324
 
3331
3325
  @integration.command(short_help="Collects dora metrics.")
@@ -3337,9 +3331,7 @@ def dashdotdb_dora(
3337
3331
  ) -> None:
3338
3332
  import reconcile.dashdotdb_dora
3339
3333
 
3340
- run_integration(
3341
- reconcile.dashdotdb_dora, ctx.obj, gitlab_project_id, thread_pool_size
3342
- )
3334
+ run_integration(reconcile.dashdotdb_dora, ctx, gitlab_project_id, thread_pool_size)
3343
3335
 
3344
3336
 
3345
3337
  @integration.command(short_help="Tests prometheus rules using promtool.")
@@ -3355,7 +3347,7 @@ def prometheus_rules_tester(
3355
3347
 
3356
3348
  run_integration(
3357
3349
  reconcile.prometheus_rules_tester.integration,
3358
- ctx.obj,
3350
+ ctx,
3359
3351
  thread_pool_size,
3360
3352
  cluster_names=cluster_name,
3361
3353
  )
@@ -3366,7 +3358,7 @@ def prometheus_rules_tester(
3366
3358
  def resource_template_tester(ctx: click.Context) -> None:
3367
3359
  import reconcile.resource_template_tester
3368
3360
 
3369
- run_integration(reconcile.resource_template_tester, ctx.obj)
3361
+ run_integration(reconcile.resource_template_tester, ctx)
3370
3362
 
3371
3363
 
3372
3364
  @integration.command(
@@ -3376,7 +3368,7 @@ def resource_template_tester(ctx: click.Context) -> None:
3376
3368
  def query_validator(ctx: click.Context) -> None:
3377
3369
  import reconcile.query_validator
3378
3370
 
3379
- run_integration(reconcile.query_validator, ctx.obj)
3371
+ run_integration(reconcile.query_validator, ctx)
3380
3372
 
3381
3373
 
3382
3374
  @integration.command(short_help="Manages SendGrid teammates for a given account.")
@@ -3384,7 +3376,7 @@ def query_validator(ctx: click.Context) -> None:
3384
3376
  def sendgrid_teammates(ctx: click.Context) -> None:
3385
3377
  import reconcile.sendgrid_teammates
3386
3378
 
3387
- run_integration(reconcile.sendgrid_teammates, ctx.obj)
3379
+ run_integration(reconcile.sendgrid_teammates, ctx)
3388
3380
 
3389
3381
 
3390
3382
  @integration.command(short_help="Maps ClusterDeployment resources to Cluster IDs.")
@@ -3393,7 +3385,7 @@ def sendgrid_teammates(ctx: click.Context) -> None:
3393
3385
  def cluster_deployment_mapper(ctx: click.Context, vault_output_path: str) -> None:
3394
3386
  import reconcile.cluster_deployment_mapper
3395
3387
 
3396
- run_integration(reconcile.cluster_deployment_mapper, ctx.obj, vault_output_path)
3388
+ run_integration(reconcile.cluster_deployment_mapper, ctx, vault_output_path)
3397
3389
 
3398
3390
 
3399
3391
  @integration.command(short_help="Get resources from clusters and store in Vault.")
@@ -3411,7 +3403,7 @@ def resource_scraper(
3411
3403
 
3412
3404
  run_integration(
3413
3405
  reconcile.resource_scraper,
3414
- ctx.obj,
3406
+ ctx,
3415
3407
  namespace_name,
3416
3408
  resource_kind,
3417
3409
  vault_output_path,
@@ -3432,7 +3424,7 @@ def gabi_authorized_users(
3432
3424
 
3433
3425
  run_integration(
3434
3426
  reconcile.gabi_authorized_users,
3435
- ctx.obj,
3427
+ ctx,
3436
3428
  thread_pool_size,
3437
3429
  internal,
3438
3430
  use_jump_host,
@@ -3448,7 +3440,7 @@ def status_page_components(ctx: click.Context) -> None:
3448
3440
  StatusPageComponentsIntegration,
3449
3441
  )
3450
3442
 
3451
- run_class_integration(StatusPageComponentsIntegration(), ctx.obj)
3443
+ run_class_integration(StatusPageComponentsIntegration(), ctx)
3452
3444
 
3453
3445
 
3454
3446
  @integration.command(
@@ -3460,7 +3452,7 @@ def status_page_maintenances(ctx: click.Context) -> None:
3460
3452
  StatusPageMaintenancesIntegration,
3461
3453
  )
3462
3454
 
3463
- run_class_integration(StatusPageMaintenancesIntegration(NoParams()), ctx.obj)
3455
+ run_class_integration(StatusPageMaintenancesIntegration(NoParams()), ctx)
3464
3456
 
3465
3457
 
3466
3458
  @integration.command(
@@ -3503,7 +3495,7 @@ def ocm_standalone_user_management(
3503
3495
  group_provider_specs=group_provider,
3504
3496
  ),
3505
3497
  ),
3506
- ctx.obj,
3498
+ ctx,
3507
3499
  )
3508
3500
 
3509
3501
 
@@ -3521,7 +3513,7 @@ def blackbox_exporter_endpoint_monitoring(
3521
3513
 
3522
3514
  run_integration(
3523
3515
  reconcile.blackbox_exporter_endpoint_monitoring,
3524
- ctx.obj,
3516
+ ctx,
3525
3517
  thread_pool_size,
3526
3518
  internal,
3527
3519
  use_jump_host,
@@ -3542,7 +3534,7 @@ def signalfx_prometheus_endpoint_monitoring(
3542
3534
 
3543
3535
  run_integration(
3544
3536
  reconcile.signalfx_endpoint_monitoring,
3545
- ctx.obj,
3537
+ ctx,
3546
3538
  thread_pool_size,
3547
3539
  internal,
3548
3540
  use_jump_host,
@@ -3571,7 +3563,7 @@ def parse_image_tag_from_ref(
3571
3563
  def vault_replication(ctx: click.Context) -> None:
3572
3564
  import reconcile.vault_replication
3573
3565
 
3574
- run_integration(reconcile.vault_replication, ctx.obj)
3566
+ run_integration(reconcile.vault_replication, ctx)
3575
3567
 
3576
3568
 
3577
3569
  @integration.command(short_help="Manages Qontract Reconcile integrations.")
@@ -3618,7 +3610,7 @@ def integrations_manager(
3618
3610
 
3619
3611
  run_integration(
3620
3612
  reconcile.integrations_manager,
3621
- ctx.obj,
3613
+ ctx,
3622
3614
  environment_name,
3623
3615
  get_integration_cli_meta(),
3624
3616
  thread_pool_size,
@@ -3664,7 +3656,7 @@ def change_owners(
3664
3656
 
3665
3657
  run_integration(
3666
3658
  reconcile.change_owners.change_owners,
3667
- ctx.obj,
3659
+ ctx,
3668
3660
  gitlab_project_id,
3669
3661
  gitlab_merge_request_id,
3670
3662
  comparison_sha,
@@ -3701,7 +3693,7 @@ def change_log_tracking(
3701
3693
  commit=commit,
3702
3694
  )
3703
3695
  ),
3704
- ctx=ctx.obj,
3696
+ ctx=ctx,
3705
3697
  )
3706
3698
 
3707
3699
 
@@ -3713,7 +3705,7 @@ def change_log_tracking(
3713
3705
  def glitchtip(ctx: click.Context, instance: str | None) -> None:
3714
3706
  import reconcile.glitchtip.integration
3715
3707
 
3716
- run_integration(reconcile.glitchtip.integration, ctx.obj, instance)
3708
+ run_integration(reconcile.glitchtip.integration, ctx, instance)
3717
3709
 
3718
3710
 
3719
3711
  @integration.command(short_help="Configure Glitchtip project alerts.")
@@ -3729,7 +3721,7 @@ def glitchtip_project_alerts(ctx: click.Context, instance: str | None) -> None:
3729
3721
  integration=GlitchtipProjectAlertsIntegration(
3730
3722
  GlitchtipProjectAlertsIntegrationParams(instance=instance)
3731
3723
  ),
3732
- ctx=ctx.obj,
3724
+ ctx=ctx,
3733
3725
  )
3734
3726
 
3735
3727
 
@@ -3752,7 +3744,7 @@ def glitchtip_project_dsn(
3752
3744
 
3753
3745
  run_integration(
3754
3746
  reconcile.glitchtip_project_dsn.integration,
3755
- ctx.obj,
3747
+ ctx,
3756
3748
  thread_pool_size,
3757
3749
  internal,
3758
3750
  use_jump_host,
@@ -3774,7 +3766,7 @@ def skupper_network(
3774
3766
 
3775
3767
  run_integration(
3776
3768
  reconcile.skupper_network.integration,
3777
- ctx.obj,
3769
+ ctx,
3778
3770
  thread_pool_size,
3779
3771
  internal,
3780
3772
  use_jump_host,
@@ -3812,7 +3804,7 @@ def ocm_labels(
3812
3804
  ignored_label_prefixes=list(set(ignored_label_prefixes.split(","))),
3813
3805
  )
3814
3806
  ),
3815
- ctx=ctx.obj,
3807
+ ctx=ctx,
3816
3808
  )
3817
3809
 
3818
3810
 
@@ -3827,7 +3819,7 @@ def ocm_internal_notifications(ctx: click.Context) -> None:
3827
3819
 
3828
3820
  run_class_integration(
3829
3821
  integration=OcmInternalNotifications(),
3830
- ctx=ctx.obj,
3822
+ ctx=ctx,
3831
3823
  )
3832
3824
 
3833
3825
 
@@ -3838,7 +3830,7 @@ def acs_rbac(ctx: click.Context) -> None:
3838
3830
 
3839
3831
  run_class_integration(
3840
3832
  integration=acs_rbac.AcsRbacIntegration(),
3841
- ctx=ctx.obj,
3833
+ ctx=ctx,
3842
3834
  )
3843
3835
 
3844
3836
 
@@ -3849,7 +3841,7 @@ def acs_policies(ctx: click.Context) -> None:
3849
3841
 
3850
3842
  run_class_integration(
3851
3843
  integration=acs_policies.AcsPoliciesIntegration(),
3852
- ctx=ctx.obj,
3844
+ ctx=ctx,
3853
3845
  )
3854
3846
 
3855
3847
 
@@ -3866,7 +3858,7 @@ def unleash_feature_toggles(ctx: click.Context, instance: str | None) -> None:
3866
3858
  integration=UnleashTogglesIntegration(
3867
3859
  UnleashTogglesIntegrationParams(instance=instance)
3868
3860
  ),
3869
- ctx=ctx.obj,
3861
+ ctx=ctx,
3870
3862
  )
3871
3863
 
3872
3864
 
@@ -3877,7 +3869,7 @@ def deadmanssnitch(ctx: click.Context) -> None:
3877
3869
 
3878
3870
  run_class_integration(
3879
3871
  integration=deadmanssnitch.DeadMansSnitchIntegration(),
3880
- ctx=ctx.obj,
3872
+ ctx=ctx,
3881
3873
  )
3882
3874
 
3883
3875
 
@@ -3910,7 +3902,7 @@ def external_resources(
3910
3902
 
3911
3903
  run_integration(
3912
3904
  reconcile.external_resources.integration,
3913
- ctx.obj,
3905
+ ctx,
3914
3906
  dry_run_job_suffix=dry_run_job_suffix,
3915
3907
  thread_pool_size=thread_pool_size,
3916
3908
  workers_cluster=workers_cluster,
@@ -3931,7 +3923,7 @@ def external_resources_secrets_sync(
3931
3923
 
3932
3924
  run_integration(
3933
3925
  reconcile.external_resources.integration_secrets_sync,
3934
- ctx.obj,
3926
+ ctx,
3935
3927
  thread_pool_size,
3936
3928
  )
3937
3929
 
@@ -3957,7 +3949,7 @@ def automated_actions_config(
3957
3949
  internal=internal,
3958
3950
  )
3959
3951
  ),
3960
- ctx=ctx.obj,
3952
+ ctx=ctx,
3961
3953
  )
3962
3954
 
3963
3955