Skip to content

Commit 2d8564b

Browse files
committed
move egressLS definition to the other definitions
1 parent 0b4856c commit 2d8564b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/investigations/chgm/chgm.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ var (
3232
Description: "Your cluster is no longer checking in with Red Hat OpenShift Cluster Manager. Possible causes include stopped instances or a networking misconfiguration. If you have stopped the cluster instances, please start them again - stopping instances is not supported. If you intended to terminate this cluster then please delete the cluster in the Red Hat console",
3333
InternalOnly: false,
3434
}
35+
36+
egressLS = ocm.LimitedSupportReason{
37+
Summary: "Cluster is in Limited Support due to unsupported cloud provider configuration",
38+
Details: "Your cluster requires you to take action. SRE has observed that there have been changes made to the network configuration which impacts normal working of the cluster, including lack of network egress to internet-based resources which are required for the cluster operation and support. Please revert changes, and refer to documentation regarding firewall requirements for PrivateLink clusters: https://access.redhat.com/documentation/en-us/red_hat_openshift_service_on_aws/4/html/prepare_your_environment/rosa-sts-aws-prereqs#osd-aws-privatelink-firewall-prerequisites_rosa-sts-aws-prereqs#",
39+
}
3540
)
3641

3742
// Investigate runs the investigation for a triggered chgm pagerduty event
@@ -82,11 +87,6 @@ func Investigate(r *investigation.Resources) error {
8287
logging.Infof("Network verifier reported failure: %s", failureReason)
8388

8489
if strings.Contains(failureReason, "nosnch.in") {
85-
egressLS := ocm.LimitedSupportReason{
86-
Summary: "Cluster is in Limited Support due to unsupported cloud provider configuration",
87-
Details: "Your cluster requires you to take action. SRE has observed that there have been changes made to the network configuration which impacts normal working of the cluster, including lack of network egress to internet-based resources which are required for the cluster operation and support. Please revert changes, and refer to documentation regarding firewall requirements for PrivateLink clusters: https://access.redhat.com/documentation/en-us/red_hat_openshift_service_on_aws/4/html/prepare_your_environment/rosa-sts-aws-prereqs#osd-aws-privatelink-firewall-prerequisites_rosa-sts-aws-prereqs#",
88-
}
89-
9090
err := r.OcmClient.PostLimitedSupportReason(&egressLS, r.Cluster.ID())
9191
if err != nil {
9292
return err

0 commit comments

Comments
 (0)