Skip to content

Commit 23593cf

Browse files
committed
Update webspherelibertyapplication_controller.go
1 parent 11b2fa7 commit 23593cf

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

controllers/webspherelibertyapplication_controller.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -403,11 +403,6 @@ func (r *ReconcileWebSphereLiberty) Reconcile(ctx context.Context, request ctrl.
403403
Name: instance.Name + "-egress-dns-and-apiserver-access",
404404
Namespace: instance.Namespace,
405405
}}
406-
apiServerNetworkPolicy.Spec.PodSelector = metav1.LabelSelector{
407-
MatchLabels: map[string]string{
408-
OperatorAllowAPIServerAccessLabel: "true",
409-
},
410-
}
411406
err = r.CreateOrUpdate(apiServerNetworkPolicy, instance, func() error {
412407
apiServerNetworkPolicy.Spec.PodSelector = metav1.LabelSelector{
413408
MatchLabels: map[string]string{

0 commit comments

Comments
 (0)