Skip to content

Commit 21df659

Browse files
kabicinKirby Chin
authored andcommitted
Update webspherelibertyapplication_controller.go
1 parent f07f7bd commit 21df659

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
@@ -407,11 +407,6 @@ func (r *ReconcileWebSphereLiberty) Reconcile(ctx context.Context, request ctrl.
407407
Name: instance.Name + "-egress-dns-and-apiserver-access",
408408
Namespace: instance.Namespace,
409409
}}
410-
apiServerNetworkPolicy.Spec.PodSelector = metav1.LabelSelector{
411-
MatchLabels: map[string]string{
412-
OperatorAllowAPIServerAccessLabel: "true",
413-
},
414-
}
415410
err = r.CreateOrUpdate(apiServerNetworkPolicy, instance, func() error {
416411
apiServerNetworkPolicy.Spec.PodSelector = metav1.LabelSelector{
417412
MatchLabels: map[string]string{

0 commit comments

Comments
 (0)