qontract-reconcile 0.10.1rc684__py3-none-any.whl → 0.10.1rc685__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.1
2
2
  Name: qontract-reconcile
3
- Version: 0.10.1rc684
3
+ Version: 0.10.1rc685
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
@@ -120,7 +120,7 @@ reconcile/vpc_peerings_validator.py,sha256=Kv22HJVlTW9l9GB2eXwjPWqdDbr_VuvQBNPtt
120
120
  reconcile/aus/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
121
121
  reconcile/aus/advanced_upgrade_service.py,sha256=W1_YgNNj_wYCIbcVkwME7DwU89nikkooHOYZ5PyR6vo,22302
122
122
  reconcile/aus/aus_label_source.py,sha256=qoP8Fgxuu1tCuhG6ixCWve7Ll-KD6a79E2uLAmC0ifw,4184
123
- reconcile/aus/base.py,sha256=8MJsGr5f2K0Rxc2jM7_nKaHUOCc_R8UlO349PUm1jBg,47458
123
+ reconcile/aus/base.py,sha256=2Av1IZIjQZF-GRujbpqGAc7pl-a25WznpKTuUwg80eY,47457
124
124
  reconcile/aus/cluster_version_data.py,sha256=j4UyEBi5mQuvPq5Lo7a_L_0blxvH790wJV07uAiikFU,7126
125
125
  reconcile/aus/healthchecks.py,sha256=S8_KPn_zFiOo_wf5XlVmz-I3tUDYAim3EGSqiSPMvLQ,2707
126
126
  reconcile/aus/metrics.py,sha256=nKT4m2zGT-QOMR0c-z-npVNKWsNMubzdffpU_f9n4II,3927
@@ -130,8 +130,9 @@ reconcile/aus/ocm_upgrade_scheduler.py,sha256=1KwIxLTZrOnFlUBAtdc52cghvq45z5tXY4
130
130
  reconcile/aus/ocm_upgrade_scheduler_org.py,sha256=giRXVtlKcWoXLfPoCDPjOavAIC5_tNR6eGf6avPxveQ,3065
131
131
  reconcile/aus/upgrades.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
132
132
  reconcile/aus/version_gate_approver.py,sha256=sZEVB0qVpAXpqymHxavFprkqmqt29fZAIuzSjPHLLrQ,7239
133
- reconcile/aus/version_gates/__init__.py,sha256=fWx-IvS132Wpa4gWNIuoNvFwqhkuUuFWYWq5-xiLklI,362
133
+ reconcile/aus/version_gates/__init__.py,sha256=DUODBcyey5-fTsuKquG3RU7BbWBuUWpqEQeHejbBCUI,479
134
134
  reconcile/aus/version_gates/handler.py,sha256=S_isQPYHbG4DERiUEvQBZ6ngiFX3uMmATA-Q_eNKmFk,839
135
+ reconcile/aus/version_gates/ingress_gate_handler.py,sha256=ZCtyggBzzcb0prtdbMpJsVkj5leYN-vS7srM9vbq9xo,1096
135
136
  reconcile/aus/version_gates/ocp_gate_handler.py,sha256=RW1ppDaCZXVegV9AzzqYXxDUu_Z_7d43Z5h2Pk_piKc,716
136
137
  reconcile/aus/version_gates/sts_version_gate_handler.py,sha256=PhJ7yBh2q-rv9CJcfFhc0H11nyDyG7NAryNS3F74xdY,3697
137
138
  reconcile/aws_ami_cleanup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -723,8 +724,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=SX7qL3D1SIRKFo95FoQztvf
723
724
  tools/test/test_qontract_cli.py,sha256=OvalpVRfY4pNmpMaWHHYqBjV68b1eGQjX8SCyTAXb1w,3501
724
725
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
725
726
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
726
- qontract_reconcile-0.10.1rc684.dist-info/METADATA,sha256=H-6AJLBGlFkEWOhxb6hx4yEEVCUmvIMF_g0k5AQJxqg,2382
727
- qontract_reconcile-0.10.1rc684.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
728
- qontract_reconcile-0.10.1rc684.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
729
- qontract_reconcile-0.10.1rc684.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
730
- qontract_reconcile-0.10.1rc684.dist-info/RECORD,,
727
+ qontract_reconcile-0.10.1rc685.dist-info/METADATA,sha256=FgJpIZttWeXbU1AnOqTNomY1tNGRnpYT0mv4dA4AHEU,2382
728
+ qontract_reconcile-0.10.1rc685.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
729
+ qontract_reconcile-0.10.1rc685.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
730
+ qontract_reconcile-0.10.1rc685.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
731
+ qontract_reconcile-0.10.1rc685.dist-info/RECORD,,
reconcile/aus/base.py CHANGED
@@ -1093,7 +1093,7 @@ def calculate_diff(
1093
1093
  )
1094
1094
  if gates:
1095
1095
  gate_ids = [gate.id for gate in gates]
1096
- logging.debug(
1096
+ logging.info(
1097
1097
  f"[{spec.org.org_id}/{spec.org.name}/{spec.cluster.name}] found gates for {target_version_prefix} - {gate_ids} "
1098
1098
  "Skip creation of an upgrade policy until all of them have been acked by the version-gate-approver integration or a user."
1099
1099
  )
@@ -1,9 +1,14 @@
1
1
  from typing import Type
2
2
 
3
- from reconcile.aus.version_gates import ocp_gate_handler, sts_version_gate_handler
3
+ from reconcile.aus.version_gates import (
4
+ ingress_gate_handler,
5
+ ocp_gate_handler,
6
+ sts_version_gate_handler,
7
+ )
4
8
  from reconcile.aus.version_gates.handler import GateHandler
5
9
 
6
10
  HANDLERS: dict[str, Type[GateHandler]] = {
7
11
  ocp_gate_handler.GATE_LABEL: ocp_gate_handler.OCPGateHandler,
8
12
  sts_version_gate_handler.GATE_LABEL: sts_version_gate_handler.STSGateHandler,
13
+ ingress_gate_handler.GATE_LABEL: ingress_gate_handler.IngressGateHandler,
9
14
  }
@@ -0,0 +1,32 @@
1
+ from reconcile.aus.version_gates.handler import GateHandler
2
+ from reconcile.utils.ocm.base import OCMCluster, OCMVersionGate
3
+ from reconcile.utils.ocm_base_client import OCMBaseClient
4
+
5
+ GATE_LABEL = "api.openshift.com/gate-ingress"
6
+
7
+
8
+ class IngressGateHandler(GateHandler):
9
+ """
10
+ https://access.redhat.com/node/7028653
11
+ """
12
+
13
+ @staticmethod
14
+ def gate_applicable_to_cluster(_: OCMCluster) -> bool:
15
+ # applicable to all cluster types
16
+ return True
17
+
18
+ def handle(
19
+ self,
20
+ ocm_api: OCMBaseClient,
21
+ ocm_org_id: str,
22
+ cluster: OCMCluster,
23
+ gate: OCMVersionGate,
24
+ dry_run: bool,
25
+ ) -> bool:
26
+ # there is no automatic remediation for this gate
27
+ # users need to manually do the required changes to their clusters
28
+ # and then need to ack the gate on their own or let version-gate-approver
29
+ # do it for them when they list this gate under upgradePolicy.versionGateApprovals
30
+ # in their cluster file or the sre-capabilities.aus.version-gate-approvals
31
+ # OCM subscription label
32
+ return True