Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ type MultitenantPodNetworkConfigStatus struct {
// InterfaceInfos describes all of the network container goal state for this Pod
// +kubebuilder:validation:Optional
InterfaceInfos []InterfaceInfo `json:"interfaceInfos,omitempty"`
// DefaultDenyAcl bool indicates whether default deny policy will be present on the pods upon pod creation
DefaultDenyACL bool `json:"defaultDenyACL"`
}

func init() {
Expand Down
3 changes: 3 additions & 0 deletions crd/multitenancy/api/v1alpha1/podnetworkinstance.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ type PodNetworkInstanceSpec struct {
// optional for now in case orchestrator uses the deprecated fields
// +kubebuilder:validation:Optional
PodNetworkConfigs []PodNetworkConfig `json:"podNetworkConfigs"`
// DefaultDenyAcl bool indicates whether default deny policy will be present on the pods upon pod creation
// +kubebuilder:default=false
DefaultDenyACL bool `json:"defaultDenyACL"`
}

// PodNetworkInstanceStatus defines the observed state of PodNetworkInstance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ spec:
description: MultitenantPodNetworkConfigStatus defines the observed state
of PodNetworkConfig
properties:
defaultDenyACL:
description: DefaultDenyAcl bool indicates whether default deny policy
will be present on the pods upon pod creation
type: boolean
gatewayIP:
description: Deprecated - use InterfaceInfos
type: string
Expand Down Expand Up @@ -119,6 +123,8 @@ spec:
primaryIP:
description: Deprecated - use InterfaceInfos
type: string
required:
- defaultDenyACL
type: object
type: object
served: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ spec:
spec:
description: PodNetworkInstanceSpec defines the desired state of PodNetworkInstance
properties:
defaultDenyACL:
default: false
description: DefaultDenyAcl bool indicates whether default deny policy
will be present on the pods upon pod creation
type: boolean
podIPReservationSize:
default: 0
description: Deprecated - use PodNetworks
Expand Down Expand Up @@ -80,6 +85,8 @@ spec:
podnetwork:
description: Deprecated - use PodNetworks
type: string
required:
- defaultDenyACL
type: object
status:
description: PodNetworkInstanceStatus defines the observed state of PodNetworkInstance
Expand Down
Loading