Skip to content

Commit ae906c3

Browse files
committed
Add comments
1 parent e9a0644 commit ae906c3

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
@@ -1222,7 +1222,7 @@ func (np *WebSphereLibertyApplicationNetworkPolicy) GetFromNamespaceLabels() map
12221222
if np.FromNamespaceLabels != nil {
12231223
return *np.FromNamespaceLabels
12241224
}
1225-
// fallback to deprecated flag np.NamespaceLabels for when we only supported one type of network policy (ingress)
1225+
// fallback to deprecated flag np.NamespaceLabels if configured
12261226
if np.NamespaceLabels != nil {
12271227
return *np.NamespaceLabels
12281228
}
@@ -1252,6 +1252,7 @@ func (np *WebSphereLibertyApplicationNetworkPolicy) IsEgressDisabled() bool {
12521252
return np.DisableEgress != nil && *np.DisableEgress
12531253
}
12541254

1255+
// IsBypassingDenyAllEgress returns whether the application Pods should ignore a deny-all Egress
12551256
func (np *WebSphereLibertyApplicationNetworkPolicy) IsBypassingDenyAllEgress() bool {
12561257
return np.BypassDenyAllEgress != nil && *np.BypassDenyAllEgress
12571258
}

0 commit comments

Comments
 (0)