Skip to content

Commit f07f7bd

Browse files
kabicinKirby Chin
authored andcommitted
Add DNS network policy for OCP
1 parent d2754d0 commit f07f7bd

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
@@ -946,9 +946,7 @@ func (r *ReconcileWebSphereLiberty) deletePVC(reqLogger logr.Logger, pvcName str
946946
}
947947
}
948948

949-
func (r *ReconcileWebSphereLiberty) getKubeAPIServerEndpoints() (*corev1.Endpoints, error) {
950-
serviceName := "kubernetes"
951-
namespace := "default"
949+
func (r *ReconcileWebSphereLiberty) getEndpoints(serviceName string, namespace string) (*corev1.Endpoints, error) {
952950
endpoints := &corev1.Endpoints{}
953951
if err := r.GetClient().Get(context.TODO(), types.NamespacedName{Name: serviceName, Namespace: namespace}, endpoints); err != nil {
954952
return nil, err

0 commit comments

Comments
 (0)