Skip to content

Commit 4192c27

Browse files
committed
changed policy type
1 parent 82cfe55 commit 4192c27

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cns/middlewares/k8sSwiftV2_windows.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ func addDefaultDenyACL(podIPInfo *cns.PodIpInfo) error {
7777

7878
additionalArgs := []policy.Policy{
7979
{
80-
Type: policy.ACLPolicy,
80+
Type: policy.EndpointPolicy,
8181
Data: blockEgressACL,
8282
},
8383
{
84-
Type: policy.ACLPolicy,
84+
Type: policy.EndpointPolicy,
8585
Data: blockIngressACL,
8686
},
8787
}

cns/middlewares/k8sSwiftV2_windows_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ func TestAddDefaultDenyACL(t *testing.T) {
121121

122122
expectedDefaultDenyACL := []policy.Policy{
123123
{
124-
Type: policy.ACLPolicy,
124+
Type: policy.EndpointPolicy,
125125
Data: valueOut,
126126
},
127127
{
128-
Type: policy.ACLPolicy,
128+
Type: policy.EndpointPolicy,
129129
Data: valueIn,
130130
},
131131
}
@@ -166,7 +166,7 @@ func normalizeKVPairs(t *testing.T, policies []policy.Policy) []policy.Policy {
166166

167167
// Replace Value with the normalized compact JSON
168168
normalized[i] = policy.Policy{
169-
Type: policy.ACLPolicy,
169+
Type: policy.EndpointPolicy,
170170
Data: normalizedValue,
171171
}
172172
}

0 commit comments

Comments
 (0)