Skip to content

Commit 53af30c

Browse files
committed
moved defaultdenyAcl in mtpnc
1 parent fbdef4d commit 53af30c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cns/middlewares/k8sSwiftV2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func (k *K8sSWIFTv2Middleware) validateIPConfigsRequest(ctx context.Context, req
137137
if !mtpnc.IsReady() {
138138
return nil, types.UnexpectedError, errMTPNCNotReady.Error(), defaultDenyACLbool
139139
}
140-
defaultDenyACLbool = mtpnc.Spec.DefaultDenyACL
140+
defaultDenyACLbool = mtpnc.Status.DefaultDenyACL
141141
// If primary Ip is set in status field, it indicates the presence of secondary interfaces
142142
if mtpnc.Status.PrimaryIP != "" {
143143
req.SecondaryInterfacesExist = true

crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ type MultitenantPodNetworkConfigSpec struct {
4545
PodNetwork string `json:"podNetwork"`
4646
// name of the requesting cx pod
4747
PodName string `json:"podName,omitempty"`
48-
//DefaultDenyAcl bool indicates whether default deny policy will be present on the pods upon pod creation
49-
DefaultDenyACL bool `json:"defaultDenyACL"`
5048
}
5149

5250
type InterfaceInfo struct {
@@ -87,6 +85,8 @@ type MultitenantPodNetworkConfigStatus struct {
8785
// InterfaceInfos describes all of the network container goal state for this Pod
8886
// +kubebuilder:validation:Optional
8987
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"`
9090
}
9191

9292
func init() {

0 commit comments

Comments
 (0)