Skip to content

Commit 9e38606

Browse files
committed
Update webspherelibertyapplication_controller.go
1 parent 30230e0 commit 9e38606

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

controllers/webspherelibertyapplication_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ func (r *ReconcileWebSphereLiberty) Reconcile(ctx context.Context, request ctrl.
409409
OperatorAllowAPIServerAccessLabel: "true",
410410
},
411411
}
412+
apiServerNetworkPolicy.Spec.Egress = make([]networkingv1.NetworkPolicyEgressRule, 0)
412413
// Add OpenShift DNS NetworkPolicy (if applicable)
413414
if r.IsOpenShift() {
414415
dnsRule := networkingv1.NetworkPolicyEgressRule{}

0 commit comments

Comments
 (0)