Skip to content

Commit 4fa7140

Browse files
committed
added a default value for default deny in pni
1 parent 94c4d91 commit 4fa7140

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

cns/middlewares/k8sSwiftV2_windows_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,5 @@ func TestAddDefaultRoute(t *testing.T) {
100100
t.Errorf("got '%+v', expected '%+v'", ipInfo.Routes, expectedRoutes)
101101
}
102102
}
103+
104+
//Add a test here that checks for equality between the default deny policies (in json) created by the function vs an what we expect the default deny json to look like

crd/multitenancy/api/v1alpha1/podnetworkinstance.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ type PodNetworkInstanceSpec struct {
5757
// +kubebuilder:validation:Optional
5858
PodNetworkConfigs []PodNetworkConfig `json:"podNetworkConfigs"`
5959
// DefaultDenyAcl bool indicates whether default deny policy will be present on the pods upon pod creation
60+
// +kubebuilder:default=false
6061
DefaultDenyACL bool `json:"defaultDenyACL"`
6162
}
6263

0 commit comments

Comments
 (0)