Skip to content

Commit c395ed9

Browse files
committed
updated mtpnc crd and pni crd by adding default deny acl bool field
1 parent 281770b commit c395ed9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ type MultitenantPodNetworkConfigStatus struct {
8585
// InterfaceInfos describes all of the network container goal state for this Pod
8686
// +kubebuilder:validation:Optional
8787
InterfaceInfos []InterfaceInfo `json:"interfaceInfos,omitempty"`
88+
// DefaultDenyAcl bool indicates whether default deny policy will be present on the pods upon pod creation
89+
DefaultDenyACL bool `json:"defaultDenyACL"`
8890
}
8991

9092
func init() {

crd/multitenancy/api/v1alpha1/podnetworkinstance.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ type PodNetworkInstanceSpec struct {
5656
// optional for now in case orchestrator uses the deprecated fields
5757
// +kubebuilder:validation:Optional
5858
PodNetworkConfigs []PodNetworkConfig `json:"podNetworkConfigs"`
59+
// DefaultDenyAcl bool indicates whether default deny policy will be present on the pods upon pod creation
60+
// +kubebuilder:default=false
61+
DefaultDenyACL bool `json:"defaultDenyACL"`
5962
}
6063

6164
// PodNetworkInstanceStatus defines the observed state of PodNetworkInstance

0 commit comments

Comments
 (0)