Skip to content

Commit 11b2fa7

Browse files
committed
Add DNS network policy for OCP
1 parent 988b0f4 commit 11b2fa7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

controllers/webspherelibertyapplication_controller.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -941,9 +941,7 @@ func (r *ReconcileWebSphereLiberty) deletePVC(reqLogger logr.Logger, pvcName str
941941
}
942942
}
943943

944-
func (r *ReconcileWebSphereLiberty) getKubeAPIServerEndpoints() (*corev1.Endpoints, error) {
945-
serviceName := "kubernetes"
946-
namespace := "default"
944+
func (r *ReconcileWebSphereLiberty) getEndpoints(serviceName string, namespace string) (*corev1.Endpoints, error) {
947945
endpoints := &corev1.Endpoints{}
948946
if err := r.GetClient().Get(context.TODO(), types.NamespacedName{Name: serviceName, Namespace: namespace}, endpoints); err != nil {
949947
return nil, err

0 commit comments

Comments
 (0)