Skip to content

Commit 15a510c

Browse files
committed
updated comment
1 parent 61c4862 commit 15a510c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cns/middlewares/k8sSwiftV2_windows.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@ func (k *K8sSWIFTv2Middleware) IPConfigsRequestHandlerWrapper(defaultHandler, fa
135135
}, errors.New("failed to validate IP configs request")
136136
}
137137

138-
// checks for default deny bool variable
139-
defaultDenyACLbool, err := GetDefaultDenyBool(mtpnc)
138+
// GetDefaultDenyBool takes in mtpnc and returns the value of defaultDenyACLBool from it
139+
defaultDenyACLBool, err := GetDefaultDenyBool(mtpnc)
140140

141141
// ipConfigsResp has infra IP configs -> if defaultDenyACLbool is enabled, add the default deny endpoint policies as a property in PodIpInfo
142142
for i := range ipConfigsResp.PodIPInfo {
143143
ipInfo := &ipConfigsResp.PodIPInfo[i]
144144
// there will be no pod connectivity to and from those pods
145-
if defaultDenyACLbool && ipInfo.NICType == cns.InfraNIC {
145+
if defaultDenyACLBool && ipInfo.NICType == cns.InfraNIC {
146146
ipInfo.EndpointPolicies = append(ipInfo.EndpointPolicies, defaultDenyEgressPolicy, defaultDenyIngressPolicy)
147147
break
148148
}

0 commit comments

Comments
 (0)