Commit 4c816b8 1 parent 9ddb1b9 commit 4c816b8 Copy full SHA for 4c816b8
File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,14 @@ func IsIncomingPeeringNone(foreignCluster *discoveryv1alpha1.ForeignCluster) boo
57
57
58
58
// IsIncomingPeeringYes checks if the incoming peering is set to Yes.
59
59
func IsIncomingPeeringYes (foreignCluster * discoveryv1alpha1.ForeignCluster ) bool {
60
- // curPhase := peeringconditionsutils.GetStatus(foreignCluster, discoveryv1alpha1.IncomingPeeringEnabled)
61
60
return foreignCluster .Spec .IncomingPeeringEnabled == discoveryv1alpha1 .PeeringEnabledYes
62
61
}
63
62
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
+
64
68
// IsOutgoingPeeringNone checks if the outgoing peering is set to none.
65
69
func IsOutgoingPeeringNone (foreignCluster * discoveryv1alpha1.ForeignCluster ) bool {
66
70
curPhase := peeringconditionsutils .GetStatus (foreignCluster , discoveryv1alpha1 .OutgoingPeeringCondition )
You can’t perform that action at this time.
0 commit comments