Skip to content

Commit 72d3d87

Browse files
committed
Add comments
1 parent c1b0886 commit 72d3d87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/v1/webspherelibertyapplication_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ func (np *WebSphereLibertyApplicationNetworkPolicy) GetFromNamespaceLabels() map
12561256
if np.FromNamespaceLabels != nil {
12571257
return *np.FromNamespaceLabels
12581258
}
1259-
// fallback to deprecated flag np.NamespaceLabels for when we only supported one type of network policy (ingress)
1259+
// fallback to deprecated flag np.NamespaceLabels if configured
12601260
if np.NamespaceLabels != nil {
12611261
return *np.NamespaceLabels
12621262
}
@@ -1286,6 +1286,7 @@ func (np *WebSphereLibertyApplicationNetworkPolicy) IsEgressDisabled() bool {
12861286
return np.DisableEgress != nil && *np.DisableEgress
12871287
}
12881288

1289+
// IsBypassingDenyAllEgress returns whether the application Pods should ignore a deny-all Egress
12891290
func (np *WebSphereLibertyApplicationNetworkPolicy) IsBypassingDenyAllEgress() bool {
12901291
return np.BypassDenyAllEgress != nil && *np.BypassDenyAllEgress
12911292
}

0 commit comments

Comments
 (0)