Skip to content

Commit 934ee87

Browse files
committed
more Deref
Signed-off-by: kuizhiqing <[email protected]>
1 parent 224e5e2 commit 934ee87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/mpi_job_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@ func newConfigMap(mpiJob *kubeflow.MPIJob, workerReplicas int32) *corev1.ConfigM
12891289
// note that pod.spec.dnsConfig also affect the svc resolution
12901290
// ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
12911291
// launcher can be reach with hostname or service name
1292-
if mpiJob.Spec.RunLauncherAsWorker != nil && *mpiJob.Spec.RunLauncherAsWorker {
1292+
if ptr.Deref(mpiJob.Spec.RunLauncherAsWorker, false) {
12931293
launcherService := mpiJob.Name + launcherSuffix
12941294
switch mpiJob.Spec.MPIImplementation {
12951295
case kubeflow.MPIImplementationOpenMPI:

0 commit comments

Comments
 (0)