Skip to content

Commit 4c816b8

Browse files
hamzalsheikhaleoli
andauthored
Update pkg/utils/foreignCluster/peeringStatus.go
Co-authored-by: Alessandro Olivero <[email protected]>
1 parent 9ddb1b9 commit 4c816b8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/utils/foreignCluster/peeringStatus.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,14 @@ func IsIncomingPeeringNone(foreignCluster *discoveryv1alpha1.ForeignCluster) boo
5757

5858
// IsIncomingPeeringYes checks if the incoming peering is set to Yes.
5959
func IsIncomingPeeringYes(foreignCluster *discoveryv1alpha1.ForeignCluster) bool {
60-
// curPhase := peeringconditionsutils.GetStatus(foreignCluster, discoveryv1alpha1.IncomingPeeringEnabled)
6160
return foreignCluster.Spec.IncomingPeeringEnabled == discoveryv1alpha1.PeeringEnabledYes
6261
}
6362

63+
// IsIncomingPeeringNo checks if the incoming peering is set to No.
64+
func IsIncomingPeeringYes(foreignCluster *discoveryv1alpha1.ForeignCluster) bool {
65+
return foreignCluster.Spec.IncomingPeeringEnabled == discoveryv1alpha1.PeeringEnabledNo
66+
}
67+
6468
// IsOutgoingPeeringNone checks if the outgoing peering is set to none.
6569
func IsOutgoingPeeringNone(foreignCluster *discoveryv1alpha1.ForeignCluster) bool {
6670
curPhase := peeringconditionsutils.GetStatus(foreignCluster, discoveryv1alpha1.OutgoingPeeringCondition)

0 commit comments

Comments
 (0)