Skip to content

Commit

Permalink
Expose ANP priority in test templates for Agented VMs
Browse files Browse the repository at this point in the history
Signed-off-by: Anand Kumar <[email protected]>
  • Loading branch information
Anandkumar26 committed Nov 8, 2023
1 parent df221b8 commit 2227697
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/integration/networkpolicy_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ var _ = Describe(fmt.Sprintf("%s,%s: NetworkPolicy On Cloud Resources", focusAws
defaultANPParameters = k8stemplates.DefaultANPParameters{
Namespace: staticVMNS.Name,
Name: "deny-8080",
Priority: defaultAnpPriority,
Entity: &k8stemplates.EntitySelectorParameters{
Kind: labels.ExternalEntityLabelKeyKind + ": " + strings.ToLower(reflect.TypeOf(runtimev1alpha1.VirtualMachine{}).Name()),
},
Expand Down
2 changes: 1 addition & 1 deletion test/templates/default_anp.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ metadata:
name: {{.Name}}
namespace: {{.Namespace}}
spec:
priority: 2
priority: {{.Priority}}
appliedTo:
- externalEntitySelector:
matchLabels:
Expand Down

0 comments on commit 2227697

Please sign in to comment.